logs

package
v1.0.72 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: MIT Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

Functions

func Alert

func Alert(err error) error

func Alertf

func Alertf(format string, args ...any) error

func Alertm

func Alertm(message string) error

func Close

func Close() error

func Debug

func Debug(v ...any)

func Debugf

func Debugf(format string, args ...any)

func Del

func Del(collection string, key string) (int64, error)

func Empty

func Empty(collection string) error

func Error

func Error(err error) error

func Errorf

func Errorf(format string, args ...any) error

func Errorm

func Errorm(message string) error

func Fatal

func Fatal(v ...any)

func Get

func Get(collection string, key, def string) (string, error)

func HDel

func HDel(collection string, key, atr string) error

func HGet

func HGet(collection string, key string) (map[string]string, error)

func HGetAtrib

func HGetAtrib(collection string, key, atr string) (string, error)

func HSet

func HSet(collection string, key string, val map[string]string) error

func HSetAtrib

func HSetAtrib(collection string, key, atr, val string) error

func Info

func Info(v ...any)

func Infof

func Infof(format string, args ...any)

func Log

func Log(kind string, args ...any) error

func Logf

func Logf(kind string, format string, args ...any)

func Nerror

func Nerror(message string) error

func Nerrorf

func Nerrorf(format string, args ...any) error

func Panic

func Panic(v ...any)

func Ping

func Ping()

func Pong

func Pong()

func Set

func Set(collection string, key string, val interface{}) error

func Traces

func Traces(kind, color string, err error) ([]string, error)

Types

type Conn

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

func Load

func Load() (*Conn, error)

type MongoDocument

type MongoDocument struct {
	Key        string            `bson:"key"`
	Value      string            `bson:"value"`
	Attributes map[string]string `bson:"attributes,omitempty"`
}

Estructura que representa el documento almacenado en MongoDB

Jump to

Keyboard shortcuts

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