tdclient

package module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 7, 2020 License: MIT Imports: 13 Imported by: 1

Documentation

Index

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL