domain

package
v0.0.0-...-86c26d7 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Request

type Request struct {
	Method  string              `json:"method"`
	Url     string              `json:"url"`
	Headers map[string][]string `json:"headers"`
	Body    []byte              `json:"body"`
}

func FromHttpRequest

func FromHttpRequest(r *http.Request) (*Request, error)

func FromJson

func FromJson(data []byte) *Request

func FromMessage

func FromMessage(message *pubsub.Message) *Request

func (*Request) ToHttpRequest

func (req *Request) ToHttpRequest(u string) (*http.Request, error)

func (*Request) ToJson

func (req *Request) ToJson() ([]byte, error)

func (*Request) ToMessage

func (req *Request) ToMessage() (*pubsub.Message, error)

Jump to

Keyboard shortcuts

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