grpc

package
v0.0.0-...-ad801e6 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2019 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(
	address string,
	svc servicepb.EventdbServer,
	opts *Options,
) xserver.Server

NewServer creates a new GRPC server.

func NewService

NewService creates a new service.

Types

type Options

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

Options provide a set of server options.

func NewOptions

func NewOptions() *Options

NewOptions creates a new set of options.

func (*Options) InstrumentOptions

func (o *Options) InstrumentOptions() instrument.Options

InstrumentOptions returns the instrument options.

func (*Options) KeepAlivePeriod

func (o *Options) KeepAlivePeriod() time.Duration

KeepAlivePeriod returns the keep alive period.

func (*Options) MaxRecvMsgSize

func (o *Options) MaxRecvMsgSize() int

MaxRecvMsgSize returns the max message size in bytes the server can receive.

func (*Options) ReadBufferSize

func (o *Options) ReadBufferSize() int

ReadBufferSize returns the read buffer size. This determines how much data can be read at most for one read syscall.

func (*Options) SetInstrumentOptions

func (o *Options) SetInstrumentOptions(v instrument.Options) *Options

SetInstrumentOptions sets the instrument options.

func (*Options) SetKeepAlivePeriod

func (o *Options) SetKeepAlivePeriod(v time.Duration) *Options

SetKeepAlivePeriod sets the keep alive period.

func (*Options) SetMaxRecvMsgSize

func (o *Options) SetMaxRecvMsgSize(v int) *Options

SetMaxRecvMsgSize sets the max message size in bytes the server can receive.

func (*Options) SetReadBufferSize

func (o *Options) SetReadBufferSize(v int) *Options

SetReadBufferSize sets the read buffer size. This determines how much data can be read at most for one read syscall.

type ServiceOptions

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

ServiceOptions provide a set of service options.

func NewServiceOptions

func NewServiceOptions() *ServiceOptions

NewServiceOptions create a new set of service options.

func (*ServiceOptions) ClockOptions

func (o *ServiceOptions) ClockOptions() clock.Options

ClockOptions returns the clock options.

func (*ServiceOptions) DocumentArrayPool

func (o *ServiceOptions) DocumentArrayPool() *document.BucketizedDocumentArrayPool

DocumentArrayPool returns the document array pool.

func (*ServiceOptions) FieldArrayPool

func (o *ServiceOptions) FieldArrayPool() *field.BucketizedFieldArrayPool

FieldArrayPool returns the field array pool.

func (*ServiceOptions) InstrumentOptions

func (o *ServiceOptions) InstrumentOptions() instrument.Options

InstrumentOptions returns the instrument options.

func (*ServiceOptions) ReadTimeout

func (o *ServiceOptions) ReadTimeout() time.Duration

ReadTimeout returns the read timeout.

func (*ServiceOptions) SetClockOptions

func (o *ServiceOptions) SetClockOptions(v clock.Options) *ServiceOptions

SetClockOptions sets the clock options.

func (*ServiceOptions) SetDocumentArrayPool

SetDocumentArrayPool sets the document array pool.

func (*ServiceOptions) SetFieldArrayPool

func (o *ServiceOptions) SetFieldArrayPool(v *field.BucketizedFieldArrayPool) *ServiceOptions

SetFieldArrayPool sets the field array pool.

func (*ServiceOptions) SetInstrumentOptions

func (o *ServiceOptions) SetInstrumentOptions(v instrument.Options) *ServiceOptions

SetInstrumentOptions sets the instrument options.

func (*ServiceOptions) SetReadTimeout

func (o *ServiceOptions) SetReadTimeout(v time.Duration) *ServiceOptions

SetReadTimeout sets the read timeout.

func (*ServiceOptions) SetWriteTimeout

func (o *ServiceOptions) SetWriteTimeout(v time.Duration) *ServiceOptions

SetWriteTimeout sets the write timeout.

func (*ServiceOptions) WriteTimeout

func (o *ServiceOptions) WriteTimeout() time.Duration

WriteTimeout returns the write timeout.

Jump to

Keyboard shortcuts

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