options

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientOptions

type ClientOptions struct {
	CoderType    *coder.CoderType
	CompressType *compressor.CompressType
	serializer.Serializer

	Timeout       *time.Duration
	CheckInterval *time.Duration
	HeartInterval *time.Duration
	ChunksSize    *int
	IsStopHeart   *bool
	Secret        *string
}

func Client

func Client() *ClientOptions

func (*ClientOptions) Merge

func (this *ClientOptions) Merge(opts ...*ClientOptions) *ClientOptions

func (*ClientOptions) SetCheckInterval

func (this *ClientOptions) SetCheckInterval(t time.Duration) *ClientOptions

func (*ClientOptions) SetChunksMaxSize

func (this *ClientOptions) SetChunksMaxSize(t int) *ClientOptions

func (*ClientOptions) SetCoderType

func (this *ClientOptions) SetCoderType(t coder.CoderType) *ClientOptions

func (*ClientOptions) SetCompressorType

func (this *ClientOptions) SetCompressorType(t compressor.CompressType) *ClientOptions

func (*ClientOptions) SetHeartInterval

func (this *ClientOptions) SetHeartInterval(t time.Duration) *ClientOptions

func (*ClientOptions) SetIsStopHeart

func (this *ClientOptions) SetIsStopHeart(is bool) *ClientOptions

func (*ClientOptions) SetSecret

func (this *ClientOptions) SetSecret(s string) *ClientOptions

func (*ClientOptions) SetSerializer

func (this *ClientOptions) SetSerializer(s serializer.Serializer) *ClientOptions

func (*ClientOptions) SetTimeout

func (this *ClientOptions) SetTimeout(t time.Duration) *ClientOptions

type CodecOptions

type CodecOptions struct {
}

func Codec

func Codec() *CodecOptions

func (*CodecOptions) Merge

func (this *CodecOptions) Merge(opts ...*CodecOptions) *CodecOptions

type ServerOptions

type ServerOptions struct {
	serializer.Serializer
	Secret *string
}

func Server

func Server() *ServerOptions

func (*ServerOptions) Merge

func (this *ServerOptions) Merge(opts ...*ServerOptions) *ServerOptions

func (*ServerOptions) SetSecret

func (this *ServerOptions) SetSecret(s string) *ServerOptions

func (*ServerOptions) SetSerializer

func (this *ServerOptions) SetSerializer(s serializer.Serializer) *ServerOptions

Jump to

Keyboard shortcuts

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