booking

package
v0.0.0-...-c17a42b Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2021 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 Repository

type Repository interface {
	CreateBooking(booking *entities.Booking) (*entities.Booking, error)
	PublishMessage(booking *entities.Booking) error
}

func NewRepo

func NewRepo(pool *redis.Pool, mb sarama.SyncProducer) Repository

type Service

type Service interface {
	InsertBooking(booking *entities.Booking) (*entities.Booking, error)
}

func NewService

func NewService(r Repository) Service

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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