state

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type State

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

State contains all the read-only shared state

func BuildStateFromConfig

func BuildStateFromConfig(ctx context.Context, cfgs []*config.MCPConfig, oldState *State, logger *zap.Logger) (*State, error)

BuildStateFromConfig creates a new State from the given configuration

func NewState

func NewState() *State

func (*State) GetAuth added in v0.6.0

func (s *State) GetAuth(prefix string) *config.Auth

func (*State) GetCORS

func (s *State) GetCORS(prefix string) *config.CORSConfig

func (*State) GetMissingToolCount

func (s *State) GetMissingToolCount() int

func (*State) GetProtoType

func (s *State) GetProtoType(prefix string) cnst.ProtoType

func (*State) GetRawConfigs

func (s *State) GetRawConfigs() []*config.MCPConfig

func (*State) GetRouterCount

func (s *State) GetRouterCount() int

func (*State) GetSSEPrefix added in v0.6.3

func (s *State) GetSSEPrefix(prefix string) string

func (*State) GetServerConfig

func (s *State) GetServerConfig(prefix string) *config.ServerConfig

func (*State) GetServerCount

func (s *State) GetServerCount() int

func (*State) GetTool

func (s *State) GetTool(prefix, name string) *config.ToolConfig

func (*State) GetToolCount

func (s *State) GetToolCount() int

func (*State) GetToolSchemas

func (s *State) GetToolSchemas(prefix string) []mcp.ToolSchema

func (*State) GetTransport

func (s *State) GetTransport(prefix string) mcpproxy.Transport

func (*State) GetTransports

func (s *State) GetTransports() map[string]mcpproxy.Transport

Jump to

Keyboard shortcuts

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