Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // Port to listen for incoming connections Port int `env:"PORT" envDefault:"1323"` // Timeout for outgoing http requests Timeout time.Duration `env:"TIMEOUT" envDefault:"60s"` // BotUA BotUA string `env:"BOT_UA" envDefault:"Mozilla/5.0 (compatible; SummalyBot/0.0.1; +https://github.com/yulog/go-summaly)"` // NonBotUA NonBotUA string `` /* 141-byte string literal not displayed */ // RequireNonBotUAFile RequireNonBotUAFile string `env:"REQUIRE_NON_BOT_UA_FILE" envDefault:"./nonbot.txt"` // RequireNonBotUA RequireNonBotUA []string `env:"REQUIRE_NON_BOT_UA,file,expand" envDefault:"${REQUIRE_NON_BOT_UA_FILE}"` // AllowPrivateIP to connect private ip for test AllowPrivateIP bool `env:"ALLOW_PRIVATE_IP" envDefault:"false"` }
type JSONSerializer ¶
type JSONSerializer struct{}
func (*JSONSerializer) Deserialize ¶
func (j *JSONSerializer) Deserialize(c echo.Context, i interface{}) error
func (*JSONSerializer) Serialize ¶
func (j *JSONSerializer) Serialize(c echo.Context, i interface{}, indent string) error
Click to show internal directories.
Click to hide internal directories.