service

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: May 17, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EndpointAddHandlerFn

type EndpointAddHandlerFn func(service micro.Service, methodName, subject string)

type ErrorEncoderFn

type ErrorEncoderFn func(err error) (code string, description string)

type Hooks

type Hooks struct {
	SubscriptionErrorHandler micro.ErrHandler
	DoneHandler              micro.DoneHandler
	StartHandler             micro.DoneHandler
	ResponseErrorHandler     ResponseErrorHandlerFn
	EndpointAddHandler       EndpointAddHandlerFn
}

type Options

type Options struct {
	NatsConnection      *nats.Conn
	Encoder             encoder.Encoder
	IsValidationEnabled bool
	ErrorEncoder        ErrorEncoderFn
	SubjectPrefix       string
	GetSubject          subject.GetSubjectFn
	Telemetry           telemetry.Options
	Hooks               Hooks
}

type ResponseErrorHandlerFn

type ResponseErrorHandlerFn func(err error)

Jump to

Keyboard shortcuts

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