encoder

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Encode

func Encode(code code.Code, details []*anypb.Any) ([]byte, error)

Types

type Details

type Details struct {
	Code                       code.Code
	ErrorInfoDetails           *errdetails.ErrorInfo
	RetryInfoDetails           *errdetails.RetryInfo
	BadRequestDetails          *errdetails.BadRequest
	DebugInfoDetails           *errdetails.DebugInfo
	QuotaFailureDetails        *errdetails.QuotaFailure
	PreconditionFailureDetails *errdetails.PreconditionFailure
	ResourceInfoDetails        *errdetails.ResourceInfo
}

func Decode

func Decode(payload []byte) (*Details, error)

Jump to

Keyboard shortcuts

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