entities

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: May 19, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Response

type Response struct {
	Code    int         `json:"code"`
	Status  string      `json:"status"`
	Content interface{} `json:"content,omitempty"`
}

func (*Response) ContentToBytes

func (r *Response) ContentToBytes() []byte

func (*Response) GetStatusCode

func (r *Response) GetStatusCode() int

func (*Response) SetResponseData

func (r *Response) SetResponseData(code int, status string, content interface{})

func (*Response) ToBytes

func (r *Response) ToBytes() []byte

func (*Response) ToString

func (r *Response) ToString() string

Jump to

Keyboard shortcuts

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