Documentation
¶
Index ¶
- Constants
- func NewClient(svc *service.Service, addr, nick, pass string, values stdchat.ValuesInfo) (service.Networker, error)
- func NewService(tp service.Transporter) *service.Service
- type Client
- func (client *Client) Close() error
- func (client *Client) Closed() bool
- func (client *Client) CmdHandler(msg *stdchat.CmdMsg)
- func (client *Client) ConnID() string
- func (client *Client) Context() context.Context
- func (client *Client) GetStateInfo() service.ClientStateInfo
- func (client *Client) Handler(msg *stdchat.ChatMsg)
- func (client *Client) Logout(reason string) error
- func (client *Client) NetworkID() string
- func (client *Client) NetworkName() string
- func (client *Client) Start(ctx context.Context, id string) error
- func (client *Client) UserID() string
- func (client *Client) UserName() string
Constants ¶
View Source
const Protocol = "dummy"
Variables ¶
This section is empty.
Functions ¶
func NewService ¶
func NewService(tp service.Transporter) *service.Service
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CmdHandler ¶
func (*Client) GetStateInfo ¶
func (client *Client) GetStateInfo() service.ClientStateInfo
func (*Client) NetworkName ¶
Click to show internal directories.
Click to hide internal directories.