handler

package
v0.0.0-...-f38c8df Latest Latest
Warning

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

Go to latest
Published: May 23, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package handler provides a lobby_v1.LobbyService handler.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

Handler is the handler for the lobby_v1.LobbyService service.

func New

func New(svcCtx *cli.ServiceContext, logger log.Logger, client client.Type, hgClient *httpgateway.Client, server server.Server) *Handler

New creates a new Handler.

func Provide

func Provide(
	svcCtx *cli.ServiceContext,
	logger log.Logger,
	client client.Type,
	hgClient *httpgateway.Client,
	server server.Server,
) (*Handler, error)

Provide provides a handler to wire.

func (*Handler) ListGames

ListGames is the actual implementation of the ListGames method.

func (*Handler) Start

func (h *Handler) Start(ctx context.Context) error

Start assigns the handler to the server.

func (*Handler) Stop

func (h *Handler) Stop(_ context.Context) error

Stop does nothing.

func (*Handler) String

func (h *Handler) String() string

String returns the name of the component.

func (*Handler) Type

func (h *Handler) Type() string

Type returns the type of the component.

Jump to

Keyboard shortcuts

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