grpc

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GRPC

type GRPC struct {
	Ctx        context.Context
	Conn       *entity.Session
	LogChannel chan entity.Log
}

func NewGRPC

func NewGRPC(logChannel chan entity.Log) GRPC

NewGRPC is used to create a new grpc object

func (*GRPC) CheckGRPC

func (g *GRPC) CheckGRPC(serverURL string) error

CheckGRPC will check if the server supports server reflection and list all available services and methods

func (*GRPC) GenerateRPCPayloadSample

func (g *GRPC) GenerateRPCPayloadSample() (string, error)

GenerateRPCPayloadSample is used to generate sample request payload that will be filled to txtPayload text field

func (*GRPC) InvokeRPC

func (g *GRPC) InvokeRPC() error

InvokeRPC will invoke the configured payload and try to hit the server with it

Jump to

Keyboard shortcuts

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