Documentation ¶
Index ¶
- Variables
- func Exists(name string) bool
- func GetList() func(string) []string
- func GetListenerOptions(protocol string) map[string]string
- func GetListenerOptionsCompleter(protocol string) func(string) []string
- func GetListenerTypes() []string
- func GetListenerTypesCompleter() func(string) []string
- func RemoveByID(id uuid.UUID) error
- type Listener
Constants ¶
This section is empty.
Variables ¶
var Listeners = make(map[uuid.UUID]*Listener)
Listeners contains all of the instantiated Listener objects
Functions ¶
func GetList ¶
GetList returns a list of Listeners that exist and is used for command line tab completion
func GetListenerOptions ¶
GetListenerOptions gets a map of all configurable module options
func GetListenerOptionsCompleter ¶
GetListenerOptionsCompleter gets an array of listener options to be used for tab completion for CLI tab completion
func GetListenerTypes ¶
func GetListenerTypes() []string
GetListenerTypes returns a list of listener types that Merlin supports
func GetListenerTypesCompleter ¶
GetListenerTypesCompleter returns a list of listener types that Merlin supports for CLI tab completion
func RemoveByID ¶
RemoveByID deletes a Listener from the global list of Listeners by the input UUID
Types ¶
type Listener ¶
type Listener struct { ID uuid.UUID // Unique identifier for the Listener object Name string // Name of the listener Description string // A description of the listener Server servers.ServerInterface // Interface to interact with server objects }
Listener is a structure for created Merlin listener with an embedded Server object
func GetListenerByID ¶
GetListenerByID finds and returns a pointer to an instantiated listener object by its ID (UUIDv4)
func GetListenerByName ¶
GetListenerByName finds and returns a pointer to an instantiated listener object by its name (string)
func GetListeners ¶
func GetListeners() []Listener
GetListeners is used to return a list of Listener objects to be consumed by a client application
func (*Listener) GetConfiguredOptions ¶
GetConfiguredOptions returns the server's current configuration for options that can be set by the user