paymentrequest

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2023 License: MIT Imports: 41 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleGrpcErrorInWebContext

func HandleGrpcErrorInWebContext(w http.ResponseWriter, err error) (int, error)

Types

type Assets

type Assets struct {
	RequestCardBackgroundLayer image.Image
	RequestCardAmountTextFont  *truetype.Font
}

type GenericApiResponseBody

type GenericApiResponseBody map[string]any

func NewGenericApiFailureResponseBody

func NewGenericApiFailureResponseBody(err error) GenericApiResponseBody

func NewGenericApiSuccessResponseBody

func NewGenericApiSuccessResponseBody() GenericApiResponseBody

func (*GenericApiResponseBody) ToString

func (b *GenericApiResponseBody) ToString() string

type Server

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

func NewPaymentRequestServer

func NewPaymentRequestServer(cc *grpc.ClientConn, assets *Assets) *Server

func (*Server) GetHandlers

func (s *Server) GetHandlers() map[string]http.HandlerFunc

Jump to

Keyboard shortcuts

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