Documentation ¶
Index ¶
- Variables
- type Conn
- func (db *Conn) AddAddress(ctx context.Context, addr *sharedv1.Address, cid sharedv1.CID) (string, error)
- func (db *Conn) AddContact(ctx context.Context, c *sharedv1.Contact, cid sharedv1.CID) (string, error)
- func (db *Conn) AddUser(ctx context.Context, u *sharedv1.User, cid sharedv1.CID) (string, error)
- func (db *Conn) BasicAuth(ctx context.Context, login *sharedv1.BasicAuth, cid sharedv1.CID) (*sharedv1.User, error)
- func (db *Conn) CreateContact(ctx context.Context, id string, c *sharedv1.Contact, cid sharedv1.CID) (string, error)
- func (db *Conn) DeleteAddress(ctx context.Context, id string, cid sharedv1.CID) error
- func (db *Conn) DeleteContact(ctx context.Context, id string, cid sharedv1.CID) error
- func (db *Conn) DeleteUser(ctx context.Context, id string, cid sharedv1.CID) error
- func (db *Conn) GetAddress(ctx context.Context, id string, cid sharedv1.CID) (*sharedv1.Address, error)
- func (db *Conn) GetContact(ctx context.Context, userID string, cid sharedv1.CID) (*sharedv1.Contact, error)
- func (db *Conn) GetUser(ctx context.Context, id string, cid sharedv1.CID) (*sharedv1.User, error)
- func (db *Conn) UpdateAddress(ctx context.Context, addr *sharedv1.Address, cid sharedv1.CID) error
- func (db *Conn) UpdateContact(ctx context.Context, c *sharedv1.Contact, cid sharedv1.CID) error
- func (db *Conn) UpdateUser(ctx context.Context, u *sharedv1.User, cid sharedv1.CID) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( UserExistsError = fmt.Errorf("user already exists") UserNotAddedError = fmt.Errorf("user was not added") )
Functions ¶
This section is empty.
Types ¶
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
func NewInstance ¶
func (*Conn) AddAddress ¶
func (*Conn) AddContact ¶
func (*Conn) CreateContact ¶
func (*Conn) DeleteAddress ¶
func (*Conn) DeleteContact ¶
func (*Conn) DeleteUser ¶
func (*Conn) GetAddress ¶
func (*Conn) GetContact ¶
func (*Conn) UpdateAddress ¶
func (*Conn) UpdateContact ¶
Click to show internal directories.
Click to hide internal directories.