grpc

package
v0.0.0-...-955dd82 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2024 License: GPL-3.0 Imports: 8 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 {
	StoreData(parameters map[string]string, results string) (*proto.StoreResponse, error)
	GetData(parameters map[string]string) (*proto.GetDataResponse, error)
	Close() error
}

func NewClient

func NewClient(address string) (Client, error)

NewClient creates a new Client connected to the given address.

type Options

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

func (*Options) Address

func (o *Options) Address() string

func (*Options) Bind

func (o *Options) Bind(fs *flag.FlagSet)

type Server

type Server struct {
	proto.UnimplementedDbServiceServer
	// contains filtered or unexported fields
}

func NewServer

func NewServer(resultstore db.CalculationResultsStore) *Server

func (*Server) GetData

func (*Server) StoreData

func (s *Server) StoreData(ctx context.Context, in *proto.StoreRequest) (*proto.StoreResponse, error)

Jump to

Keyboard shortcuts

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