Documentation ¶
Index ¶
- Variables
- type Client
- func (c *Client) ActivateEmail(address string) error
- func (c *Client) ActivateUser(id int) error
- func (c *Client) CreateEmail(user int, address string) (*schema.Email, error)
- func (c *Client) CreateRequest(fromUser, toUser int) (int, error)
- func (c *Client) CreateUser(user *schema.User) (*schema.User, error)
- func (c *Client) DeleteEmail(address string) error
- func (c *Client) GetEmail(address string) (*schema.Email, error)
- func (c *Client) GetRequestLinkByCode(code string) (*schema.RequestLink, error)
- func (c *Client) GetRequestLinkByUser(user int) (*schema.RequestLink, error)
- func (c *Client) GetUser(id int) (*schema.User, error)
- func (c *Client) GetUserEmails(user int) ([]schema.Email, error)
- func (c *Client) ManageRequest(id int, action string) error
- func (c *Client) SendActivationEmail(id int) error
- func (c *Client) SendAuth(email string) error
- func (c *Client) SendContactInfoEmail(id int) error
- func (c *Client) SendEmailActivationEmail(address string) error
- func (c *Client) SendRequestEmail(id int) error
- func (c *Client) ValidateEmail(address string) (bool, error)
- type EmailMessage
- type ServerError
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrConflict = errors.New("client: conflict") ErrNotFound = errors.New("client: not found") )
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) ActivateEmail ¶
func (*Client) ActivateUser ¶
func (*Client) CreateEmail ¶
func (*Client) CreateRequest ¶
CreateRequest creates a request. The return values are the ID for the created request and an error.
func (*Client) DeleteEmail ¶
func (*Client) GetRequestLinkByCode ¶
func (c *Client) GetRequestLinkByCode(code string) (*schema.RequestLink, error)
func (*Client) GetRequestLinkByUser ¶
func (c *Client) GetRequestLinkByUser(user int) (*schema.RequestLink, error)
func (*Client) SendActivationEmail ¶
func (*Client) SendContactInfoEmail ¶
func (*Client) SendEmailActivationEmail ¶
func (*Client) SendRequestEmail ¶
type EmailMessage ¶
type ServerError ¶
type ServerError int
func (ServerError) Error ¶
func (e ServerError) Error() string
Click to show internal directories.
Click to hide internal directories.