Documentation
¶
Index ¶
- type MemoryStore
- func (m *MemoryStore) Delete(id string) error
- func (m *MemoryStore) FindByPublicKeyAndSocket(publicKey string, host string, port int) (types.WebhookConfig, error)
- func (m *MemoryStore) GetByID(id string) (types.WebhookConfig, error)
- func (m *MemoryStore) GetBySessionID(id string) (types.WebhookConfig, error)
- func (m *MemoryStore) IsPortAvailable(port int) bool
- func (m *MemoryStore) Set(id string, value types.WebhookConfig) error
- func (m *MemoryStore) Update(id string, value types.WebhookConfig) error
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MemoryStore ¶
type MemoryStore struct {
// contains filtered or unexported fields
}
func NewMemoryStore ¶
func NewMemoryStore() *MemoryStore
func (*MemoryStore) Delete ¶
func (m *MemoryStore) Delete(id string) error
func (*MemoryStore) FindByPublicKeyAndSocket ¶
func (m *MemoryStore) FindByPublicKeyAndSocket(publicKey string, host string, port int) (types.WebhookConfig, error)
func (*MemoryStore) GetByID ¶
func (m *MemoryStore) GetByID(id string) (types.WebhookConfig, error)
func (*MemoryStore) GetBySessionID ¶
func (m *MemoryStore) GetBySessionID(id string) (types.WebhookConfig, error)
func (*MemoryStore) IsPortAvailable ¶
func (m *MemoryStore) IsPortAvailable(port int) bool
func (*MemoryStore) Set ¶
func (m *MemoryStore) Set(id string, value types.WebhookConfig) error
func (*MemoryStore) Update ¶
func (m *MemoryStore) Update(id string, value types.WebhookConfig) error
type Store ¶
type Store interface {
GetByID(id string) (types.WebhookConfig, error)
GetBySessionID(id string) (types.WebhookConfig, error)
Set(id string, value types.WebhookConfig) error
Update(id string, value types.WebhookConfig) error
Delete(id string) error
IsPortAvailable(port int) bool
FindByPublicKeyAndSocket(publicKey string, host string, port int) (types.WebhookConfig, error)
}
Click to show internal directories.
Click to hide internal directories.