context

package
v0.0.0-...-8b0f75f Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	Uri         string
	Method      string
	Headers     http.Header
	ContentType string
	Cookies     []*http.Cookie
	Body        interface{}
	Request     *http.Request
	RequestId   string
	// contains filtered or unexported fields
}

Context for peer request

func (*Context) AssignUser

func (c *Context) AssignUser(user *entity.UserInfo) *Context

AssignUser when the context's user is not assign

func (*Context) User

func (c *Context) User() *entity.UserInfo

User return the context assigned user

type EnvcdActionFunc

type EnvcdActionFunc func() *result.EnvcdResult

Jump to

Keyboard shortcuts

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