repositories

package
v0.0.0-...-eb0c582 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EndpointDb

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

func NewEndpointDb

func NewEndpointDb(client *redis.Client) *EndpointDb

func (*EndpointDb) FindAll

func (db *EndpointDb) FindAll() []*models.Endpoint

func (*EndpointDb) FindAllKeys

func (db *EndpointDb) FindAllKeys() []string

func (*EndpointDb) FindByName

func (db *EndpointDb) FindByName(name string) (*models.Endpoint, error)

func (*EndpointDb) FindIfExists

func (db *EndpointDb) FindIfExists(name string) (bool, error)

func (*EndpointDb) Save

func (db *EndpointDb) Save(endpoint models.Endpoint) error

Jump to

Keyboard shortcuts

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