grpc

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetStubHash

func GetStubHash(jsonBytes []byte) (string, error)

func RequestAndResponseToFile

func RequestAndResponseToFile(requestMessage proto.Message, responseMessage proto.Message, errorCode *int, errorMessage *string, requestDirectory string) error

func WriteToFileAndSync

func WriteToFileAndSync(filePath string, jsonBytes []byte, syncFileMode os.FileMode) error

Types

type Middleware

type Middleware struct {
	// contains filtered or unexported fields
}

func NewMiddleware

func NewMiddleware(methodsToProtos map[string]func() proto.Message, dataDir string) *Middleware

func (*Middleware) Stubbed

func (m *Middleware) Stubbed() grpc.UnaryServerInterceptor

Jump to

Keyboard shortcuts

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