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: 7 Imported by: 8

Documentation

Overview

Package config describes configuration for a frontend Pixur Server.

Index

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

func (*Config) GetHttpRoot

func (m *Config) GetHttpRoot() string

func (*Config) GetHttpSpec

func (m *Config) GetHttpSpec() string

func (*Config) GetInsecure

func (m *Config) GetInsecure() bool

func (*Config) GetPixurSpec

func (m *Config) GetPixurSpec() string

func (*Config) GetSiteName

func (m *Config) GetSiteName() 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