portsclient

package
v0.0.0-...-80b0eab Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package portsclient implements Ports service API client.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GRPC

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

GRPC is Ports service gRPC client.

func NewGRPC

func NewGRPC(serverAddress string) (GRPC, error)

NewGRPC creates new Ports service gRPC client for given server address. GRPC.Close() should be called when client is no longer needed.

func (GRPC) Close

func (g GRPC) Close() error

Close closes the client connection.

func (GRPC) ListPorts

func (g GRPC) ListPorts(ctx context.Context) ([]*portsgrpc.Port, error)

ListPorts lists all ports stored in Ports service.

func (GRPC) StorePort

func (g GRPC) StorePort(ctx context.Context, port *portsgrpc.Port) error

StorePort stores given port in Ports service.

Jump to

Keyboard shortcuts

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