service

package
v0.0.0-...-386a9ac Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2024 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Health

func Health(c echo.Context) error

Types

type Auth

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

func NewAuth

func NewAuth(key string) *Auth

func (*Auth) Middleware

func (auth *Auth) Middleware() echo.MiddlewareFunc

func (*Auth) Validate

func (auth *Auth) Validate(key string, c echo.Context) (bool, error)

type Message

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

type Server

type Server struct {
	*Service
	*echo.Echo
}

func (*Server) Start

func (s *Server) Start(addr string) error

type Service

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

func New

func New(cap uint, subscriber string) *Service

func (*Service) ForwardMessages

func (s *Service) ForwardMessages()

func (*Service) HandleConsumerResponse

func (s *Service) HandleConsumerResponse(
	resp *http.Response,
	err error,
	sleeper *retry.Sleeper,
)

func (*Service) SendMessage

func (s *Service) SendMessage() (*http.Response, error)

func (*Service) Server

func (s *Service) Server(auth *Auth) *Server

func (*Service) StoreMessage

func (s *Service) StoreMessage(c echo.Context) error

Jump to

Keyboard shortcuts

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