Documentation ¶
Index ¶
Constants ¶
View Source
const ( CONTENT_TYPE = "Content-Type" JSON_CONTENT_TYPE = "application/json" )
Variables ¶
This section is empty.
Functions ¶
func MarshalError ¶
func MarshalError(ctx context.Context, w http.ResponseWriter, error int)
Types ¶
type PiResponse ¶
type PiResponse struct { Index int64 `json:"index,omitempty"` Digit string `json:"digit,omitempty"` Cached bool `json:"cached,omitempty"` IPAddress string `json:"ipAddress,omitempty"` }
func (PiResponse) MarshalResponse ¶
func (p PiResponse) MarshalResponse(ctx context.Context, w http.ResponseWriter) error
func (*PiResponse) UnmarshalRequest ¶
Click to show internal directories.
Click to hide internal directories.