rooms

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRoom

func GetRoom(w http.ResponseWriter, r *http.Request)

func GetRooms

func GetRooms(w http.ResponseWriter, r *http.Request)

func PostRoom

func PostRoom(w http.ResponseWriter, r *http.Request)

func UseRoomsHandlers

func UseRoomsHandlers(mux *chi.Mux)

Types

type RoomsRepository

type RoomsRepository interface {
	CreateRoom(name string, image string) (room.RoomId, error)
	EditRoom(id room.RoomId, name string, image string) error
	DeleteRoom(id room.RoomId) error
}

Jump to

Keyboard shortcuts

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