options

package
v4.0.20 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 6 Imported by: 18

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get added in v4.0.6

func Get(src interface{}, path string) (interface{}, error)

Get returns value from struct by its path

func Set added in v4.0.6

func Set(src interface{}, dst interface{}, path string) error

Set assign value to struct by its path

Types

type Hook

type Hook interface{}

Hook func interface

type Hooks

type Hooks []Hook

Hooks func slice

func (*Hooks) Append

func (hs *Hooks) Append(h ...Hook)

Append is used to add hooks

func (*Hooks) EachNext

func (hs *Hooks) EachNext(fn func(Hook))

EachNext is used to itearate over hooks forward

func (*Hooks) EachPrev

func (hs *Hooks) EachPrev(fn func(Hook))

EachPrev is used to iterate over hooks backward

func (*Hooks) Replace

func (hs *Hooks) Replace(h ...Hook)

Replace is used to set hooks

type Option added in v4.0.6

type Option func(interface{}) error

Option func signature

func Address added in v4.0.6

func Address(v ...string) Option

Address set Address value to single string or slice of strings

func Broker added in v4.0.6

func Broker(v interface{}) Option

Broker set Broker value

func Client added in v4.0.6

func Client(v interface{}) Option

Client set Client value

func Codec added in v4.0.6

func Codec(v interface{}) Option

Codec set Codec value

func Codecs added in v4.0.6

func Codecs(ct string, v interface{}) Option

Codecs to be used to encode/decode requests for a given content type

func ContentType added in v4.0.6

func ContentType(ct string) Option

ContentType pass ContentType for message data

func Context added in v4.0.6

func Context(v context.Context) Option

Context set Context value

func ContextOption added in v4.0.6

func ContextOption(k, v interface{}) Option

func Labels added in v4.0.6

func Labels(ls ...interface{}) Option

Labels sets the labels

func Logger added in v4.0.6

func Logger(v interface{}) Option

Logger set Logger value

func Metadata added in v4.0.6

func Metadata(md ...any) Option

Metadata pass additional metadata

func Meter added in v4.0.6

func Meter(v interface{}) Option

Meter set Meter value

func Name added in v4.0.6

func Name(v ...string) Option

Name set Name value

func Namespace added in v4.0.6

func Namespace(ns string) Option

Namespace to use

func Register added in v4.0.6

func Register(v interface{}) Option

Register set Register value

func Router added in v4.0.6

func Router(v interface{}) Option

Router set Router value

func Store added in v4.0.6

func Store(v interface{}) Option

Store set Store value

func TLSConfig added in v4.0.6

func TLSConfig(v *tls.Config) Option

TLSConfig set TLSConfig value

func Timeout added in v4.0.6

func Timeout(td time.Duration) Option

Timeout pass timeout time.Duration

func Tracer added in v4.0.6

func Tracer(v interface{}) Option

Tracer set Tracer value

Jump to

Keyboard shortcuts

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