Documentation ¶ Index ¶ Variables type Session func NewSession(server string, verbose bool) (Session, error) func (s Session) Me(teamUid string) (tdproto.Contact, error) func (s Session) Ping() error func (s *Session) SetToken(token string) func (s *Session) WsClient(team string, onfail func(error)) (*wsClient, error) Constants ¶ This section is empty. Variables ¶ View Source var WsTimeout = errors.New("Timeout") Functions ¶ This section is empty. Types ¶ type Session ¶ type Session struct { Timeout time.Duration // contains filtered or unexported fields } func NewSession ¶ func NewSession(server string, verbose bool) (Session, error) func (Session) Me ¶ func (s Session) Me(teamUid string) (tdproto.Contact, error) func (Session) Ping ¶ func (s Session) Ping() error func (*Session) SetToken ¶ func (s *Session) SetToken(token string) func (*Session) WsClient ¶ func (s *Session) WsClient(team string, onfail func(error)) (*wsClient, error) Source Files ¶ View all Source files session.gows.go Click to show internal directories. Click to hide internal directories.