routes

package
v0.0.0-...-059733a Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: GPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ContextHouseholdsKey = "households"
)

Variables

This section is empty.

Functions

func Initialize

func Initialize(e *echo.Echo, authenticator *authenticator.Authenticator, inventoryClient *inventoryclient.InventoryClient)

Types

type HouseholdCreator

type HouseholdCreator interface {
	CreateHousehold(ctx context.Context, household client.CreateHouseholdRequest) error
}

type HouseholdDeleter

type HouseholdDeleter interface {
	DeleteHousehold(ctx context.Context, userID, householdID string) error
}

type HouseholdGetter

type HouseholdGetter interface {
	GetUserHousehold(ctx context.Context, userID, householdID string) (shared.UserHousehold, error)
}

type HouseholdUpdater

type HouseholdUpdater interface {
	HouseholdGetter
	UpdateHousehold(ctx context.Context, household client.UpdateHouseholdRequest) error
}

type HouseholdsGetter

type HouseholdsGetter interface {
	GetUserHouseholds(ctx context.Context, userID string) ([]shared.UserHousehold, error)
}

type RoomCreator

type RoomCreator interface {
	AddRoom(ctx context.Context, room client.AddRoomRequest) error
}

type RoomDeleter

type RoomDeleter interface {
	DeleteRoom(ctx context.Context, userId, householdId, roomId string) error
}

type RoomGetter

type RoomGetter interface {
	GetUserHouseholdRoom(ctx context.Context, userID, householdID, roomID string) (shared.UserHouseholdRoom, error)
}

type RoomUpdater

type RoomUpdater interface {
	RoomGetter
	UpdateRoom(ctx context.Context, room client.UpdateRoomRequest) error
}

type UserHouseholdGetter

type UserHouseholdGetter interface {
	GetUserHouseholds(ctx context.Context, userID string) ([]shared.UserHousehold, error)
}

Jump to

Keyboard shortcuts

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