common

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2022 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Messenger

type Messenger interface {
	Send() ([]byte, error)
	SendFile() ([]byte, error)
	SendCustom(URL, message, title, content string) ([]byte, error)
	SendCustomFile(URL, message, fileName, title string, file []byte) ([]byte, error)
}

type Stdout

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

func NewStdout

func NewStdout(options StdoutOptions) *Stdout

func (*Stdout) Debug

func (so *Stdout) Debug(obj interface{}, args ...interface{})

func (*Stdout) Error

func (so *Stdout) Error(obj interface{}, args ...interface{})

func (*Stdout) Info

func (so *Stdout) Info(obj interface{}, args ...interface{})

func (*Stdout) Panic

func (so *Stdout) Panic(obj interface{}, args ...interface{})

func (*Stdout) SetCallerOffset

func (so *Stdout) SetCallerOffset(offset int)

func (*Stdout) Warn

func (so *Stdout) Warn(obj interface{}, args ...interface{})

type StdoutOptions

type StdoutOptions struct {
	Format          string
	Level           string
	Template        string
	TimestampFormat string
	TextColors      bool
}

Jump to

Keyboard shortcuts

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