registry

package
v2.0.57 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Default = "default"
)

Variables

View Source
var (
	ErrDup = errors.New("registry: duplicate object")
)

Functions

This section is empty.

Types

type BotRegistry

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

func (*BotRegistry) Get

func (r *BotRegistry) Get(name string) (t T)

func (*BotRegistry) GetAll

func (r *BotRegistry) GetAll() (m map[string]T)

func (*BotRegistry) IsRegistered

func (r *BotRegistry) IsRegistered(name string) bool

func (*BotRegistry) Register

func (r *BotRegistry) Register(name string, v T) error

func (*BotRegistry) Unregister

func (r *BotRegistry) Unregister(name string)

type CacheRegistry

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

func (*CacheRegistry) Get

func (r *CacheRegistry) Get(name string) (t T)

func (*CacheRegistry) GetAll

func (r *CacheRegistry) GetAll() (m map[string]T)

func (*CacheRegistry) IsRegistered

func (r *CacheRegistry) IsRegistered(name string) bool

func (*CacheRegistry) Register

func (r *CacheRegistry) Register(name string, v T) error

func (*CacheRegistry) Unregister

func (r *CacheRegistry) Unregister(name string)

type CasBinRegistry

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

func (*CasBinRegistry) Get

func (r *CasBinRegistry) Get(name string) (t T)

func (*CasBinRegistry) GetAll

func (r *CasBinRegistry) GetAll() (m map[string]T)

func (*CasBinRegistry) IsRegistered

func (r *CasBinRegistry) IsRegistered(name string) bool

func (*CasBinRegistry) Register

func (r *CasBinRegistry) Register(name string, v T) error

func (*CasBinRegistry) Unregister

func (r *CasBinRegistry) Unregister(name string)

type ConfigRegistry

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

func (*ConfigRegistry) Get

func (r *ConfigRegistry) Get(name string) (t T)

func (*ConfigRegistry) GetAll

func (r *ConfigRegistry) GetAll() (m map[string]T)

func (*ConfigRegistry) IsRegistered

func (r *ConfigRegistry) IsRegistered(name string) bool

func (*ConfigRegistry) Register

func (r *ConfigRegistry) Register(name string, v T) error

func (*ConfigRegistry) Unregister

func (r *ConfigRegistry) Unregister(name string)

type CrontabRegistry

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

func (*CrontabRegistry) Get

func (r *CrontabRegistry) Get(name string) (t T)

func (*CrontabRegistry) GetAll

func (r *CrontabRegistry) GetAll() (m map[string]T)

func (*CrontabRegistry) IsRegistered

func (r *CrontabRegistry) IsRegistered(name string) bool

func (*CrontabRegistry) Register

func (r *CrontabRegistry) Register(name string, v T) error

func (*CrontabRegistry) Unregister

func (r *CrontabRegistry) Unregister(name string)

type ErlangNodeRegistry added in v2.0.36

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

func (*ErlangNodeRegistry) Get added in v2.0.36

func (r *ErlangNodeRegistry) Get(name string) (t T)

func (*ErlangNodeRegistry) GetAll added in v2.0.36

func (r *ErlangNodeRegistry) GetAll() (m map[string]T)

func (*ErlangNodeRegistry) IsRegistered added in v2.0.36

func (r *ErlangNodeRegistry) IsRegistered(name string) bool

func (*ErlangNodeRegistry) Register added in v2.0.36

func (r *ErlangNodeRegistry) Register(name string, v T) error

func (*ErlangNodeRegistry) Unregister added in v2.0.36

func (r *ErlangNodeRegistry) Unregister(name string)

type JwtRegistry

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

func (*JwtRegistry) Get

func (r *JwtRegistry) Get(name string) (t T)

func (*JwtRegistry) GetAll

func (r *JwtRegistry) GetAll() (m map[string]T)

func (*JwtRegistry) IsRegistered

func (r *JwtRegistry) IsRegistered(name string) bool

func (*JwtRegistry) Register

func (r *JwtRegistry) Register(name string, v T) error

func (*JwtRegistry) Unregister

func (r *JwtRegistry) Unregister(name string)

