service

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandService

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

func New

func New(peer peer.Node, name string, path string) (*CommandService, error)

func (*CommandService) Define

func (cs *CommandService) Define(command string, handler router.CommandHandler) error

func (*CommandService) DefineStream

func (cs *CommandService) DefineStream(command string, std router.CommandHandler, stream router.StreamHandler) error

func (*CommandService) Router

func (cs *CommandService) Router() *(router.Router)

func (*CommandService) Stop

func (cs *CommandService) Stop()

Jump to

Keyboard shortcuts

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