goo_context

package
v1.1.228 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

README

signal

  • syscall.SIGUSR1: kill -USR1
  • syscall.SIGUSR2: kill -USR2
  • syscall.SIGHUP: kill -1
  • syscall.SIGTERM: kill TERM
  • syscall.SIGQUIT: kill QUIT
  • syscall.SIGINT: ctrl + c
  • syscall.SIGKILL: kill -9 应用程序捕获不到

context

  • Cancel() 取消执行

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context added in v1.1.218

type Context struct {
	context.Context
	Log *goo_log.Entry
	// contains filtered or unexported fields
}

func Default added in v1.1.223

func Default() *Context

func WithCancel added in v1.1.218

func WithCancel() *Context

func WithLog added in v1.1.218

func WithLog() *Context

func WithParent added in v1.1.224

func WithParent(parent context.Context) *Context

func (*Context) Json added in v1.1.218

func (ctx *Context) Json() []byte

func (*Context) String added in v1.1.218

func (ctx *Context) String() string

func (*Context) Value added in v1.1.218

func (ctx *Context) Value(key string) any

func (*Context) Values added in v1.1.218

func (ctx *Context) Values() map[string]any

func (*Context) WithLog added in v1.1.224

func (ctx *Context) WithLog() *Context

func (*Context) WithParent added in v1.1.224

func (ctx *Context) WithParent(parent context.Context) *Context

func (*Context) WithValue added in v1.1.218

func (ctx *Context) WithValue(key string, value any) *Context

Jump to

Keyboard shortcuts

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