store

package
v0.0.0-...-ecee74b Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

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)
}

Jump to

Keyboard shortcuts

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