grpctr

package
v0.0.0-...-c43210c Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2023 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrConfigInvalid = errors.New("config validation failed")
)

Functions

func NewGrpcTransport

func NewGrpcTransport(conf Config) *gRPCTransport

Types

type Config

type Config struct {
	StorageService StorageServicer
	Port           string
}

type StorageServicer

type StorageServicer interface {
	Set(item domains.Item) error
	Get(id string) (domains.Item, error)
	Delete(id string) error
}

Directories

Path Synopsis
grpcgen
v1

Jump to

Keyboard shortcuts

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