Documentation ¶
Overview ¶
Package config describes configuration for a backend Pixur Server.
Index ¶
- Constants
- Variables
- type Config
- func (*Config) Descriptor() ([]byte, []int)
- func (m *Config) GetBackendConfiguration() *api.BackendConfiguration
- func (m *Config) GetDbConfig() string
- func (m *Config) GetDbName() string
- func (m *Config) GetListenAddress() string
- func (m *Config) GetListenNetwork() string
- func (m *Config) GetPixPath() string
- func (m *Config) GetSessionPrivateKeyPath() string
- func (m *Config) GetSessionPublicKeyPath() string
- func (m *Config) GetTokenSecret() string
- func (*Config) ProtoMessage()
- func (m *Config) Reset()
- func (m *Config) String() string
- func (m *Config) XXX_DiscardUnknown()
- func (m *Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Config) XXX_Merge(src proto.Message)
- func (m *Config) XXX_Size() int
- func (m *Config) XXX_Unmarshal(b []byte) error
Constants ¶
View Source
const (
DefaultConfigPath = ".configbe.pb.txt"
)
Variables ¶
View Source
var ( DefaultValues = &Config{ DbName: "sqlite3", DbConfig: "tables.db", ListenAddress: ":8079", ListenNetwork: "tcp", PixPath: "pix", SessionPrivateKeyPath: "", SessionPublicKeyPath: "", TokenSecret: "", } Conf = mergeParseConfigFlag(DefaultValues) )
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // Name of the database, like "mysql" DbName string `protobuf:"bytes,1,opt,name=db_name,json=dbName,proto3" json:"db_name,omitempty"` DbConfig string `protobuf:"bytes,2,opt,name=db_config,json=dbConfig,proto3" json:"db_config,omitempty"` // listen network (e.g. "tcp") ListenNetwork string `protobuf:"bytes,3,opt,name=listen_network,json=listenNetwork,proto3" json:"listen_network,omitempty"` // listen address (e.g. "localhost:1234") ListenAddress string `protobuf:"bytes,9,opt,name=listen_address,json=listenAddress,proto3" json:"listen_address,omitempty"` // Path to look for pictures. PixPath string `protobuf:"bytes,4,opt,name=pix_path,json=pixPath,proto3" json:"pix_path,omitempty"` // session stuff TokenSecret string `protobuf:"bytes,5,opt,name=token_secret,json=tokenSecret,proto3" json:"token_secret,omitempty"` SessionPrivateKeyPath string `` /* 128-byte string literal not displayed */ SessionPublicKeyPath string `protobuf:"bytes,7,opt,name=session_public_key_path,json=sessionPublicKeyPath,proto3" json:"session_public_key_path,omitempty"` BackendConfiguration *api.BackendConfiguration `protobuf:"bytes,10,opt,name=backend_configuration,json=backendConfiguration,proto3" json:"backend_configuration,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Config describes server configuration.
func (*Config) Descriptor ¶
func (*Config) GetBackendConfiguration ¶
func (m *Config) GetBackendConfiguration() *api.BackendConfiguration
func (*Config) GetDbConfig ¶
func (*Config) GetListenAddress ¶
func (*Config) GetListenNetwork ¶
func (*Config) GetPixPath ¶
func (*Config) GetSessionPrivateKeyPath ¶
func (*Config) GetSessionPublicKeyPath ¶
func (*Config) GetTokenSecret ¶
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
func (*Config) XXX_DiscardUnknown ¶
func (m *Config) XXX_DiscardUnknown()
func (*Config) XXX_Marshal ¶
func (*Config) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.