common

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 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 {
	SendMessage(URL, message, title, content string) (error, []byte)
	SendPhoto(URL, message, fileName, title string, photo []byte) (error, []byte)
}

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
	Version         string
	TextColors      bool
	Debug           bool
}

Jump to

Keyboard shortcuts

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