Documentation ¶
Index ¶
Constants ¶
View Source
const ( // LEVELSYSTEM ... LEVELSYSTEM = "system" // LEVELPROJECT ... LEVELPROJECT = "project" // SCOPESYSTEM ... SCOPESYSTEM = "/system" // SCOPEPROJECT ... SCOPEPROJECT = "/project" // SCOPEALLPROJECT ... SCOPEALLPROJECT = "/project/*" // ROBOTTYPE ... ROBOTTYPE = "robotaccount" )
Variables ¶
View Source
var ( // Ctl is a global variable for the default robot account controller implementation Ctl = NewController() )
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller interface { // Get ... Get(ctx context.Context, id int64, option *Option) (*Robot, error) // Count returns the total count of robots according to the query Count(ctx context.Context, query *q.Query) (total int64, err error) // Create ... Create(ctx context.Context, r *Robot) (int64, string, error) // Delete ... Delete(ctx context.Context, id int64) error // Update ... Update(ctx context.Context, r *Robot, option *Option) error // List ... List(ctx context.Context, query *q.Query, option *Option) ([]*Robot, error) }
Controller to handle the requests related with robot account
Click to show internal directories.
Click to hide internal directories.