Documentation ¶
Index ¶
- func Decode(x []string, r interface{}) error
- func Encode(r interface{}) ([]string, error)
- type Client
- func (c *Client) CreateEmail(req *routes.EmailsCreateRequest) ([]string, error)
- func (c *Client) CreateToken(req *routes.TokensCreateRequest) (*models.Token, error)
- func (c *Client) GetEmail(id string) (*models.Email, error)
- func (c *Client) GetKey(id string) (*models.Key, error)
- func (c *Client) Loop()
- func (c *Client) Receive(id string) (*Response, error)
- func (c *Client) Request(method, path string, headers map[string]string, body interface{}) ([]string, string, error)
- func (c *Client) Subscribe(token string, callback func(ev *Event)) error
- type Event
- type Request
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct { sync.RWMutex Address string SockJS *sockjs.Client Headers map[string]string Incoming map[string]chan *Response Handlers []func(ev *Event) Timeout time.Duration // contains filtered or unexported fields }
func (*Client) CreateEmail ¶
func (c *Client) CreateEmail(req *routes.EmailsCreateRequest) ([]string, error)
func (*Client) CreateToken ¶
Click to show internal directories.
Click to hide internal directories.