client

package
v0.0.0-...-268bfc8 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Aggregate(ctx context.Context, request *types.AggregateRequest) error
	GetInvoice(ctx context.Context, id int) (*types.Invoice, error)
}

type GRPCClient

type GRPCClient struct {
	Endpoint string
	// contains filtered or unexported fields
}

func NewGRPCClient

func NewGRPCClient(endpoint string) (*GRPCClient, error)

func (*GRPCClient) Aggregate

func (c *GRPCClient) Aggregate(ctx context.Context, request *types.AggregateRequest) error

func (*GRPCClient) GetInvoice

func (c *GRPCClient) GetInvoice(ctx context.Context, id int) (*types.Invoice, error)

type HTTPClient

type HTTPClient struct {
	Endpoint string
}

func NewHTTPClient

func NewHTTPClient(endpoint string) *HTTPClient

func (*HTTPClient) Aggregate

func (c *HTTPClient) Aggregate(ctx context.Context, request *types.AggregateRequest) error

func (*HTTPClient) GetInvoice

func (c *HTTPClient) GetInvoice(ctx context.Context, id int) (*types.Invoice, error)

Jump to

Keyboard shortcuts

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