clients

package
v1.2.2-dev.25 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type General

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

General contains implementation structures for tracking multiple instances of GeneralType.

func NewGeneral

func NewGeneral() *General

NewGeneral is a factory function that returns an initialized General receiver struct.

func (*General) Get

func (c *General) Get(clientName string) (client GeneralType, ok bool)

Get returns the GeneralType and ok = true for the requested client name if it exists, otherwise ok = false.

func (*General) Set

func (c *General) Set(clientName string, value GeneralType)

Set updates the list of clients to ensure the provided clientName key contains the provided GeneralType value.

type GeneralType

type GeneralType general.GeneralClient

GeneralType is an alias for general.GeneralClient and hides implementation detail.

Jump to

Keyboard shortcuts

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