grpc

package
v0.0.0-...-649a294 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: BSD-2-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Client

func Client(config stacker.Config, action string)

Create a GRPC client and construct messages to be sent, then take the output and print it out if that is what is needed

func Server

func Server(config stacker.Config)

Create a server

Types

type ServerObj

type ServerObj struct {
	UnimplementedStackerServer
	// contains filtered or unexported fields
}

func (*ServerObj) List

func (self *ServerObj) List(ctx context.Context, in *emptypb.Empty) (*StackerReply, error)

List the stack

func (*ServerObj) Peek

func (self *ServerObj) Peek(ctx context.Context, in *emptypb.Empty) (*StackerReply, error)

Peek the first item on the Stack

func (*ServerObj) Pop

func (self *ServerObj) Pop(ctx context.Context, in *emptypb.Empty) (*StackerReply, error)

Pop the first item off the Stack

func (*ServerObj) Push

func (self *ServerObj) Push(ctx context.Context, in *StackerRequest) (*emptypb.Empty, error)

Push a new item onto the stack

func (*ServerObj) Rotate

func (self *ServerObj) Rotate(ctx context.Context, in *emptypb.Empty) (*StackerReply, error)

Rotate the Stack

Jump to

Keyboard shortcuts

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