grpcmd

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Call

func Call(method, data string) error

func Connect

func Connect(address string) error

func DescribeMethod

func DescribeMethod(method string) (string, error)

func Free

func Free()

func Methods

func Methods() ([]string, error)

func NonambiguousMethods added in v0.1.0

func NonambiguousMethods() ([]string, error)

func Services

func Services() ([]string, error)

func ServicesMethodsOutput

func ServicesMethodsOutput() (string, error)

Types

type GrpcXEventHandler

type GrpcXEventHandler struct {
	grpcurl.DefaultEventHandler
}

func (*GrpcXEventHandler) OnReceiveHeaders

func (h *GrpcXEventHandler) OnReceiveHeaders(md metadata.MD)

func (*GrpcXEventHandler) OnReceiveResponse

func (h *GrpcXEventHandler) OnReceiveResponse(resp proto.Message)

func (*GrpcXEventHandler) OnReceiveTrailers

func (h *GrpcXEventHandler) OnReceiveTrailers(stat *status.Status, md metadata.MD)

func (*GrpcXEventHandler) OnResolveMethod

func (h *GrpcXEventHandler) OnResolveMethod(md *desc.MethodDescriptor)

func (*GrpcXEventHandler) OnSendHeaders

func (h *GrpcXEventHandler) OnSendHeaders(md metadata.MD)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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