service

package
v0.0.0-...-bfb259f Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	RoomRepo repo.Repository
}

type ListRoomsInput

type ListRoomsInput struct {
	Capacity int64
	Limit    int64
	Offset   int64
}

type ListRoomsOutput

type ListRoomsOutput struct {
	Rooms []*types.Room
	Total int64
}

type Service

type Service interface {
	ListRooms(ctx context.Context, input *ListRoomsInput) (*ListRoomsOutput, error)
}

func New

func New(config *Config) Service

func NewMeter

func NewMeter(svc Service, mt metric.Meter) (Service, error)

func NewTracer

func NewTracer(svc Service, tr trace.Tracer) Service

Jump to

Keyboard shortcuts

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