isupport

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2020 License: BSD-3-Clause Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Plugin

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

Plugin tracks which ISupport features are enabled on the current connection.

func CtxISupport

func CtxISupport(ctx context.Context) *Plugin

func (*Plugin) GetList

func (p *Plugin) GetList(key string) ([]string, bool)

GetList will check for list ISupportValues

func (*Plugin) GetMap

func (p *Plugin) GetMap(key string) (map[string]string, bool)

GetMap will check for map ISupport values

func (*Plugin) GetRaw

func (p *Plugin) GetRaw(key string) (string, bool)

GetRaw will get the raw ISupport values

func (*Plugin) IsEnabled

func (p *Plugin) IsEnabled(key string) bool

IsEnabled will check for boolean ISupport values

Jump to

Keyboard shortcuts

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