handler

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNilStatus       = errors.New("nil status or unknown error")
	ErrAssertFailure   = errors.New("assert spite type failure")
	ErrNilResponseBody = errors.New("must return spite body")
)

Functions

func AssertRequestName

func AssertRequestName(req *implantpb.Request, expect types.MsgName) error

func AssertSpite

func AssertSpite(spite *implantpb.Spite, expect types.MsgName) error

func AssertStatusAndSpite

func AssertStatusAndSpite(spite *implantpb.Spite, expect types.MsgName) error

func HandleMaleficError

func HandleMaleficError(content *implantpb.Spite) error

func HandleTaskError

func HandleTaskError(status *implantpb.Status) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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