server

package
v0.0.0-...-20dc1fd Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProductServer

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

func NewProductServer

func NewProductServer(service ProductService) *ProductServer

func (*ProductServer) Fetch

func (*ProductServer) List

type ProductService

type ProductService interface {
	List(ctx context.Context, req *products.ListRequest) (*products.ListResponse, error)
	Fetch(ctx context.Context, req *products.FetchRequest) (*products.FetchResponse, error)
}

type Server

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

func New

func New(productServer products.ProductsServiceServer) *Server

func (*Server) ListenAndServe

func (s *Server) ListenAndServe(port int) error

func (*Server) Stop

func (s *Server) Stop() func()

Jump to

Keyboard shortcuts

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