Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( WrapErr = func(err *Error) error { return err } Logger func(format string, args ...interface{}) )
View Source
var SQLite3JournalMode = "WAL"
SQLite3JournalMode controls the journal_mode pragma for all new connections. Since it is read without a mutex, it must be changed to the value you want before any Open calls.
Functions ¶
Types ¶
type DB ¶
type Methods ¶
type Methods interface { All_Node(ctx context.Context) ( rows []*Node, err error) Count_Node(ctx context.Context) ( count int64, err error) Create_Node(ctx context.Context, node_id Node_Id_Field, node_name Node_Name_Field, node_public_address Node_PublicAddress_Field, node_api_secret Node_ApiSecret_Field) ( node *Node, err error) Delete_Node_By_Id(ctx context.Context, node_id Node_Id_Field) ( deleted bool, err error) Get_Node_By_Id(ctx context.Context, node_id Node_Id_Field) ( node *Node, err error) Limited_Node(ctx context.Context, limit int, offset int64) ( rows []*Node, err error) UpdateNoReturn_Node_By_Id(ctx context.Context, node_id Node_Id_Field, update Node_Update_Fields) ( err error) Update_Node_By_Id(ctx context.Context, node_id Node_Id_Field, update Node_Update_Fields) ( node *Node, err error) }
type Node_ApiSecret_Field ¶
type Node_ApiSecret_Field struct {
// contains filtered or unexported fields
}
func Node_ApiSecret ¶
func Node_ApiSecret(v []byte) Node_ApiSecret_Field
type Node_Id_Field ¶
type Node_Id_Field struct {
// contains filtered or unexported fields
}
func Node_Id ¶
func Node_Id(v []byte) Node_Id_Field
type Node_Name_Field ¶
type Node_Name_Field struct {
// contains filtered or unexported fields
}
func Node_Name ¶
func Node_Name(v string) Node_Name_Field
type Node_PublicAddress_Field ¶
type Node_PublicAddress_Field struct {
// contains filtered or unexported fields
}
func Node_PublicAddress ¶
func Node_PublicAddress(v string) Node_PublicAddress_Field
type Node_Update_Fields ¶
type Node_Update_Fields struct {
Name Node_Name_Field
}
Click to show internal directories.
Click to hide internal directories.