dv

package
v0.0.0-...-7dbb336 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2021 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultOpts = LoggerOpts{
	URL: "http://localhost:10000",
}

Functions

func Log

func Log(data interface{}) (err error)

func SendReader

func SendReader(c *cli.Context, readFrom io.Reader) error

func Server

func Server(c *cli.Context) error

Types

type Logger

type Logger struct {
	// contains filtered or unexported fields
}

func NewLogger

func NewLogger(opts LoggerOpts) (s *Logger)

func (*Logger) Log

func (s *Logger) Log(data interface{}) (err error)

type LoggerOpts

type LoggerOpts struct {
	URL string
}

Jump to

Keyboard shortcuts

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