loki

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Methods added in v0.4.0

func Methods() []string

Methods returns module methods

func ModuleName added in v0.4.0

func ModuleName(name string) string

ModuleName returns the module name

Types

type Loki

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

Loki represents the datasource of type Loki

func New

func New(cfg loki.Loki, logger *zap.Logger) (*Loki, error)

New creates new Loki datasource

func (*Loki) CoreApiHandler added in v0.10.0

func (m *Loki) CoreApiHandler(method string, parts []string, params map[string]string, body []byte) (any, int, error)

func (*Loki) GetLoader

func (m *Loki) GetLoader(_ modules.Job) lua.LGFunction

GetLoader returns the datasource lua loader

func (*Loki) Name

func (m *Loki) Name() string

Name returns the datasource name

func (*Loki) Stop

func (m *Loki) Stop() error

Stop the datasource

Jump to

Keyboard shortcuts

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