type LanguageRegistry

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

func (*LanguageRegistry) Get

func (r *LanguageRegistry) Get(name string) (t T)

func (*LanguageRegistry) GetAll

func (r *LanguageRegistry) GetAll() (m map[string]T)

func (*LanguageRegistry) IsRegistered

func (r *LanguageRegistry) IsRegistered(name string) bool

func (*LanguageRegistry) Register

func (r *LanguageRegistry) Register(name string, v T) error

func (*LanguageRegistry) Unregister

func (r *LanguageRegistry) Unregister(name string)

type LockerRegistry

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

func (*LockerRegistry) Get

func (r *LockerRegistry) Get(name string) (t T)

func (*LockerRegistry) GetAll

func (r *LockerRegistry) GetAll() (m map[string]T)

func (*LockerRegistry) IsRegistered

func (r *LockerRegistry) IsRegistered(name string) bool

func (*LockerRegistry) Register

func (r *LockerRegistry) Register(name string, v T) error

func (*LockerRegistry) Unregister

func (r *LockerRegistry) Unregister(name string)

type MemoryServiceRegistry

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

func (*MemoryServiceRegistry) Get

func (r *MemoryServiceRegistry) Get(name string) (t T)

func (*MemoryServiceRegistry) GetAll

func (r *MemoryServiceRegistry) GetAll() (m map[string]T)

func (*MemoryServiceRegistry) IsRegistered

func (r *MemoryServiceRegistry) IsRegistered(name string) bool

func (*MemoryServiceRegistry) Register

func (r *MemoryServiceRegistry) Register(name string, v T) error

func (*MemoryServiceRegistry) Unregister

func (r *MemoryServiceRegistry) Unregister(name string)

type MetricsRegistry

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

func (*MetricsRegistry) Get

func (r *MetricsRegistry) Get(name string) (t T)

func (*MetricsRegistry) GetAll

func (r *MetricsRegistry) GetAll() (m map[string]T)

func (*MetricsRegistry) IsRegistered

func (r *MetricsRegistry) IsRegistered(name string) bool

func (*MetricsRegistry) Register

func (r *MetricsRegistry) Register(name string, v T) error

func (*MetricsRegistry) Unregister

func (r *MetricsRegistry) Unregister(name string)

type QueueRegistry

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

func (*QueueRegistry) Get

func (r *QueueRegistry) Get(name string) (t T)

func (*QueueRegistry) GetAll

func (r *QueueRegistry) GetAll() (m map[string]T)

func (*QueueRegistry) IsRegistered

func (r *QueueRegistry) IsRegistered(name string) bool

func (*QueueRegistry) Register

func (r *QueueRegistry) Register(name string, v T) error

func (*QueueRegistry) Unregister

func (r *QueueRegistry) Unregister(name string)

type RabbitMqServiceRegistry

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

func (*RabbitMqServiceRegistry) Get

func (r *RabbitMqServiceRegistry) Get(name string) (t T)

func (*RabbitMqServiceRegistry) GetAll

func (r *RabbitMqServiceRegistry) GetAll() (m map[string]T)

func (*RabbitMqServiceRegistry) IsRegistered

func (r *RabbitMqServiceRegistry) IsRegistered(name string) bool

func (*RabbitMqServiceRegistry) Register

func (r *RabbitMqServiceRegistry) Register(name string, v T) error

func (*RabbitMqServiceRegistry) Unregister

func (r *RabbitMqServiceRegistry) Unregister(name string)

type RiakRegistry added in v2.0.24

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

func (*RiakRegistry) Get added in v2.0.24

func (r *RiakRegistry) Get(name string) (t T)

func (*RiakRegistry) GetAll added in v2.0.24

func (r *RiakRegistry) GetAll() (m map[string]T)

func (*RiakRegistry) IsRegistered added in v2.0.24

func (r *RiakRegistry) IsRegistered(name string) bool

func (*RiakRegistry) Register added in v2.0.24

func (r *RiakRegistry) Register(name string, v T) error

func (*RiakRegistry) Unregister added in v2.0.24

func (r *RiakRegistry) Unregister(name string)

type RocketMqServiceRegistry

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

