restapi

package
v0.0.0-...-f45f7e8 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const APIKey = "api-key"

Variables

This section is empty.

Functions

This section is empty.

Types

type Invoice

type Invoice struct {
	ID          string    `json:"id,omitempty"`
	ClientID    string    `json:"client_id,omitempty"`
	UsdAmount   float64   `json:"usd_amount,omitempty"`
	TokenAmount float64   `json:"token_amount,omitempty"`
	Chain       string    `json:"chain,omitempty"`
	Token       string    `json:"token,omitempty"`
	Status      string    `json:"status,omitempty"`
	Address     string    `json:"address,omitempty"`
	CreatedAt   time.Time `json:"created_at"`
}

func InvoiceModelFromResp

func InvoiceModelFromResp(invoice *invoices_service.Invoice) *Invoice

type Service

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

func New

func New(
	router *chi.Mux,
	clientsClient clients_service.ClientsServiceClient,
	invoicesService *invoicesservice.Service,
) *Service

Jump to

Keyboard shortcuts

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