server

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2022 License: Apache-2.0 Imports: 9 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 (*Server) DeleteOrder added in v0.7.2

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

func (*Server) Demo added in v0.7.2

func (s *Server) Demo(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.EmptyRequest) (*demo.EmptyResponse, error)

func (*Server) GetOrder added in v0.5.0

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