config

package
v0.0.0-...-c945685 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 7, 2020 License: Apache-2.0 Imports: 9 Imported by: 16

Documentation

Overview

Package config describes configuration for a backend Pixur Server.

Index

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) Descriptor() ([]byte, []int)

func (*Config) GetBackendConfiguration

func (m *Config) GetBackendConfiguration() *api.BackendConfiguration

func (*Config) GetDbConfig

func (m *Config) GetDbConfig() string

func (*Config) GetDbName

func (m *Config) GetDbName() string

func (*Config) GetListenAddress

func (m *Config) GetListenAddress() string

func (*Config) GetListenNetwork

func (m *Config) GetListenNetwork() string

func (*Config) GetPixPath

func (m *Config) GetPixPath() string

func (*Config) GetSessionPrivateKeyPath

func (m *Config) GetSessionPrivateKeyPath() string

func (*Config) GetSessionPublicKeyPath

func (m *Config) GetSessionPublicKeyPath() string

func (*Config) GetTokenSecret

func (m *Config) GetTokenSecret() string

func (*Config) ProtoMessage

func (*Config) ProtoMessage()

func (*Config) Reset

func (m *Config) Reset()

func (*Config) String

func (m *Config) String() string

func (*Config) XXX_DiscardUnknown

func (m *Config) XXX_DiscardUnknown()

func (*Config) XXX_Marshal

func (m *Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Config) XXX_Merge

func (m *Config) XXX_Merge(src proto.Message)

func (*Config) XXX_Size

func (m *Config) XXX_Size() int

func (*Config) XXX_Unmarshal

func (m *Config) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL