transfer

package
v0.0.0-...-92e8fe6 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2023 License: MIT Imports: 4 Imported by: 0

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

func (p *PiResponse) UnmarshalRequest(ctx context.Context, r *http.Response) error

Jump to

Keyboard shortcuts

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