Documentation ¶
Index ¶
- type AttrService
- type AuthService
- type ClassService
- type ConstService
- type DeviceService
- type FnService
- type LogicService
- type SlotService
- type SourceService
- type TagService
- type UserService
- type WebApiOption
- type WebService
- func (s *WebService) Context() context.Context
- func (s *WebService) Edge() *edge.EdgeService
- func (s *WebService) GetAuth() *AuthService
- func (s *WebService) GetUser() *UserService
- func (s *WebService) Logger() *zap.Logger
- func (s *WebService) Register(router gin.IRouter)
- func (s *WebService) Start()
- func (s *WebService) Stop()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AttrService ¶
type AttrService struct {
// contains filtered or unexported fields
}
type AuthService ¶
type AuthService struct {
// contains filtered or unexported fields
}
func (*AuthService) Authenticator ¶
func (s *AuthService) Authenticator(ctx *gin.Context) (interface{}, error)
func (*AuthService) Authorizator ¶
func (s *AuthService) Authorizator(data interface{}, ctx *gin.Context) error
func (*AuthService) MiddlewareFunc ¶
func (s *AuthService) MiddlewareFunc() gin.HandlerFunc
type ClassService ¶
type ClassService struct {
// contains filtered or unexported fields
}
type ConstService ¶
type ConstService struct {
// contains filtered or unexported fields
}
type DeviceService ¶
type DeviceService struct {
// contains filtered or unexported fields
}
type LogicService ¶
type LogicService struct {
// contains filtered or unexported fields
}
type SlotService ¶
type SlotService struct {
// contains filtered or unexported fields
}
type SourceService ¶
type SourceService struct {
// contains filtered or unexported fields
}
type TagService ¶
type TagService struct {
// contains filtered or unexported fields
}
type UserService ¶
type UserService struct {
// contains filtered or unexported fields
}
type WebApiOption ¶
type WebApiOption interface {
// contains filtered or unexported methods
}
func WithDebug ¶
func WithDebug(debug bool) WebApiOption
func WithJwtSecretKey ¶
func WithJwtSecretKey(key string) WebApiOption
func WithLogger ¶
func WithLogger(logger *zap.Logger) WebApiOption
type WebService ¶
type WebService struct {
// contains filtered or unexported fields
}
func NewWebService ¶
func NewWebService(es *edge.EdgeService, opts ...WebApiOption) (*WebService, error)
func (*WebService) Context ¶
func (s *WebService) Context() context.Context
func (*WebService) Edge ¶
func (s *WebService) Edge() *edge.EdgeService
func (*WebService) GetAuth ¶
func (s *WebService) GetAuth() *AuthService
func (*WebService) GetUser ¶
func (s *WebService) GetUser() *UserService
func (*WebService) Logger ¶
func (s *WebService) Logger() *zap.Logger
func (*WebService) Register ¶
func (s *WebService) Register(router gin.IRouter)
func (*WebService) Start ¶
func (s *WebService) Start()
func (*WebService) Stop ¶
func (s *WebService) Stop()
Click to show internal directories.
Click to hide internal directories.