lambdarpc

package
v0.0.0-...-7a2dd3a Latest Latest
Warning

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

Go to latest
Published: May 2, 2022 License: BSD-2-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ApiRequestIdField = "api-request-id"
	RequestIdField    = "request-id"
	UserIdField       = "user-id"
	FunctionIdField   = "function-id"
)

Variables

This section is empty.

Functions

func GetApiRequestId

func GetApiRequestId(ctx context.Context) string

func GetRequestId

func GetRequestId(ctx context.Context) string

func GetUserId

func GetUserId(ctx context.Context) string

Types

type ClientError

type ClientError struct {
	Message string
	Err     error
}

func (*ClientError) Error

func (e *ClientError) Error() string

type Handler

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

func NewHandler

func NewHandler(service interface{}) *Handler

func (*Handler) Init

func (h *Handler) Init() error

func (*Handler) Invoke

func (h *Handler) Invoke(ctx context.Context, payload []byte) ([]byte, error)

type InternalError

type InternalError struct {
	Message string
	Err     error
}

func (*InternalError) Error

func (e *InternalError) Error() string

type InvalidMethodError

type InvalidMethodError struct {
	Details      string
	InvalidParam interface{}
}

func (*InvalidMethodError) Error

func (e *InvalidMethodError) Error() string

Jump to

Keyboard shortcuts

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