oapi

package
v0.0.0-...-f06bccd Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2025 License: Apache-2.0 Imports: 6 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiServer

type ApiServer struct {
	Backend *backend.SnackBackEnd
}

func NewApiServer

func NewApiServer(backend *backend.SnackBackEnd) *ApiServer

func (*ApiServer) GetSnacks

func (a *ApiServer) GetSnacks(ctx context.Context, request GetSnacksRequestObject) (GetSnacksResponseObject, error)

GetSnacks implements StrictServerInterface.

func (*ApiServer) GetSnacksSnackId

func (a *ApiServer) GetSnacksSnackId(ctx context.Context, request GetSnacksSnackIdRequestObject) (GetSnacksSnackIdResponseObject, error)

GetSnacksSnackId implements StrictServerInterface.

func (*ApiServer) GetTest

func (a *ApiServer) GetTest(ctx context.Context, request GetTestRequestObject) (GetTestResponseObject, error)

GetTest implements StrictServerInterface.

func (*ApiServer) PostPurchaseAcknowledge

func (a *ApiServer) PostPurchaseAcknowledge(ctx context.Context, request PostPurchaseAcknowledgeRequestObject) (PostPurchaseAcknowledgeResponseObject, error)

PostPurchaseAcknowledge implements StrictServerInterface.

func (*ApiServer) PostPurchaseOrder

func (a *ApiServer) PostPurchaseOrder(ctx context.Context, request PostPurchaseOrderRequestObject) (PostPurchaseOrderResponseObject, error)

PostPurchaseOrder implements StrictServerInterface.

func (*ApiServer) PostPurchaseProcessOrderId

func (a *ApiServer) PostPurchaseProcessOrderId(ctx context.Context, request PostPurchaseProcessOrderIdRequestObject) (PostPurchaseProcessOrderIdResponseObject, error)

PostPurchaseProcessOrderId implements StrictServerInterface.

type ContextLabel

type ContextLabel string
const (
	HEADER_KEY_AUTH_USER              = "X-Snackmgr-Authenticated-User"
	OWNER_KEY            ContextLabel = "owner"
)

type HeaderLabel

type HeaderLabel string

type RequestHeaderKey

type RequestHeaderKey string

type SnackMgrClient

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

func NewSnackMgrClient

func NewSnackMgrClient(url string) (*SnackMgrClient, error)

func (*SnackMgrClient) PurchaseAcknowledge

func (c *SnackMgrClient) PurchaseAcknowledge(customerId string, orderId string, transactionNonce string) error

func (*SnackMgrClient) PurchaseOrder

func (c *SnackMgrClient) PurchaseOrder(customerId uuid.UUID, itemId uuid.UUID, count int) (uuid.UUID, error)

Jump to

Keyboard shortcuts

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