util

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2020 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientStreamCloser

type ClientStreamCloser func() (ResponseMessage, error)

type RequestMessageStreamer

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

func (*RequestMessageStreamer) CloseAndRecv

func (s *RequestMessageStreamer) CloseAndRecv() (ResponseMessage, error)

func (*RequestMessageStreamer) Send

func (s *RequestMessageStreamer) Send(req interface{}) error

type RequestMessageWriter

type RequestMessageWriter func(interface{}) error

type ResponseMessage

type ResponseMessage interface {
	GetMetaHeader() *session.ResponseMetaHeader
	SetMetaHeader(*session.ResponseMetaHeader)
}

ResponseMessage is an interface of NeoFS response message.

type ResponseMessageReader

type ResponseMessageReader func() (ResponseMessage, error)

type ResponseMessageStreamer

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

func (*ResponseMessageStreamer) Recv

type ResponseMessageWriter added in v0.13.0

type ResponseMessageWriter func(ResponseMessage) error

type ServerStream added in v0.13.0

type ServerStream interface {
	Context() context.Context
}

ServerStream is an interface of server-side stream v2.

type ServerStreamHandler

type ServerStreamHandler func(context.Context, interface{}) (ResponseMessageReader, error)

type ServerStreamHandler_ added in v0.13.0

type ServerStreamHandler_ func(interface{}, ResponseMessageWriter) (ResponseMessageWriter, error)

type SignService

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

func NewUnarySignService

func NewUnarySignService(key *ecdsa.PrivateKey) *SignService

func (*SignService) CreateRequestStreamer

func (s *SignService) CreateRequestStreamer(sender RequestMessageWriter, closer ClientStreamCloser) *RequestMessageStreamer

func (*SignService) HandleServerStreamRequest

func (s *SignService) HandleServerStreamRequest(ctx context.Context, req interface{}, handler ServerStreamHandler) (*ResponseMessageStreamer, error)

func (*SignService) HandleServerStreamRequest_ added in v0.13.0

func (s *SignService) HandleServerStreamRequest_(req interface{}, respWriter ResponseMessageWriter) (ResponseMessageWriter, error)

func (*SignService) HandleUnaryRequest

func (s *SignService) HandleUnaryRequest(ctx context.Context, req interface{}, handler UnaryHandler) (ResponseMessage, error)

type UnaryHandler

type UnaryHandler func(context.Context, interface{}) (ResponseMessage, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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