handlers

package
v0.0.0-...-a535717 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2022 License: ISC Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Room = "/room"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrResp

type ErrResp struct {
	Err string `json:"error"`
}

type Server

type Server struct {
	Router      *mux.Router
	Tracer      trace.Tracer
	Config      config.Config
	RoomManager room.RoomManager
}

func NewServer

func NewServer(conf config.Config, tracer trace.Tracer, logger *otelzap.Logger, natsURL string) (Server, error)

func (*Server) CreateRoomHandler

func (s *Server) CreateRoomHandler(rw http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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