handler

package
v0.0.0-...-c9dffe9 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package handler implements methods for

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitBillingServer

func InitBillingServer()

Types

type Handler

type Handler struct{}

func NewHandler

func NewHandler() Handler

func (Handler) DeleteAccountUserid

func (h Handler) DeleteAccountUserid(ctx echo.Context, userid string) error

DeleteAccountUserid deletes specific user account.

func (Handler) DeleteComputeunitUserid

func (h Handler) DeleteComputeunitUserid(ctx echo.Context, userid string, params apigen.DeleteComputeunitUseridParams) error

func (Handler) GetAccount

func (h Handler) GetAccount(ctx echo.Context) error

GetAccount returns AccountInfo list json to clients.

func (Handler) GetAccountUseridBalance

func (h Handler) GetAccountUseridBalance(ctx echo.Context, userid string) error

GetAccountUseridBalance returns specific user's balance.

func (Handler) GetComputeunitGroupGroupName

func (h Handler) GetComputeunitGroupGroupName(ctx echo.Context, groupName string) error

func (Handler) GetComputeunitPrice

func (h Handler) GetComputeunitPrice(ctx echo.Context, params apigen.GetComputeunitPriceParams) error

func (Handler) GetComputeunitUserid

func (h Handler) GetComputeunitUserid(ctx echo.Context, userid string) error

GetComputeunitUserid returns specific user's compute unit.

func (Handler) GetComputeunitUseridComputeunitIdComputeunitId

func (h Handler) GetComputeunitUseridComputeunitIdComputeunitId(ctx echo.Context, userid string, computeunitID string) error

func (Handler) PostAccountUserid

func (h Handler) PostAccountUserid(ctx echo.Context, userid string, params apigen.PostAccountUseridParams) error

PostAccountUserid create new user's account.

func (Handler) PostAccountUseridBalance

func (h Handler) PostAccountUseridBalance(ctx echo.Context, userid string, params apigen.PostAccountUseridBalanceParams) error

PostAccountUseridBalance modifies specific user's balance.

func (Handler) PostComputeunitUserid

func (h Handler) PostComputeunitUserid(ctx echo.Context, userid string, params apigen.PostComputeunitUseridParams) error

func (Handler) PutAccountUserid

func (h Handler) PutAccountUserid(ctx echo.Context, userid string) error

PutAccountUserid updates specific user's account.

Jump to

Keyboard shortcuts

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