config

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSysLogConfigDriver

func NewSysLogConfigDriver() dlog.ConfigDriver

Types

type Config

type Config struct {
	Network string
	RAddr   string
	Level   log.Level
}

func ToConfig

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

type ConfigEncode

type ConfigEncode struct {
	Network string `json:"network"`
	URL     string `json:"url"`
	Level   string `json:"level"`
}

type SysLogConfigDriver

type SysLogConfigDriver struct {
	*dlog.FullFieldsDriver
}

func (*SysLogConfigDriver) Decode

func (c *SysLogConfigDriver) Decode(v string) (interface{}, error)

func (*SysLogConfigDriver) Encode

func (c *SysLogConfigDriver) Encode(v interface{}) (string, error)

func (*SysLogConfigDriver) Format

func (c *SysLogConfigDriver) Format(v string) (interface{}, error)

func (*SysLogConfigDriver) Name

func (c *SysLogConfigDriver) Name() string

func (*SysLogConfigDriver) Title

func (c *SysLogConfigDriver) Title() string

Jump to

Keyboard shortcuts

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