aliyunlog

package
v0.5.9 Latest Latest
Warning

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

Go to latest
Published: May 5, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New()

Types

type CompleteLogSearchUrlRequest

type CompleteLogSearchUrlRequest struct {
	Region    string `query:"region"`
	Project   string `query:"project"`
	LogStore  string `query:"logstore"`
	Query     string `query:"query"`
	StartTime string `query:"startTime"`
	EndTime   string `query:"endTime"`
}

type CompleteTraceSearchUrlRequest added in v0.5.2

type CompleteTraceSearchUrlRequest struct {
	Region string `query:"region"`
	ToURL  string `query:"toURL"`
}

type LogNode

type LogNode struct {
	Value    string     `json:"value"`
	Label    string     `json:"label"`
	Children []*LogNode `json:"children"`
}

LogNode 日志菜单

type Service

type Service struct {
	Clients    map[string]sls.ClientInterface
	StsClients map[string]*sts.Client
	// contains filtered or unexported fields
}

Service 服务

var Instance *Service

func Init

func Init() *Service

Init 初始化

func (*Service) CompleteLogSearchUrl

func (s *Service) CompleteLogSearchUrl(ctx context.Context, req *CompleteLogSearchUrlRequest, u *db.User) (signInUrl string, err error)

CompleteLogSearchUrl 获取

func (*Service) CompleteTraceSearchUrl added in v0.5.2

func (s *Service) CompleteTraceSearchUrl(ctx context.Context, req *CompleteTraceSearchUrlRequest, u *db.User) (signInUrl string, err error)

CompleteLogSearchUrl 获取

func (*Service) LogStoreMenu

func (s *Service) LogStoreMenu(ctx context.Context) (ret []*LogNode, err error)

LogStoreMenu 日志菜单

func (*Service) RefreshMenuData

func (s *Service) RefreshMenuData() (err error)

RefreshMenuData

type TokenBody

type TokenBody struct {
	SigninToken string `json:"SigninToken"`
}

Jump to

Keyboard shortcuts

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