aliyun

package module
v0.0.0-...-836d06d Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger interface {
	log.Logger
	Producer() *producer.Producer
	Close() error
}

Logger see more detail https://github.com/aliyun/aliyun-log-go-sdk

func NewAliyunLog

func NewAliyunLog(options ...SlsOption) Logger

NewAliyunLog creates a new aliyun logger instance with default configuration

type Sls

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

func (*Sls) Init

func (s *Sls) Init()

Init initializes the Sls private variables and sets default configuration for the Sls

type SlsOption

type SlsOption func(*Sls)

func WithAccessKey

func WithAccessKey(ak string) SlsOption

WithAccessKey allows you to set a custom AccessKey

func WithAccessSecret

func WithAccessSecret(as string) SlsOption

WithAccessSecret allows you to set a custom AccessSecret

func WithEndpoint

func WithEndpoint(endpoint string) SlsOption

WithEndpoint allows you to set a custom endpoint

func WithLogStore

func WithLogStore(logStore string) SlsOption

WithLogStore allows you to set a custom log store

func WithProject

func WithProject(projectName string) SlsOption

WithProject allows you to set a custom Project name

Jump to

Keyboard shortcuts

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