google

package
v0.0.0-...-e1cb635 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2016 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dir

func Dir() string

func ReadConfig

func ReadConfig()

func WriteConfig

func WriteConfig()

Types

type Account

type Account struct {
	Email    string
	Password string
	Nick     string
}

func Acct

func Acct(name string) Account

type ChatID

type ChatID struct {
	ID        string
	Email     string
	Status    xmpp.Status
	StatusMsg string
}

type ChatSend

type ChatSend struct {
	ID  *ChatID
	Msg xmpp.Chat
}

type Client

type Client struct {
	// contains filtered or unexported fields
}

func Dial

func Dial() (*Client, error)

func (*Client) Accounts

func (g *Client) Accounts() ([]string, error)

func (*Client) ChatRecv

func (g *Client) ChatRecv(cid *ChatID) (*xmpp.Chat, error)

func (*Client) ChatRoster

func (g *Client) ChatRoster(cid *ChatID) error

func (*Client) ChatSend

func (g *Client) ChatSend(cid *ChatID, msg *xmpp.Chat) error

func (*Client) ChatStatus

func (g *Client) ChatStatus(cid *ChatID) error

func (*Client) Ping

func (g *Client) Ping() error

type Config

type Config struct {
	Account []*Account
}
var Cfg Config

func (*Config) AccountByEmail

func (cfg *Config) AccountByEmail(email string) *Account

type Empty

type Empty struct{}

Directories

Path Synopsis
acme

Jump to

Keyboard shortcuts

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