Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OpenConnection ¶
func OpenConnection(hostname string, port int) (*grpc.ClientConn, error)
OpenConnection opens a connection to a stack server. Don't forget to close the connection.
Types ¶
type Server ¶
type Server struct {
pb.StackServiceServer
}
Server is the GRPC server
func (*Server) Pop ¶
func (s *Server) Pop(ctx context.Context, req *pb.PopServiceRequest) (*pb.PopServiceReply, error)
Pop pops a number from the stack
func (*Server) Push ¶
func (s *Server) Push(ctx context.Context, req *pb.PushServiceRequest) (*pb.PushServiceReply, error)
Push pushes a number to the stack
Click to show internal directories.
Click to hide internal directories.