Documentation ¶
Overview ¶
Package config describes configuration for a frontend Pixur Server.
Index ¶
- Constants
- Variables
- type Config
- func (*Config) Descriptor() ([]byte, []int)
- func (m *Config) GetHttpRoot() string
- func (m *Config) GetHttpSpec() string
- func (m *Config) GetInsecure() bool
- func (m *Config) GetPixurSpec() string
- func (m *Config) GetSiteName() 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 = ".configfe.pb.txt"
)
Variables ¶
View Source
var ( DefaultValues = &Config{ HttpSpec: ":8080", PixurSpec: ":8079", Insecure: true, HttpRoot: "/", } Conf = mergeParseConfigFlag(DefaultValues) )
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // Address to bind to, like ":http" HttpSpec string `protobuf:"bytes,1,opt,name=http_spec,json=httpSpec,proto3" json:"http_spec,omitempty"` // Pixur API server target PixurSpec string `protobuf:"bytes,2,opt,name=pixur_spec,json=pixurSpec,proto3" json:"pixur_spec,omitempty"` // If the site is access through insecure connections. // Affects cookies. Insecure bool `protobuf:"varint,3,opt,name=insecure,proto3" json:"insecure,omitempty"` // describes the root url to serve from. HttpRoot string `protobuf:"bytes,4,opt,name=http_root,json=httpRoot,proto3" json:"http_root,omitempty"` // The name to show for this site. SiteName string `protobuf:"bytes,5,opt,name=site_name,json=siteName,proto3" json:"site_name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Config describes fe server configuration.
func (*Config) Descriptor ¶
func (*Config) GetHttpRoot ¶
func (*Config) GetHttpSpec ¶
func (*Config) GetInsecure ¶
func (*Config) GetPixurSpec ¶
func (*Config) GetSiteName ¶
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.