web

package
v0.0.0-...-886a5b3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 23, 2024 License: BSD-3-Clause Imports: 18 Imported by: 0

Documentation

Index

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 FnService

type FnService 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
}

func (*UserService) IsAdmin

func (s *UserService) IsAdmin(user *pb.User) bool

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()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL