options

package
v0.0.0-...-7378411 Latest Latest
Warning

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

Go to latest
Published: May 21, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Site         Site
	Session      Session
	Version      string
	AgentAppUrl  string
	LoginUrl     string
	LoginVersion string
	ConfigMap    map[string]string
}

type ServerOption

type ServerOption struct {
	ServConf *config.CCAPIConfig
}

ServerOption define option of server in flags

func NewServerOption

func NewServerOption() *ServerOption

NewServerOption create a ServerOption object

func (*ServerOption) AddFlags

func (s *ServerOption) AddFlags(fs *pflag.FlagSet)

AddFlags add flags

type Session

type Session struct {
	Name            string
	Skip            string
	DefaultLanguage string
	Host            string
	Address         string // used to redis sentinel mode, expect format style: ip:port;ip:port
	Port            string
	Secret          string
	MasterName      string
	MultipleOwner   string
}

type Site

type Site struct {
	AccountUrl      string
	DomainUrl       string
	HttpsDomainUrl  string
	HtmlRoot        string
	ResourcesPath   string
	BkLoginUrl      string
	BkHttpsLoginUrl string
	AppCode         string
	CheckUrl        string
}

Jump to

Keyboard shortcuts

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