Documentation
¶
Index ¶
- Constants
- type Catchall
- func (instance *Catchall) Flags() []cli.Flag
- func (instance Catchall) GetExcludes() []string
- func (instance Catchall) GetIncludes() []string
- func (instance Catchall) GetTarget() string
- func (instance *Catchall) IsEligible(candidate string) (bool, error)
- func (instance Catchall) Merge(with Catchall) Catchall
- func (instance *Catchall) Validate(using goxr.Box) (errors []error)
- type Configuration
- type HttpAddress
- type Listen
- type Logging
- type Paths
- func (instance *Paths) FindStatusCode(code int) string
- func (instance *Paths) Flags() []cli.Flag
- func (instance Paths) GetExcludes() []string
- func (instance Paths) GetIncludes() []string
- func (instance Paths) GetIndex() string
- func (instance Paths) GetStatusCodes() map[int]string
- func (instance Paths) Merge(with Paths) Paths
- func (instance *Paths) PathAllowed(candidate string) (bool, error)
- func (instance *Paths) Validate(using goxr.Box) (errors []error)
- type Response
- func (instance *Response) Flags() []cli.Flag
- func (instance Response) GetGzip() bool
- func (instance Response) GetHeaders() map[string][]string
- func (instance Response) GetMimeTypes() map[string]string
- func (instance Response) GetWithContentType() bool
- func (instance Response) GetWithEtag() bool
- func (instance Response) GetWithLastModified() bool
- func (instance Response) Merge(with Response) Response
- func (instance *Response) Validate(using goxr.Box) (errors []error)
Constants ¶
View Source
const LocationInBox = `goxr-server.yaml`
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Catchall ¶
type Catchall struct { Target *string `yaml:"target,omitempty"` Includes *[]string `yaml:"includes,omitempty"` Excludes *[]string `yaml:"excludes,omitempty"` // contains filtered or unexported fields }
func (Catchall) GetExcludes ¶
func (Catchall) GetIncludes ¶
type Configuration ¶
type Configuration struct { Listen Listen `yaml:"listen,omitempty"` Paths Paths `yaml:"paths,omitempty"` Response Response `yaml:"response,omitempty"` Logging Logging `yaml:"logging,omitempty"` }
func (*Configuration) Flags ¶ added in v0.2.0
func (instance *Configuration) Flags() (result []cli.Flag)
func (Configuration) Merge ¶ added in v0.2.0
func (instance Configuration) Merge(with Configuration) (result Configuration)
func (*Configuration) Validate ¶
func (instance *Configuration) Validate(using goxr.Box) (errors []error)
func (*Configuration) ValidateAndSummarize ¶
func (instance *Configuration) ValidateAndSummarize(using goxr.Box) error
type HttpAddress ¶ added in v0.2.0
type HttpAddress string
func (*HttpAddress) Set ¶ added in v0.2.0
func (instance *HttpAddress) Set(plain string) error
func (HttpAddress) String ¶ added in v0.2.0
func (instance HttpAddress) String() string
type Listen ¶
type Listen struct {
HttpAddress HttpAddress `yaml:"httpAddress,omitempty"`
}
func (Listen) GetHttpAddress ¶
type Logging ¶
type Logging struct { log.Configuration `yaml:",inline"` AccessLog *bool `yaml:"accessLog,omitempty"` }
func (Logging) GetAccessLog ¶
type Paths ¶
type Paths struct { Catchall Catchall `yaml:"catchall,omitempty"` Index *string `yaml:"index,omitempty"` StatusCodes map[int]string `yaml:"statusCodes,omitempty"` Includes *[]string `yaml:"includes,omitempty"` Excludes *[]string `yaml:"excludes,omitempty"` // contains filtered or unexported fields }
func (*Paths) FindStatusCode ¶
func (Paths) GetExcludes ¶
func (Paths) GetIncludes ¶
func (Paths) GetStatusCodes ¶
type Response ¶
type Response struct { MimeTypes map[string]string `yaml:"mimeTypes,omitempty"` Gzip *bool `yaml:"gzip,omitempty"` Headers map[string][]string `yaml:"headers,omitempty"` WithEtag *bool `yaml:"withEtag,omitempty"` WithLastModified *bool `yaml:"withLastModified,omitempty"` WithContentType *bool `yaml:"withContentType,omitempty"` }
func (Response) GetHeaders ¶
func (Response) GetMimeTypes ¶
func (Response) GetWithContentType ¶ added in v0.1.0
func (Response) GetWithEtag ¶ added in v0.1.0
func (Response) GetWithLastModified ¶ added in v0.1.0
Click to show internal directories.
Click to hide internal directories.