conn

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Set

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

Set exposes connections.

func Connect

func Connect(ctx context.Context, storeURL, permsURL, cacheURL string, hlp *riposo.Helpers) (*Set, error)

Connect connects to all backends.

func Use

func Use(store storage.Backend, perms permission.Backend, cache cache.Backend) *Set

Use wraps existing backend connections.

func (*Set) Cache

func (s *Set) Cache() cache.Backend

Cache returns the cache backend.

func (*Set) Close

func (s *Set) Close() error

Close closes all connections

func (*Set) Heartbeat

func (s *Set) Heartbeat(ctx context.Context) *schema.Heartbeat

Heartbeat returns heartbeat info.

func (*Set) Perms

func (s *Set) Perms() permission.Backend

Perms returns the permission backend.

func (*Set) Store

func (s *Set) Store() storage.Backend

Store returns the main storage backend.

Directories

Path Synopsis
Package cache contains abstractions and implementations for a cache backend.
Package cache contains abstractions and implementations for a cache backend.
Package permission contains abstractions and implementations for a permission backend.
Package permission contains abstractions and implementations for a permission backend.
Package storage contains abstractions and implementations for an object backend.
Package storage contains abstractions and implementations for an object backend.

Jump to

Keyboard shortcuts

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