config

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHttpLogConfigDriver

func NewHttpLogConfigDriver() dlog.ConfigDriver

Types

type Config

type Config struct {
	Method  string
	Url     string
	Headers http.Header
	Level   log.Level

	HandlerCount int
}

func ToConfig

func ToConfig(v interface{}) (*Config, error)

type ConfigEncode

type ConfigEncode struct {
	Method  string       `json:"method"`
	Url     string       `json:"url"`
	Headers []HeaderItem `json:"headers"`
	Level   string       `json:"level"`
}

type HeaderItem

type HeaderItem struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

Jump to

Keyboard shortcuts

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