rpcio

package
v0.0.0-...-70db0ab Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_internal_rpcio_log_proto protoreflect.FileDescriptor

Functions

func NewServerStreamWriter

func NewServerStreamWriter[T any](serverStream ServerStream[T], convert func([]byte) *T) io.Writer

Types

type Log

type Log struct {
	Data   []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	Stream int32  `protobuf:"varint,2,opt,name=stream,proto3" json:"stream,omitempty"`
	// contains filtered or unexported fields
}

func (*Log) Descriptor deprecated

func (*Log) Descriptor() ([]byte, []int)

Deprecated: Use Log.ProtoReflect.Descriptor instead.

func (*Log) GetData

func (x *Log) GetData() []byte

func (*Log) GetStream

func (x *Log) GetStream() int32

func (*Log) ProtoMessage

func (*Log) ProtoMessage()

func (*Log) ProtoReflect

func (x *Log) ProtoReflect() protoreflect.Message

func (*Log) Reset

func (x *Log) Reset()

func (*Log) String

func (x *Log) String() string

type ServerStream

type ServerStream[T any] interface {
	Send(*T) error
}

type ServerStreamWriter

type ServerStreamWriter[T any] struct {
	ServerStream ServerStream[T]
	Convert      func([]byte) *T
}

func (*ServerStreamWriter[T]) Write

func (w *ServerStreamWriter[T]) Write(p []byte) (int, error)

type Stream

type Stream int32
const (
	StreamStdout Stream = 0
	StreamStderr Stream = 1
)

Jump to

Keyboard shortcuts

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