response

package
v0.0.0-...-cb07b45 Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddressResponse

type AddressResponse struct {
	Address string `json:"address"`
}

type Responder

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

func NewResponder

func NewResponder(supply *supply.Supply) *Responder

func (*Responder) Body

func (r *Responder) Body(w http.ResponseWriter, body any) error

func (*Responder) EncryptedBody

func (r *Responder) EncryptedBody(w http.ResponseWriter, ctx context.Context, body any) error

type Response

type Response struct {
	ResponseType ResponseType `json:"response_type"`
	Secure       string       `json:"secure,omitempty"`
	Object       any          `json:"object,omitempty"`
	Objects      any          `json:"objects,omitempty"`
}

type ResponseType

type ResponseType string
const (
	ResponseTypeObject ResponseType = "object"
	ResponseTypeArray  ResponseType = "array"
	ResponseTypeSecure ResponseType = "secure"
)

Jump to

Keyboard shortcuts

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