Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct { AppConfig // contains filtered or unexported fields }
App parses the given arguments and starts a new reverse proxy service
type Application ¶
Application can be any program running on a server that is accessable through a port. Reproksie redirects requests on the Application `host` from entrypoints to Application's `port`.
type Config ¶
type Config struct { EntryPoints []*EntryPoint Applications []*Application LogPath string `json:"log_path"` Logger *log.Logger }
Config holds all configuration data needed to setup Reproksie.
func ParseConfig ¶
func ParseConfig(parser ConfigParser, data []byte) (*Config, error)
ParseConfig parses the provided json data and sets all configuration that reproksie needs.
type ConfigParser ¶
ConfigParser is an interface that allows for parsing configurations based on their extension.
type EntryPoint ¶
EntryPoint is the EntryPoint of a request. Reproksie will then serve the request to the correct application.
type JSONParser ¶
type JSONParser struct{}
JSONParser is a JSON parser that unmarshals a json config file into Reproksie's config
type Protocol ¶
type Protocol string
Protocol is the web protocol used for the request. Either `http` or `https`.
type YamlParser ¶
type YamlParser struct{}
YamlParser is a YAML parser that unmarshals a yaml config file into Reproksie's config