Help us shape the future of Go! Take the 2026 Go Developer Survey

commandregistry

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandFactory

type CommandFactory func() rpc.RpcRawParams

type CommandRegistry

type CommandRegistry interface {
	Register(ct types.CommandType, cf CommandFactory)
	GetCommandFactory(ct types.CommandType) (CommandFactory, error)
}

func GetCommandRegistry

func GetCommandRegistry() CommandRegistry

type CommandRegistryImpl

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

func (*CommandRegistryImpl) GetCommandFactory

func (c *CommandRegistryImpl) GetCommandFactory(ct types.CommandType) (CommandFactory, error)

func (CommandRegistryImpl) Register

func (c CommandRegistryImpl) Register(ct types.CommandType, cFactory CommandFactory)

Jump to

Keyboard shortcuts

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