log_hdl

package
v0.14.1 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

func New

func New(logs []Log, bufferSize int) (*Handler, error)

func (*Handler) GetReader

func (h *Handler) GetReader(ctx context.Context, id string, numOfLines int) (io.ReadCloser, error)

func (*Handler) List

func (h *Handler) List(_ context.Context) (map[string]lib_model.Log, error)

type Log

type Log struct {
	Name string `json:"name"`
	Path string `json:"path"`
}

func ReadConfig

func ReadConfig(p string) ([]Log, error)

Jump to

Keyboard shortcuts

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