auth

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name = "auth"
)

Variables

This section is empty.

Functions

func Register

func Register(register eosc.IExtenderDriverRegister)

Types

type Auth

type Auth struct {
	*Driver
	// contains filtered or unexported fields
}

func (*Auth) CheckSkill

func (a *Auth) CheckSkill(skill string) bool

func (*Auth) Destroy

func (a *Auth) Destroy()

func (*Auth) DoFilter

func (a *Auth) DoFilter(ctx http_service.IHttpContext, next http_service.IChain) error

func (*Auth) Id

func (a *Auth) Id() string

func (*Auth) Reset

func (a *Auth) Reset(conf interface{}, workers map[eosc.RequireId]interface{}) error

func (*Auth) Start

func (a *Auth) Start() error

func (*Auth) Stop

func (a *Auth) Stop() error

type Config

type Config struct {
	Auth []eosc.RequireId `json:"auth" skill:"github.com/eolinker/apinto/auth.auth.IAuth" label:"用户列表"`
}

type Driver

type Driver struct {
	// contains filtered or unexported fields
}

func (*Driver) Check

func (d *Driver) Check(v interface{}, workers map[eosc.RequireId]interface{}) error

func (*Driver) ConfigType

func (d *Driver) ConfigType() reflect.Type

func (*Driver) Create

func (d *Driver) Create(id, name string, v interface{}, workers map[eosc.RequireId]interface{}) (eosc.IWorker, error)

type Factory

type Factory struct {
}

func NewFactory

func NewFactory() *Factory

func (*Factory) Create

func (f *Factory) Create(profession string, name string, label string, desc string, params map[string]interface{}) (eosc.IExtenderDriver, error)

func (*Factory) Render added in v0.6.0

func (f *Factory) Render() interface{}

Jump to

Keyboard shortcuts

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