cls

package
v0.0.47 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Failed status = iota
	Success
)

Variables

This section is empty.

Functions

func Hook

func Hook() *cls

func New

func New(opts ...Option) *cls

Types

type Credential

type Credential struct {
	SecretID  string `json:"secret_id"`
	SecretKey string `json:"secret_key"`
}

Credential is the ticket for accessing the log service at QCloud

type Handle added in v0.0.27

type Handle func(results ...Result)

type Option

type Option func(*Options)

func WithCallBack added in v0.0.27

func WithCallBack(fn Handle) Option

func WithEndpoint

func WithEndpoint(endpoint string) Option

func WithTopicID added in v0.0.25

func WithTopicID(id string) Option

type Options

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

type Result added in v0.0.27

type Result struct {
	Status status

	RequestID    string
	ErrorCode    string
	ErrorMessage string
	Time         time.Time
}

Jump to

Keyboard shortcuts

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