factory

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GinWithAuthContext added in v0.2.8

func GinWithAuthContext(verifiers ...HttpVerifier) sgin.GinOption

func McpAuthContextFromSSEHeader added in v0.3.2

func McpAuthContextFromSSEHeader() smcp.SSEOption

McpAuthContextFromSSEHeader extracts scene_token/Bearer from HTTP headers (SSE message endpoint) and injects AuthContext before tool handlers run.

func McpRequireLogin added in v0.3.2

func McpRequireLogin() smcp.ServerOption

Types

type AppArpc added in v0.3.0

type AppArpc struct {
	scene.ModuleFactory
}

func (AppArpc) Apps added in v0.3.0

func (b AppArpc) Apps() []any

type AppCmd added in v0.3.5

type AppCmd struct {
	scene.ModuleFactory
}

func (AppCmd) Apps added in v0.3.5

func (b AppCmd) Apps() []any

type AppGin added in v0.3.0

type AppGin struct {
	scene.ModuleFactory
	Verifier HttpVerifier
}

func (AppGin) Apps added in v0.3.0

func (b AppGin) Apps() []any

func (AppGin) Default added in v0.3.0

func (b AppGin) Default() AppGin

type AppMcp added in v0.3.2

type AppMcp struct {
	scene.ModuleFactory
}

func (AppMcp) Apps added in v0.3.2

func (b AppMcp) Apps() []any

type JWTVerifier

type JWTVerifier struct {
	Key    string
	Secret []byte
}

func (JWTVerifier) Default added in v0.2.10

func (J JWTVerifier) Default() JWTVerifier

func (JWTVerifier) Provide

type ServiceARpc added in v0.3.0

type ServiceARpc struct {
	scene.ModuleFactory
	Client sarpc.Client
}

func (ServiceARpc) Init added in v0.3.0

func (b ServiceARpc) Init() scene.LensInit

type ServiceGorm added in v0.3.0

type ServiceGorm struct {
	scene.ModuleFactory
}

func (ServiceGorm) Init added in v0.3.0

func (b ServiceGorm) Init() scene.LensInit

type TokenVerifier added in v0.2.10

type TokenVerifier struct {
	HeaderKey string
	QueryKey  string
}

func (TokenVerifier) Default added in v0.2.10

func (t TokenVerifier) Default() TokenVerifier

func (TokenVerifier) Provide added in v0.2.10

Jump to

Keyboard shortcuts

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