server

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2021 License: Apache-2.0 Imports: 7 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 struct {
	// 使用unsafe可以强制让编译器检查是否实现了相关方法
	demo.UnsafeDemoServiceServer
	order.UnsafeOrderServiceServer
}

func (*Server) CreateOrder added in v0.5.0

func (s *Server) CreateOrder(ctx context.Context, req *order.CreateOrderRequest) (*order.Order, error)

func (*Server) DeleteBook added in v0.5.0

func (s *Server) DeleteBook(ctx context.Context, req *order.DeleteBookRequest) (*emptypb.Empty, error)

func (*Server) Echo

func (s *Server) Echo(ctx context.Context, req *demo.DemoRequest) (*demo.DemoResponse, error)

func (*Server) Empty added in v0.2.0

func (s *Server) Empty(ctx context.Context, req *demo.EmptyMessage) (*demo.EmptyMessage, error)

func (*Server) GetOrder added in v0.5.0

func (s *Server) GetOrder(ctx context.Context, req *order.GetOrderRequest) (*order.Order, error)

func (*Server) ListOrders added in v0.5.0

func (*Server) UpdateOrder added in v0.5.0

func (s *Server) UpdateOrder(ctx context.Context, req *order.UpdateOrderRequest) (*emptypb.Empty, error)

Jump to

Keyboard shortcuts

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