models

package
v0.0.0-...-a24b8d5 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArrayInterfaceMap

type ArrayInterfaceMap []map[string]interface{}

func (*ArrayInterfaceMap) Scan

func (m *ArrayInterfaceMap) Scan(value interface{}) error

type Connection

type Connection struct {
	ID          int64            `db:"id"`
	VertexA     string           `db:"vertex_a"`
	VertexB     string           `db:"vertex_b"`
	Status      ConnectionStatus `db:"status"`
	Read        bool             `db:"read"`
	Tags        []string         `db:"tags"`
	PrivateTags []string         `db:"private_tags"`
	ProfileA    *Profile         `db:"-"`
	ProfileB    *Profile         `db:"-"`
}

type ConnectionStatus

type ConnectionStatus string
const (
	Requested ConnectionStatus = "requested"
	Connected ConnectionStatus = "connected"
)

type Profile

type Profile struct {
	UUID       string             `db:"uuid"`
	ETHAddress string             `db:"eth_address"`
	Username   string             `db:"username"`
	Metadata   StringInterfaceMap `db:"metadata"`
	PublicTags pq.StringArray     `db:"public_tags"`
	Tokens     ArrayInterfaceMap  `db:"tokens"`
}

type StringInterfaceMap

type StringInterfaceMap map[string]interface{}

func (*StringInterfaceMap) Scan

func (m *StringInterfaceMap) Scan(value interface{}) error

Jump to

Keyboard shortcuts

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