web

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2024 License: MIT Imports: 9 Imported by: 1

Documentation

Overview

THIS IS AN AUTOGENERATED FILE... See gen_web_handlers.sh for details.

THIS IS AN AUTOGENERATED FILE... See gen_web_handlers.sh for details.

THIS IS AN AUTOGENERATED FILE... See gen_web_handlers.sh for details.

THIS IS AN AUTOGENERATED FILE... See gen_web_handlers.sh for details.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register_web_handler_app

func Register_web_handler_app()

func Register_web_handler_server

func Register_web_handler_server()

func Register_web_handler_store

func Register_web_handler_store()

func Register_web_handler_utils

func Register_web_handler_utils()

Types

type Client

type Client interface {
	Id() string
	Write(Message)
	Close()
	SetMessageHandler(MessageHandler)
}

func NewClient

func NewClient(connection *websocket.Conn, onClose func(string)) Client

type ClientImpl

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

func (*ClientImpl) Close

func (c *ClientImpl) Close()

func (*ClientImpl) Id

func (c *ClientImpl) Id() string

func (*ClientImpl) SetMessageHandler

func (c *ClientImpl) SetMessageHandler(handler MessageHandler)

func (*ClientImpl) Write

func (c *ClientImpl) Write(message Message)

type Message

type Message = *protobufs.WebMessage

func NewMessage

func NewMessage() Message

type MessageHandler

type MessageHandler func(Client, Message)

Jump to

Keyboard shortcuts

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