cls

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2023 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

type Handle func(results ...Result)

type Option

type Option func(*Options)

func WithCallBack

func WithCallBack(fn Handle) Option

func WithEndpoint

func WithEndpoint(endpoint string) Option

func WithTopicID

func WithTopicID(id string) Option

type Options

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

type Result

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