grpc

package
v4.18.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2021 License: MIT Imports: 18 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 struct {
	pb.UnimplementedImageServiceServer
	pb.UnimplementedNotifServiceServer
	// contains filtered or unexported fields
}

Client represents an active grpc object

func New

func New(authority string, db *db.Client, notif *notif.Client) (*Client, error)

New creates a new grpc instance

func (*Client) ImageInspect

func (c *Client) ImageInspect(ctx context.Context, request *pb.ImageInspectRequest) (*pb.ImageInspectResponse, error)

func (*Client) ImageList

func (c *Client) ImageList(ctx context.Context, request *pb.ImageListRequest) (*pb.ImageListResponse, error)

func (*Client) ImageRemove

func (c *Client) ImageRemove(ctx context.Context, request *pb.ImageRemoveRequest) (*pb.ImageRemoveResponse, error)

func (*Client) NotifTest

func (c *Client) NotifTest(ctx context.Context, request *pb.NotifTestRequest) (*pb.NotifTestResponse, error)

func (*Client) Start

func (c *Client) Start() error

Start runs the grpc server

func (*Client) Stop

func (c *Client) Stop()

Stop stops the grpc server

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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