wrapper

package
v0.47.1 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2025 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RequestWrapper

type RequestWrapper struct {
	message.Message
	M grpc.Message
}

RequestWrapper wraps a gRPC message to implement the message.Message interface: this adapts service gRPC messages to work with the frostfs-sdk-go RPC client.

func (*RequestWrapper) ToGRPCMessage

func (w *RequestWrapper) ToGRPCMessage() grpc.Message

ToGRPCMessage returns the wrapped gRPC message.

type ResponseWrapper

type ResponseWrapper[T grpc.Message] struct {
	Message *T
}

ResponseWrapper is a generic wrapper for gRPC response messages.

func NewResponseWrapper

func NewResponseWrapper[T grpc.Message]() *ResponseWrapper[T]

NewResponseWrapper creates a new response wrapper for the given type.

func (*ResponseWrapper[T]) FromGRPCMessage

func (w *ResponseWrapper[T]) FromGRPCMessage(m grpc.Message) error

FromGRPCMessage sets the wrapped message from a gRPC message.

func (*ResponseWrapper[T]) ToGRPCMessage

func (w *ResponseWrapper[T]) ToGRPCMessage() grpc.Message

ToGRPCMessage returns the wrapped gRPC message.

Jump to

Keyboard shortcuts

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