util

package
v0.12.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 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 ServerStreamHandler

type ServerStreamHandler func(context.Context, interface{}) (ResponseMessageReader, 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) 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