Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Component ¶
type Component struct {
// contains filtered or unexported fields
}
func New ¶
New creates an instance of the HTTP component, which handles the HTTP interfaces for the application.
func (*Component) Internal ¶ added in v0.4.0
func (c *Component) Internal() InterfaceConfig
func (*Component) Public ¶ added in v0.4.0
func (c *Component) Public() InterfaceConfig
func (*Component) RegisterHttpHandlers ¶
type Config ¶ added in v0.4.0
type Config struct {
InternalInterface InterfaceConfig `koanf:"internal"`
PublicInterface InterfaceConfig `koanf:"public"`
}
func DefaultConfig ¶ added in v0.4.0
func DefaultConfig() Config
func TestConfig ¶ added in v0.4.0
func TestConfig() Config
type InterfaceConfig ¶ added in v0.4.0
func (InterfaceConfig) URL ¶ added in v0.4.0
func (c InterfaceConfig) URL() *url.URL
type InterfaceInfo ¶ added in v0.4.0
type InterfaceInfo interface {
Public() InterfaceConfig
Internal() InterfaceConfig
}
Click to show internal directories.
Click to hide internal directories.