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
Click to show internal directories.
Click to hide internal directories.