repositories

package
v0.0.0-...-98d637e Latest Latest
Warning

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

Go to latest
Published: Oct 8, 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 LocalNode

type LocalNode struct {
	NodeId            string                `json:"localNodeId" form:"localNodeId" db:"local_node_id"`
	GRPCAddress       *string               `json:"grpcAddress" form:"grpcAddress" db:"grpc_address"`
	TLSFileName       *string               `json:"tlsFileName" db:"tls_file_name"`
	TLSFile           *multipart.FileHeader `form:"tlsFile"`
	TLSDataBytes      []byte                `db:"tls_data"`
	MacaroonFileName  *string               `json:"macaroonFileName" db:"macaroon_file_name"`
	MacaroonFile      *multipart.FileHeader `form:"macaroonFile"`
	MacaroonDataBytes []byte                `db:"macaroon_data"`
	CreateAt          time.Time             `json:"createdAt" db:"created_at"`
	UpdatedAt         *time.Time            `json:"updatedAt"  db:"updated_at"`
	PubKey            *string               `db:"pub_key"`
}

type NodeSettingsRepo

type NodeSettingsRepo interface {
	GetLocalNode(nodeId string) (LocalNode, error)
	UpdateLocalNode(node LocalNode) error
	CreateLocalNode(node LocalNode) error
	DeleteLocalNode(nodeId string) error
	GetLocalNodes() ([]LocalNode, error)
	UpdatePubKey(node LocalNode) error
}

func NewNodeSettingsRepo

func NewNodeSettingsRepo(db *sqlx.DB) NodeSettingsRepo

Jump to

Keyboard shortcuts

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