Documentation
¶
Index ¶
- Constants
- Variables
- func NewMemoryNamespaceManager(nn ...*namespace.Namespace) *memoryNamespaceManager
- type Config
- func (k *Config) CORS() (cors.Options, bool)
- func (k *Config) DSN() string
- func (k *Config) NamespaceManager() (namespace.Manager, error)
- func (k *Config) ReadAPIListenOn() string
- func (k *Config) Set(key string, v interface{}) error
- func (k *Config) Source() *configx.Provider
- func (k *Config) TracingConfig() *tracing.Config
- func (k *Config) TracingProvider() string
- func (k *Config) TracingServiceName() string
- func (k *Config) WriteAPIListenOn() string
- type NamespaceFile
- type NamespaceWatcher
- func (n *NamespaceWatcher) GetNamespaceByConfigID(_ context.Context, id int32) (*namespace.Namespace, error)
- func (n *NamespaceWatcher) GetNamespaceByName(_ context.Context, name string) (*namespace.Namespace, error)
- func (n *NamespaceWatcher) NamespaceFiles() []*NamespaceFile
- func (n *NamespaceWatcher) Namespaces(_ context.Context) ([]*namespace.Namespace, error)
- func (n *NamespaceWatcher) ShouldReload(newValue interface{}) bool
- type Parser
- type Provider
Constants ¶
View Source
const ( KeyDSN = "dsn" KeyReadAPIHost = "serve.read.host" KeyReadAPIPort = "serve.read.port" KeyWriteAPIHost = "serve.write.host" KeyWriteAPIPort = "serve.write.port" KeyNamespaces = "namespaces" DSNMemory = "sqlite://file::memory:?_fk=true&cache=shared" )
Variables ¶
View Source
var ( Version = "master" Date = "undefined" Commit = "undefined" )
View Source
var Schema []byte
Functions ¶
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
func (*Config) ReadAPIListenOn ¶
func (*Config) TracingConfig ¶
func (*Config) TracingProvider ¶
func (*Config) TracingServiceName ¶
func (*Config) WriteAPIListenOn ¶
type NamespaceFile ¶
type NamespaceWatcher ¶
func NewNamespaceWatcher ¶
func (*NamespaceWatcher) GetNamespaceByConfigID ¶
func (*NamespaceWatcher) GetNamespaceByName ¶
func (*NamespaceWatcher) NamespaceFiles ¶
func (n *NamespaceWatcher) NamespaceFiles() []*NamespaceFile
func (*NamespaceWatcher) Namespaces ¶
func (*NamespaceWatcher) ShouldReload ¶
func (n *NamespaceWatcher) ShouldReload(newValue interface{}) bool
Click to show internal directories.
Click to hide internal directories.