c

package
v0.0.0-...-c069132 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 4, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContactCount

func ContactCount(tx *sqlite.Conn) (int64, error)

func ContactDelete

func ContactDelete(tx *sqlite.Conn, id int64) error

func ContactDeleteAll

func ContactDeleteAll(tx *sqlite.Conn) error

func ContactListNames

func ContactListNames(tx *sqlite.Conn, limit int64) ([]string, error)

func ContactReadInfo

func ContactReadInfo(tx *sqlite.Conn, id int64) (models.Info, error)

func ContactReadJSONB

func ContactReadJSONB(tx *sqlite.Conn, id int64) ([]byte, error)

func ContactUpdate

func ContactUpdate(tx *sqlite.Conn, in ContactUpdateIn) error

Types

type Contact

type Contact struct {
	Blob      []byte      `json:"blob"`
	CreatedAt time.Time   `json:"created_at"`
	ID        int64       `json:"id"`
	Info      models.Info `json:"info"`
	Name      string      `json:"name"`
}

type ContactCountOut

type ContactCountOut struct {
	Count int64 `json:"count"`
}

type ContactCreateIn

type ContactCreateIn struct {
	Blob []byte      `json:"blob"`
	Info models.Info `json:"info"`
	Name string      `json:"name"`
}

type ContactCreateJSONBIn

type ContactCreateJSONBIn struct {
	Blob []byte      `json:"blob"`
	Info models.Info `json:"info"`
	Name string      `json:"name"`
}

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"`
}

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 ContactListRow struct {
	Blob      []byte      `json:"blob"`
	CreatedAt time.Time   `json:"created_at"`
	ID        int64       `json:"id"`
	Info      models.Info `json:"info"`
	Name      string      `json:"name"`
}

type ContactReadInfoOut

type ContactReadInfoOut struct {
	Info models.Info `json:"info"`
}

type ContactReadJSONBOut

type ContactReadJSONBOut struct {
	Blob []byte `json:"blob"`
}

type ContactReadOut

type ContactReadOut 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 ContactRead

func ContactRead(tx *sqlite.Conn, id int64) (*ContactReadOut, error)

type ContactUpdateIn

type ContactUpdateIn struct {
	CreatedAt time.Time `json:"created_at"`
	Name      string    `json:"name"`
	ID        int64     `json:"id"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL