rest

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRestUserProvider

func NewRestUserProvider(config model.UserProviderConfig, metrics *metrics.Metrics, logger logging.Logger) user.Provider

Types

type BalanceResponse

type BalanceResponse struct {
	Balance struct {
		Type     string `json:"type"`
		Quantity string `json:"quantity"`
	} `json:"balance"`
}

type LoginRequest

type LoginRequest struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

type LoginResponse

type LoginResponse struct {
	Token string `json:"token"`
}

Jump to

Keyboard shortcuts

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