Documentation
¶
Index ¶
- func ContactCount(tx *sqlite.Conn) (int64, error)
- func ContactDelete(tx *sqlite.Conn, id int64) error
- func ContactDeleteAll(tx *sqlite.Conn) error
- func ContactListNames(tx *sqlite.Conn, limit int64) ([]string, error)
- func ContactReadInfo(tx *sqlite.Conn, id int64) (models.Info, error)
- func ContactReadJSONB(tx *sqlite.Conn, id int64) ([]byte, error)
- func ContactUpdate(tx *sqlite.Conn, in ContactUpdateIn) error
- type Contact
- type ContactCountOut
- type ContactCreateIn
- type ContactCreateJSONBIn
- type ContactCreateJSONBOut
- type ContactCreateOut
- type ContactListOut
- type ContactListRow
- type ContactReadInfoOut
- type ContactReadJSONBOut
- type ContactReadOut
- type ContactUpdateIn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContactDeleteAll ¶
func ContactUpdate ¶
func ContactUpdate(tx *sqlite.Conn, in ContactUpdateIn) error
Types ¶
type ContactCountOut ¶
type ContactCountOut struct {
Count int64 `json:"count"`
}
type ContactCreateIn ¶
type ContactCreateJSONBIn ¶
type ContactCreateJSONBOut ¶
type ContactCreateJSONBOut struct {
Json []byte `json:"json"`
Blob []byte `json:"blob"`
CreatedAt time.Time `json:"created_at"`
ID int64 `json:"id"`
Info models.Info `json:"info"`
Name string `json:"name"`
}
func ContactCreateJSONB ¶
func ContactCreateJSONB(tx *sqlite.Conn, in ContactCreateJSONBIn) (*ContactCreateJSONBOut, error)
type ContactCreateOut ¶
type ContactCreateOut struct {
Blob []byte `json:"blob"`
CreatedAt time.Time `json:"created_at"`
ID int64 `json:"id"`
Info models.Info `json:"info"`
Name string `json:"name"`
}
func ContactCreate ¶
func ContactCreate(tx *sqlite.Conn, in ContactCreateIn) (*ContactCreateOut, error)
type ContactListOut ¶
type ContactListOut []ContactListRow
func ContactList ¶
func ContactList(tx *sqlite.Conn, limit int64) (ContactListOut, error)
type ContactListRow ¶
type ContactReadInfoOut ¶
type ContactReadJSONBOut ¶
type ContactReadJSONBOut struct {
Blob []byte `json:"blob"`
}
Click to show internal directories.
Click to hide internal directories.