func (*RocketMqServiceRegistry) Get

func (r *RocketMqServiceRegistry) Get(name string) (t T)

func (*RocketMqServiceRegistry) GetAll

func (r *RocketMqServiceRegistry) GetAll() (m map[string]T)

func (*RocketMqServiceRegistry) IsRegistered

func (r *RocketMqServiceRegistry) IsRegistered(name string) bool

func (*RocketMqServiceRegistry) Register

func (r *RocketMqServiceRegistry) Register(name string, v T) error

func (*RocketMqServiceRegistry) Unregister

func (r *RocketMqServiceRegistry) Unregister(name string)

type SenderRegistry added in v2.0.51

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

func (*SenderRegistry) Get added in v2.0.51

func (r *SenderRegistry) Get(name string) (t T)

func (*SenderRegistry) GetAll added in v2.0.51

func (r *SenderRegistry) GetAll() (m map[string]T)

func (*SenderRegistry) IsRegistered added in v2.0.51

func (r *SenderRegistry) IsRegistered(name string) bool

func (*SenderRegistry) Register added in v2.0.51

func (r *SenderRegistry) Register(name string, v T) error

func (*SenderRegistry) Unregister added in v2.0.51

func (r *SenderRegistry) Unregister(name string)

type ServerRegistry

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

func (*ServerRegistry) Get

func (r *ServerRegistry) Get(name string) (t T)

func (*ServerRegistry) GetAll

func (r *ServerRegistry) GetAll() (m map[string]T)

func (*ServerRegistry) IsRegistered

func (r *ServerRegistry) IsRegistered(name string) bool

func (*ServerRegistry) Register

func (r *ServerRegistry) Register(name string, v T) error

func (*ServerRegistry) Unregister

func (r *ServerRegistry) Unregister(name string)

type StateRegistry added in v2.0.46

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

func (*StateRegistry) Get added in v2.0.46

func (r *StateRegistry) Get(name string) (t T)

func (*StateRegistry) GetAll added in v2.0.46

func (r *StateRegistry) GetAll() (m map[string]T)

func (*StateRegistry) IsRegistered added in v2.0.46

func (r *StateRegistry) IsRegistered(name string) bool

func (*StateRegistry) Register added in v2.0.46

func (r *StateRegistry) Register(name string, v T) error

func (*StateRegistry) Unregister added in v2.0.46

func (r *StateRegistry) Unregister(name string)

type TaskServiceRegistry

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

func (*TaskServiceRegistry) Get

func (r *TaskServiceRegistry) Get(name string) (t T)

func (*TaskServiceRegistry) GetAll

func (r *TaskServiceRegistry) GetAll() (m map[string]T)

func (*TaskServiceRegistry) IsRegistered

func (r *TaskServiceRegistry) IsRegistered(name string) bool

func (*TaskServiceRegistry) Register

func (r *TaskServiceRegistry) Register(name string, v T) error

func (*TaskServiceRegistry) Unregister

func (r *TaskServiceRegistry) Unregister(name string)

type TusRegistry

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

func (*TusRegistry) Get

func (r *TusRegistry) Get(name string) (t T)

func (*TusRegistry) GetAll

func (r *TusRegistry) GetAll() (m map[string]T)

func (*TusRegistry) IsRegistered

func (r *TusRegistry) IsRegistered(name string) bool

func (*TusRegistry) Register

func (r *TusRegistry) Register(name string, v T) error

func (*TusRegistry) Unregister

func (r *TusRegistry) Unregister(name string)

type WebSocketRegistry

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

func (*WebSocketRegistry) Get

func (r *WebSocketRegistry) Get(name string) (t T)

func (*WebSocketRegistry) GetAll

func (r *WebSocketRegistry) GetAll() (m map[string]T)

func (*WebSocketRegistry) IsRegistered

func (r *WebSocketRegistry) IsRegistered(name string) bool

func (*WebSocketRegistry) Register

func (r *WebSocketRegistry) Register(name string, v T) error

func (*WebSocketRegistry) Unregister

func (r *WebSocketRegistry) Unregister(name string)

Jump to

Keyboard shortcuts

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