config

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configer

type Configer interface {
	Get(router string) (*WebConfig, error)
}

Configer Configer

func NewConfiger

func NewConfiger(path string) (Configer, error)

NewConfiger NewConfiger

type WebConfig

type WebConfig struct {
	Router string   `json:"router"`
	Type   string   `json:"type"`
	Resp   *WebResp `json:"resp"`
}

WebConfig Config

type WebResp

type WebResp struct {
	Status  int               `json:"status"`
	Headers map[string]string `json:"headers"`
	File    string            `json:"file"`
	Body    json.RawMessage   `json:"body"`
}

WebResp WebResp

Jump to

Keyboard shortcuts

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