call

package
v0.85.0 Latest Latest
Warning

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

Go to latest
Published: May 23, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handle

func Handle(ctx context.Context, lgr logger.Logger, svc *service.Service, req *api.CallRequest) (*api.CallResponse, error)

Types

type CallArguments

type CallArguments struct {
	Content *string  `json:"Content,omitempty"`
	Headers []Header `json:"Headers"`
	URL     string   `json:"URL"`
	Verb    string   `json:"Verb"`
}

func UnmarshalCallArguments

func UnmarshalCallArguments(data []byte) (CallArguments, error)

func (*CallArguments) Marshal

func (r *CallArguments) Marshal() ([]byte, error)

type CallReturns

type CallReturns struct {
	Body    string   `json:"Body"`
	Headers []Header `json:"Headers"`
	Status  int      `json:"Status"`
}

func UnmarshalCallReturns

func UnmarshalCallReturns(data []byte) (CallReturns, error)

func (*CallReturns) Marshal

func (r *CallReturns) Marshal() ([]byte, error)
type Header struct {
	Name  *string `json:"Name,omitempty"`
	Value *string `json:"Value,omitempty"`
}

Jump to

Keyboard shortcuts

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