transmission

package
v0.0.0-...-74b6fac Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Envelope

type Envelope struct {
	Data      interface{} `json:"data"`
	Message   string      `json:"message"`
	RequestID string      `json:"request_id"`
}

type Response

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

func GetResponse

func GetResponse(r *http.Request) *Response

func NewResponse

func NewResponse(w http.ResponseWriter, r *http.Request, requestID string) *Response

func (*Response) GetRequestId

func (s *Response) GetRequestId() string

func (*Response) Send

func (s *Response) Send(data interface{}, message string, httpStatus int)

Jump to

Keyboard shortcuts

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