Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseProvider ¶
type BaseProvider struct {
Name string `json:"name"`
ProviderType ProviderType `json:"provider_type"`
}
BaseProvider holds fields common to every provider.
func (*BaseProvider) Type ¶
func (b *BaseProvider) Type() ProviderType
type Provider ¶
type Provider interface {
// Type returns the discriminator.
Type() ProviderType
}
Provider is implemented by all concrete provider types.
type ProviderType ¶
type ProviderType string
const ( ProviderHTTP ProviderType = "http" ProviderSSE ProviderType = "sse" ProviderHTTPStream ProviderType = "http_stream" ProviderCLI ProviderType = "cli" ProviderWebSocket ProviderType = "websocket" ProviderGRPC ProviderType = "grpc" ProviderGraphQL ProviderType = "graphql" ProviderTCP ProviderType = "tcp" ProviderUDP ProviderType = "udp" ProviderWebRTC ProviderType = "webrtc" ProviderMCP ProviderType = "mcp" ProviderText ProviderType = "text" )
Click to show internal directories.
Click to hide internal directories.