state

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IdState

type IdState struct {
	Id            int64     `json:"id"`
	Did           string    `json:"did"`
	Document      string    `json:"document"`
	BelongsToUser bool      `json:"belongsToUser"`
	IdentityKeyId uint32    `json:"identityKeyId"`
	Patches       string    `json:"patches"`
	Added         time.Time `json:"added"`
}

type IdentityState

type IdentityState interface {
	SaveID(id, document string, belongsToUser bool, identityKeyId int64, patches string) error
	UpdateID(id, patches string) error
	ListIDs() ([]*IdState, error)
	FindID(id string) (*IdState, error)
	FindOwnDID() ([]*IdState, error)
	DeleteID(id string) error
	GetDIDKeyId(id string) (int64, error)
}

func InitIdentityState

func InitIdentityState(db state.DBManager) (IdentityState, 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