server

package
v0.0.0-...-be5a0e9 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CallHandler

type CallHandler func(*amqp.Delivery) (interface{}, error)

CallHandler -.

type Option

type Option func(*Server)

Option -.

func ConnAttempts

func ConnAttempts(attempts int) Option

ConnAttempts -.

func ConnWaitTime

func ConnWaitTime(timeout time.Duration) Option

ConnWaitTime -.

func Timeout

func Timeout(timeout time.Duration) Option

Timeout -.

type Server

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

Server -.

func New

func New(url, serverExchange string, router map[string]CallHandler, l logger.Interface, opts ...Option) (*Server, error)

New -.

func (*Server) Notify

func (s *Server) Notify() <-chan error

Notify -.

func (*Server) Shutdown

func (s *Server) Shutdown() error

Shutdown -.

Jump to

Keyboard shortcuts

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