Documentation
¶
Index ¶
- type State
- func (s *State) GetAuth(prefix string) *config.Auth
- func (s *State) GetCORS(prefix string) *config.CORSConfig
- func (s *State) GetMissingToolCount() int
- func (s *State) GetProtoType(prefix string) cnst.ProtoType
- func (s *State) GetRawConfigs() []*config.MCPConfig
- func (s *State) GetRouterCount() int
- func (s *State) GetSSEPrefix(prefix string) string
- func (s *State) GetServerConfig(prefix string) *config.ServerConfig
- func (s *State) GetServerCount() int
- func (s *State) GetTool(prefix, name string) *config.ToolConfig
- func (s *State) GetToolCount() int
- func (s *State) GetToolSchemas(prefix string) []mcp.ToolSchema
- func (s *State) GetTransport(prefix string) mcpproxy.Transport
- func (s *State) GetTransports() map[string]mcpproxy.Transport
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 (*State) GetMissingToolCount ¶
func (*State) GetRawConfigs ¶
func (*State) GetRouterCount ¶
func (*State) GetSSEPrefix ¶ added in v0.6.3
func (*State) GetServerConfig ¶
func (s *State) GetServerConfig(prefix string) *config.ServerConfig
func (*State) GetServerCount ¶
func (*State) GetToolCount ¶
func (*State) GetToolSchemas ¶
func (s *State) GetToolSchemas(prefix string) []mcp.ToolSchema
Click to show internal directories.
Click to hide internal directories.