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 MessageState

type MessageState struct {
	Id      int64  `json:"id"`
	DID     string `json:"did"`
	Message string `json:"message"`
}

type RelayState

type RelayState interface {
	AddRelayRegistration(did string) error
	GetRelayRegistration(did string) (bool, error)

	AddRelayEndpoint(did string, serviceEndpoint string, seType string, serviceEndpointId string) error
	GetRelayEndpoints(did string) ([]id.Service, error)

	AddRelayMessage(did, msg string) error
	GetRelayMessages(did string) ([]*MessageState, error)
	GetAllRecentRelayMessages() ([]*MessageState, error)
	DeleteRelayMessage(id int64) error
}

func InitRelayState

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