api

package
v0.0.0-...-f01cf00 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2025 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MaxBytesReaderMiddleware

func MaxBytesReaderMiddleware(next http.Handler) http.Handler

func NewAPIRouter

func NewAPIRouter(path string, svc *services.Service, origins []string, logger *zap.Logger) *mux.Router

Types

type CreateCredentialRequest

type CreateCredentialRequest struct {
	Address common.Address `json:"address"`
	Msg     []byte         `json:"msg"`
	Sig     []byte         `json:"sig"`
	Version string         `json:"version"`
	// contains filtered or unexported fields
}

func (*CreateCredentialRequest) UnmarshalJSON

func (c *CreateCredentialRequest) UnmarshalJSON(data []byte) error

type CreateCredentialResponse

type CreateCredentialResponse struct {
	Username  string `json:"username"`
	Password  string `json:"password"`
	Timestamp int64  `json:"timestamp"`
	ExpiresAt int64  `json:"expiresAt"`
}

type OperatorInfoRequest

type OperatorInfoRequest CreateCredentialRequest

type OperatorInfoResponse

type OperatorInfoResponse struct {
	CredentialEvents []int64          `json:"credentialEvents"`
	QuotaSettings    *json.RawMessage `json:"quotaSettings"`
}

Jump to

Keyboard shortcuts

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