Documentation ¶
Index ¶
- Constants
- Variables
- func NewMemoryNamespaceManager(nn ...*namespace.Namespace) *memoryNamespaceManager
- func NewProvider(ctx context.Context, flags *pflag.FlagSet, config *Config, ...) (*configx.Provider, error)
- type Config
- func (k *Config) CORS(iface string) (cors.Options, bool)
- func (k *Config) DSN() string
- func (k *Config) Fetcher() *fetcher.Fetcher
- func (k *Config) MaxReadDepth() int
- func (k *Config) MaxReadWidth() int
- func (k *Config) MetricsListenOn() string
- func (k *Config) NamespaceManager() (namespace.Manager, error)
- func (k *Config) OPLSyntaxAPIListenOn() string
- func (k *Config) ReadAPIListenOn() string
- func (k *Config) Set(key string, v any) error
- func (k *Config) Source() *configx.Provider
- func (k *Config) StrictMode() bool
- func (k *Config) TracingConfig() *otelx.Config
- func (k *Config) TracingProvider() string
- func (k *Config) TracingServiceName() string
- func (k *Config) WithSource(p *configx.Provider)
- func (k *Config) WriteAPIListenOn() string
- type EndpointType
- type NamespaceFile
- type NamespaceWatcher
- func (nw *NamespaceWatcher) GetNamespaceByConfigID(_ context.Context, id int32) (*namespace.Namespace, error)
- func (nw *NamespaceWatcher) GetNamespaceByName(_ context.Context, name string) (*namespace.Namespace, error)
- func (nw *NamespaceWatcher) NamespaceFiles() []*NamespaceFile
- func (nw *NamespaceWatcher) Namespaces(_ context.Context) ([]*namespace.Namespace, error)
- func (nw *NamespaceWatcher) ShouldReload(newValue interface{}) bool
- type Parser
- type Provider
Constants ¶
View Source
const ( EndpointRead EndpointType = "read" EndpointWrite EndpointType = "write" EndpointMetrics EndpointType = "metrics" EndpointOPLSyntax EndpointType = "opl" KeyDSN = "dsn" KeyLimitMaxReadDepth = "limit.max_read_depth" KeyLimitMaxReadWidth = "limit.max_read_width" KeyReadAPIHost = "serve." + string(EndpointRead) + ".host" KeyReadAPIPort = "serve." + string(EndpointRead) + ".port" KeyWriteAPIHost = "serve." + string(EndpointWrite) + ".host" KeyWriteAPIPort = "serve." + string(EndpointWrite) + ".port" KeyOPLSyntaxAPIHost = "serve." + string(EndpointOPLSyntax) + ".host" KeyOPLSyntaxAPIPort = "serve." + string(EndpointOPLSyntax) + ".port" KeyMetricsHost = "serve." + string(EndpointMetrics) + ".host" KeyMetricsPort = "serve." + string(EndpointMetrics) + ".port" KeyNamespaces = "namespaces" KeyNamespacesExperimentalStrictMode = KeyNamespaces + ".experimental_strict_mode" DSNMemory = "sqlite://file::memory:?_fk=true&cache=shared" )
Variables ¶
View Source
var ( Version = "master" Date = "undefined" Commit = "undefined" )
Functions ¶
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
func NewDefault ¶
func (*Config) MaxReadDepth ¶
func (*Config) MaxReadWidth ¶
func (*Config) MetricsListenOn ¶
func (*Config) OPLSyntaxAPIListenOn ¶
func (*Config) ReadAPIListenOn ¶
func (*Config) StrictMode ¶
func (*Config) TracingConfig ¶
func (*Config) TracingProvider ¶
func (*Config) TracingServiceName ¶
func (*Config) WithSource ¶
func (*Config) WriteAPIListenOn ¶
type EndpointType ¶
type EndpointType string
type NamespaceFile ¶
type NamespaceWatcher ¶
func NewNamespaceWatcher ¶
func (*NamespaceWatcher) GetNamespaceByConfigID ¶
func (*NamespaceWatcher) GetNamespaceByName ¶
func (*NamespaceWatcher) NamespaceFiles ¶
func (nw *NamespaceWatcher) NamespaceFiles() []*NamespaceFile
func (*NamespaceWatcher) Namespaces ¶
func (*NamespaceWatcher) ShouldReload ¶
func (nw *NamespaceWatcher) ShouldReload(newValue interface{}) bool
Click to show internal directories.
Click to hide internal directories.