ring

package module
v0.1.12 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient added in v0.1.6

func NewClient(address string, config *tls.Config) *Client

func (*Client) Send

func (c *Client) Send(data []byte) error

func (*Client) Start

func (c *Client) Start() error

func (*Client) Stop

func (c *Client) Stop()

type Hook added in v0.1.6

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

func NewHook added in v0.1.6

func NewHook(params Params) (*Hook, error)

NewHook Инициализация logrus hook

func (*Hook) Close added in v0.1.6

func (h *Hook) Close()

func (*Hook) Fire added in v0.1.6

func (h *Hook) Fire(entry *logrus.Entry) error

func (*Hook) Levels added in v0.1.6

func (h *Hook) Levels() []logrus.Level

type LogEntry added in v0.1.6

type LogEntry struct {
	Timestamp string                 `json:"timestamp"`
	Level     string                 `json:"level"`
	Message   string                 `json:"message"`
	Hostname  string                 `json:"hostname"`
	AppName   string                 `json:"app_name"`
	Token     string                 `json:"token"`
	File      string                 `json:"file"`
	Fields    map[string]interface{} `json:"fields,omitempty"`
}

type Params added in v0.1.6

type Params struct {
	Address   string
	Token     string
	AppName   string
	IgnoreDir string
}

func (Params) String added in v0.1.12

func (p Params) String() string

Jump to

Keyboard shortcuts

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