connection

package
v0.0.0-...-db3a1d9 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TagKey = "name"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Filter

type Filter struct {
	Type []string `name:"type"`
}

type ListOption

type ListOption func(*ListOptions)

func ListFilter

func ListFilter(filter *Filter) ListOption

func Page

func Page(page int) ListOption

func Size

func Size(size int) ListOption

type ListOptions

type ListOptions struct {
	Filter *Filter
	Page   *int
	Size   *int
}

type Repository

type Repository interface {
	GetConnection(id string) (*connection.Connection, error)
	GetDecryptedConnection(id string, token string) (*connection.Connection, error)
	GetConnectionList(options ...ListOption) ([]connection.Connection, error)
	DeleteConnection(id string) error
	UpdateConnection(connection *connection.Connection) error
	CreateConnection(connection *connection.Connection) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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