sls

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Endpoints = []string{
	"cn-hangzhou.log.aliyuncs.com",
	"cn-hangzhou-finance.log.aliyuncs.com",
	"cn-shanghai.log.aliyuncs.com",
	"cn-shanghai-finance-1.log.aliyuncs.com",
	"cn-qingdao.log.aliyuncs.com",
	"cn-beijing.log.aliyuncs.com",
	"cn-zhangjiakou.log.aliyuncs.com",
	"cn-huhehaote.log.aliyuncs.com",
	"cn-shenzhen.log.aliyuncs.com",
	"cn-shenzhen-finance.log.aliyuncs.com",
	"cn-chengdu.log.aliyuncs.com",
	"cn-hongkong.log.aliyuncs.com",
	"ap-northeast-1.log.aliyuncs.com",
	"ap-southeast-1.log.aliyuncs.com",
	"ap-southeast-2.log.aliyuncs.com",
	"ap-southeast-3.log.aliyuncs.com",
	"ap-southeast-5.log.aliyuncs.com",
	"me-east-1.log.aliyuncs.com",
	"us-west-1.log.aliyuncs.com",
	"eu-central-1.log.aliyuncs.com",
	"us-east-1.log.aliyuncs.com",
	"ap-south-1.log.aliyuncs.com",
	"eu-west-1.log.aliyuncs.com",
}

Endpoints sls endpoints

Functions

This section is empty.

Types

type Account

type Account struct {
	Group           string            `file:"comsume_group"`
	AccessKey       string            `file:"ali_access_key"`
	AccessSecretKey string            `file:"ali_access_secret_key"`
	Endpoints       []string          `file:"endpoints"`
	Tags            map[string]string `file:"tags"`
}

Account .

type ConsumeFunc

type ConsumeFunc func(shardID int, groups *sls.LogGroupList) string

ConsumeFunc .

type Consumer

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

Consumer .

func (*Consumer) Close

func (c *Consumer) Close() error

func (*Consumer) Start

func (c *Consumer) Start() error

type ConsumerManager

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

ConsumerManager .

func (*ConsumerManager) Close

func (cm *ConsumerManager) Close() error

Close .

func (*ConsumerManager) Patch

func (cm *ConsumerManager) Patch(account *Account)

func (*ConsumerManager) Start

func (cm *ConsumerManager) Start(ctx context.Context) error

Start .

type LogStore

type LogStore struct {
	Project string `file:"project"`
	Store   string `file:"store"`
	Type    string `file:"type"`
}

LogStore .

type Processor

type Processor interface {
	MatchProject(project string) bool
	MatchStore(project, store string) *LogStore
	GetHandler(project, store, typ string, account *Account) ConsumeFunc
}

Processor .

Jump to

Keyboard shortcuts

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