Documentation ¶
Index ¶
- Variables
- type Conn
- func (c *Conn) CreateCredential(id int, cred *Credential) (int, error)
- func (c *Conn) DeleteCredential(id, credID int) error
- func (c *Conn) HasPictureIDs() ([]int, error)
- func (c *Conn) ListAllCredentials() (map[int][]*Credential, error)
- func (c *Conn) ListCredentials(id int) ([]*Credential, error)
- func (c *Conn) ListDepartments() (map[int]string, error)
- func (c *Conn) ReadPicture(id int) ([]byte, error)
- func (c *Conn) UpdatePicture(id int, buf []byte) error
- func (c *Conn) WithTx(fn func(tx *sql.Tx) error) error
- type Credential
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotFound = errors.New("not found") ErrCredentialExists = errors.New("credential exists") )
Functions ¶
This section is empty.
Types ¶
type Conn ¶
func (*Conn) CreateCredential ¶ added in v1.2.0
func (c *Conn) CreateCredential(id int, cred *Credential) (int, error)
func (*Conn) DeleteCredential ¶ added in v1.2.0
func (*Conn) HasPictureIDs ¶
func (*Conn) ListAllCredentials ¶ added in v1.2.0
func (c *Conn) ListAllCredentials() (map[int][]*Credential, error)
func (*Conn) ListCredentials ¶ added in v1.2.0
func (c *Conn) ListCredentials(id int) ([]*Credential, error)
func (*Conn) ListDepartments ¶ added in v1.2.0
Click to show internal directories.
Click to hide internal directories.