grpc

package
v0.0.0-...-f8b36bf Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandServiceImpl

type CommandServiceImpl struct {
	gen.UnimplementedCommandServiceServer
	// contains filtered or unexported fields
}

CommandServiceImpl implements gen.CommandServiceServer

func NewCommandServiceImpl

func NewCommandServiceImpl(controller adapter.CommandController) *CommandServiceImpl

NewCommandServiceImpl is a constructor

func (*CommandServiceImpl) Create

func (cs *CommandServiceImpl) Create(ctx context.Context, request *gen.CreateRequest) (*gen.EntityID, error)

Create is a gRPC method for creating TODOs

type Server

type Server interface {
	Run() error
}

Server serves gRPC requests

type ServerImpl

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

ServerImpl implements Server

func NewServerImpl

func NewServerImpl(
	configProvider adapter.ConfigProvider,
	commandService gen.CommandServiceServer,
) *ServerImpl

NewServerImpl is a constructor

func (*ServerImpl) Run

func (s *ServerImpl) Run() error

Run runs the server This is a long lived operation, run in it in a goroutine if you want to do something else too

Directories

Path Synopsis
Package gen is a reverse proxy.
Package gen is a reverse proxy.

Jump to

Keyboard shortcuts

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