grpc

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2022 License: MIT Imports: 3 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 {
	// contains filtered or unexported fields
}

只是为了区分(转发)

func NewServer

func NewServer(s pb.DelayQueueServer) *Server

func (*Server) Add

func (s *Server) Add(ctx context.Context, req *pb.AddReq) (*pb.AddResp, error)

func (*Server) Get

func (s *Server) Get(ctx context.Context, req *pb.RetrieveReq) (*pb.Task, error)

func (*Server) Remove

func (s *Server) Remove(ctx context.Context, req *pb.RemoveReq) (*empty.Empty, error)

Jump to

Keyboard shortcuts

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