ping

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(pusher Pusher, connectionStore ConnectionStore) ws.RouteHandler

Types

type ConnectionStore

type ConnectionStore interface {
	GetConnection(ctx context.Context, driverID int64, connectionID string) (*store.WebSocketConnection, error)
}

type Pusher

type Pusher interface {
	Push(ctx context.Context, connectionID string, actionType string, payload any) (bool, error)
	Disconnect(ctx context.Context, connectionID string)
}

type Response

type Response struct {
	Success bool   `json:"success"`
	Message string `json:"message"`
}

Jump to

Keyboard shortcuts

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