service

package
v0.0.0-...-2e499f1 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrBadRequest = errors.New("bad user request")
)

Functions

This section is empty.

Types

type GRPCClient

type GRPCClient struct {
	Conn *grpc.ClientConn
}

func NewGRPCClient

func NewGRPCClient(host, port string) (*GRPCClient, error)

type RestClient

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

func NewRestClient

func NewRestClient(host, port string) (*RestClient, error)

func (*RestClient) Proxy

func (s *RestClient) Proxy() http.HandlerFunc

func (*RestClient) Request

func (s *RestClient) Request(ctx context.Context, method string, path string, requestBody io.Reader) (*message.JSON, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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