log

package
v1.3.1-beta Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ILogService

type ILogService interface {
	UpdateLogSource(ctx context.Context, driver string, input *Save) error
	GetLogSource(ctx context.Context, driver string) (*Source, error)
	Logs(ctx context.Context, driver string, cluster string, conditions map[string]string, start time.Time, end time.Time, limit int64, offset int64) ([]*Item, int64, error)
	LogCount(ctx context.Context, driver string, cluster string, conditions map[string]string, spendHour int64, group string) (map[string]int64, error)
	LogInfo(ctx context.Context, driver string, cluster string, id string) (*Info, error)
}

type Info

type Info struct {
	ID                string
	ContentType       string
	RequestBody       string
	ProxyBody         string
	ProxyResponseBody string
	ResponseBody      string
}

type Item

type Item struct {
	ID            string
	Service       string
	Method        string
	Url           string
	RemoteIP      string
	Consumer      string
	Authorization string
	RecordTime    time.Time
}

type Save

type Save struct {
	ID      string
	Cluster *string
	Config  *string
}

type Source

type Source struct {
	ID       string
	Cluster  string
	Driver   string
	Config   string
	Creator  string
	Updater  string
	CreateAt time.Time
	UpdateAt time.Time
}

func FromEntity

func FromEntity(ov *log_source.Log) *Source

Jump to

Keyboard shortcuts

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