responseobjs

package
v0.0.0-...-bd9ae38 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2022 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseInfo

type BaseInfo struct {
	ErrorMessage    ErrorMessage `json:"errorMessage,string"`
	CloseTime       int64        `json:"closeTime"` // end of the day
	Seq             int64        `json:"seq,string"`
	ServerTime      int64        `json:"server_time"`
	StatusCode      int64        `json:"statusCode"`
	Maintenance     int64        `json:"maintenance"`
	MaintenanceText string       `json:"maintenance_text,omitempty"`
}

func NewBaseInfo

func NewBaseInfo(em string, statusCode int64) BaseInfo

func (BaseInfo) SetErrorMessage

func (b BaseInfo) SetErrorMessage(message string)

type ErrorMessage

type ErrorMessage string

func (ErrorMessage) MarshalJSON

func (em ErrorMessage) MarshalJSON() ([]byte, error)

Jump to

Keyboard shortcuts

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