Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Ctl = NewController()
Ctl is the global controller instance
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller interface { // Add metadatas for project specified by projectID Add(ctx context.Context, projectID int64, meta map[string]string) error // Delete metadatas whose keys are specified in parameter meta, if it is absent, delete all Delete(ctx context.Context, projectID int64, meta ...string) error // Update metadatas Update(ctx context.Context, projectID int64, meta map[string]string) error // Get metadatas whose keys are specified in parameter meta, if it is absent, get all Get(ctx context.Context, projectID int64, meta ...string) (map[string]string, error) }
Controller defines the operations that a project metadata controller should implement
func NewController ¶
func NewController() Controller
NewController creates an instance of the default controller
Click to show internal directories.
Click to hide internal directories.