Documentation
¶
Index ¶
- type BaseHandler
- func (h *BaseHandler) Agents() *agents.ClientSet
- func (h BaseHandler) ClusterFunc(cluster string, fun OnClusterFunc) restful.RouteFunction
- func (h *BaseHandler) DB() *gorm.DB
- func (h *BaseHandler) DBWithContext(req *restful.Request) *gorm.DB
- func (h *BaseHandler) Database() *database.Database
- func (h BaseHandler) Execute(ctx context.Context, cluster string, ...) error
- func (h *BaseHandler) GetByName(ctx context.Context, obj interface{}, name string) error
- func (h *BaseHandler) List(obj interface{}, opts ...client.Option)
- func (h *BaseHandler) Redis() *redis.Client
- type OnClusterFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseHandler ¶
type BaseHandler struct {
// contains filtered or unexported fields
}
BaseHandler is the base handler for all handlers
func NewBaseHandler ¶
func (*BaseHandler) Agents ¶
func (h *BaseHandler) Agents() *agents.ClientSet
func (BaseHandler) ClusterFunc ¶
func (h BaseHandler) ClusterFunc(cluster string, fun OnClusterFunc) restful.RouteFunction
func (*BaseHandler) DB ¶
func (h *BaseHandler) DB() *gorm.DB
func (*BaseHandler) DBWithContext ¶
func (h *BaseHandler) DBWithContext(req *restful.Request) *gorm.DB
func (*BaseHandler) Database ¶
func (h *BaseHandler) Database() *database.Database
func (*BaseHandler) GetByName ¶
func (h *BaseHandler) GetByName(ctx context.Context, obj interface{}, name string) error
func (*BaseHandler) List ¶
func (h *BaseHandler) List(obj interface{}, opts ...client.Option)
func (*BaseHandler) Redis ¶
func (h *BaseHandler) Redis() *redis.Client
Click to show internal directories.
Click to hide internal directories.