server

package
v0.0.0-...-3e9bda6 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2022 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 Server

type Server interface {
	// Serve is called for serving requests.
	Serve() error
	// GracefulStop is called for stopping the server.
	GracefulStop()
	// RandomPoetries returns a random list of poetries.
	RandomPoetries(ctx context.Context, in *poetry.RandomPoetriesRequest) (*poetry.PoetryList, error)
}

Server defines the available operations for gRPC server.

func NewServer

func NewServer(port int) (Server, error)

NewServer creates a new gRPC server.

Jump to

Keyboard shortcuts

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