log_service

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ListMapConverter

type ListMapConverter map[string][]string

func (ListMapConverter) ToPbListMap

func (lm ListMapConverter) ToPbListMap() map[string]*structpb.ListValue

type LogDownloadRequest

type LogDownloadRequest struct {
	Start       int64    `query:"start" validate:"gte=1"`
	End         int64    `query:"end" validate:"gte=1"`
	Query       string   `query:"query"`
	Sort        []string `query:"sort"`
	Debug       bool     `query:"debug"`
	Addon       string   `param:"addon"`
	ClusterName string   `query:"clusterName"`
	Size        int      `query:"pageSize"`
	MaxReturn   int64    `param:"maxReturn"`
}

type LogKeyGroup

type LogKeyGroup map[LogKeyType]StringList

func (LogKeyGroup) Contains

func (g LogKeyGroup) Contains(keyType LogKeyType) bool

func (LogKeyGroup) ToESQueryString

func (g LogKeyGroup) ToESQueryString() string

func (LogKeyGroup) Where

func (g LogKeyGroup) Where(filter func(k LogKeyType, v StringList) bool) LogKeyGroup

type LogKeyType

type LogKeyType string

type LogKeys

type LogKeys map[string]LogKeyType

func (LogKeys) Add

func (m LogKeys) Add(logKeyValue string, logKeyName LogKeyType)

func (LogKeys) Group

func (m LogKeys) Group() LogKeyGroup

type StringList

type StringList []string

func (StringList) All

func (l StringList) All(predicate func(item string) bool) bool

func (StringList) Any

func (l StringList) Any(predicate func(item string) bool) bool

func (StringList) ToInterfaceList

func (l StringList) ToInterfaceList() []interface{}

Jump to

Keyboard shortcuts

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