Documentation
¶
Index ¶
Constants ¶
View Source
const ( StoreTypePersistent = "persistent" StoreTypeMemory = "memory" )
Variables ¶
View Source
var (
DeprioritizedModules = []string{"ietf", "iana"}
)
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
GRPCServer *GRPCServer `yaml:"grpc-server,omitempty" json:"grpc-server,omitempty"`
SchemaStore *SchemaStoreConfig `yaml:"schema-store,omitempty" json:"schema-store,omitempty"`
// Schemas []*SchemaConfig `yaml:"schemas,omitempty" json:"schemas,omitempty"`
Prometheus *PromConfig `yaml:"prometheus,omitempty" json:"prometheus,omitempty"`
}
type GRPCServer ¶
type GRPCServer struct {
Address string `yaml:"address,omitempty" json:"address,omitempty"`
TLS *TLS `yaml:"tls,omitempty" json:"tls,omitempty"`
SchemaServer *SchemaServer `yaml:"schema-server,omitempty" json:"schema-server,omitempty"`
MaxRecvMsgSize int `yaml:"max-recv-msg-size,omitempty" json:"max-recv-msg-size,omitempty"`
RPCTimeout time.Duration `yaml:"rpc-timeout,omitempty" json:"rpc-timeout,omitempty"`
}
type PromConfig ¶
type PromConfig struct {
Address string `yaml:"address,omitempty" json:"address,omitempty"`
}
type RemoteSchemaServer ¶
type SchemaConfig ¶
type SchemaConfig struct {
Name string `yaml:"name,omitempty" json:"name,omitempty"`
Vendor string `yaml:"vendor,omitempty" json:"vendor,omitempty"`
Version string `yaml:"version,omitempty" json:"version,omitempty"`
Files []string `yaml:"files,omitempty" json:"files,omitempty"`
Directories []string `yaml:"directories,omitempty" json:"directories,omitempty"`
Excludes []string `yaml:"excludes,omitempty" json:"excludes,omitempty"`
}
func (*SchemaConfig) GetSchema ¶
func (sc *SchemaConfig) GetSchema() *sdcpb.Schema
type SchemaServer ¶
type SchemaServer struct {
// Enabled bool `yaml:"enabled,omitempty" json:"enabled,omitempty"`
SchemasDirectory string `yaml:"schemas-directory,omitempty" json:"schemas-directory,omitempty"`
}
type SchemaStoreConfig ¶
type SchemaStoreConfig struct {
Type string `yaml:"type,omitempty" json:"type,omitempty"`
Path string `yaml:"path,omitempty" json:"path,omitempty"`
Cache *SchemaPersistStoreCacheConfig `json:"cache,omitempty"`
Schemas []*SchemaConfig `yaml:"schemas,omitempty" json:"schemas,omitempty"`
ReadOnly bool `yaml:"read-only,omitempty" json:"read-only,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.