middlewares

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ClientIdHeaderKey     = "client_id"
	ClientSecretHeaderKey = "client_secret"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type RpcAuther

type RpcAuther struct {
	ioc.ObjectImpl

	Enable       bool   `json:"enable" yaml:"enable" toml:"enable" env:"ENABLE"`
	ClientId     string `json:"client_id" yaml:"client_id" toml:"client_id" env:"CLIENT_ID"`
	ClientSecret string `json:"client_secret" yaml:"client_secret" toml:"client_secret" env:"CLIENT_SECRET"`
}

func (*RpcAuther) Auth

func (c *RpcAuther) Auth(ctx context.Context, in *jsonrpc.AuthRequest) (any, error)

func (*RpcAuther) Init

func (c *RpcAuther) Init() error

func (*RpcAuther) Name

func (c *RpcAuther) Name() string

Jump to

Keyboard shortcuts

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