Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Server ConfigServer `toml:"server"`
Limit ConfigLimit `toml:"limit"`
Zone *ConfigZone `toml:"zone,omitempty"`
Modules []*ConfigModule `toml:"modules"`
Domains []*inapi2.GatewayService_DomainDeploy `toml:"domains"`
// contains filtered or unexported fields
}
func (*Config) Domain ¶
func (it *Config) Domain(name string) *DomainEntry
func (*Config) Module ¶
func (it *Config) Module(domain string) *ConfigModule
type ConfigLimit ¶
type ConfigModule ¶
type ConfigServer ¶
type ConfigZone ¶
type ConfigZone struct {
Id string `toml:"id"`
Client lynkapi.ClientConfig `toml:"client"`
}
type DomainEntry ¶
type DomainEntry struct {
Domain *inapi2.GatewayService_DomainDeploy `json:"domain"`
Routes []*DomainEntryRoute `json:"routes"`
// contains filtered or unexported fields
}
type DomainEntryRoute ¶
type ModuleHandler ¶
type ModuleHandler func(ctx *ServiceContext, w http.ResponseWriter, r *http.Request)
type ServiceContext ¶
func (*ServiceContext) Option ¶
func (it *ServiceContext) Option(name string) string
Click to show internal directories.
Click to hide internal directories.