state

package
v1.0.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContactState

type ContactState struct {
	Id           int64     `json:"id"`
	DID          string    `json:"did"`
	DIDDocument  string    `json:"didDocument"`
	Name         string    `json:"name"`
	UserDID      string    `json:"userDID"`
	HasContacted bool      `json:"hasContacted"`
	Metadata     string    `json:"metadata"`
	Added        time.Time `json:"added"`
}

type ContactsState

type ContactsState interface {
	SaveContact(*ContactState) (int64, error)
	UpdateContact(*ContactState) error
	ListContacts() ([]*ContactState, error)
	FindContact(id int64) (*ContactState, error)
	DeleteContact(id int64) error
}

func InitContactState

func InitContactState(db state.DBManager) (ContactsState, error)

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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