dsn

package
v0.0.0-...-9677058 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2019 License: GPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileDSN

type FileDSN struct {
	Folder string
}

FileDSN ...

func File

func File(uri string) (*FileDSN, error)

File ...

func (*FileDSN) Join

func (dsn *FileDSN) Join(filename string) string

Join returns ...

type GCSDSN

type GCSDSN struct {
	Bucket string
	Key    string
}

GCSDSN ...

func GCS

func GCS(uri string) (*GCSDSN, error)

GCS ...

func (*GCSDSN) Join

func (dsn *GCSDSN) Join(filename string) string

Join returns file joined string that discards key's basename and then combine filename.

func (*GCSDSN) String

func (dsn *GCSDSN) String(filename string) string

type RedisDSN

type RedisDSN struct {
	Password, Host, Port, HostPort, DB string
}

RedisDSN ...

func Redis

func Redis(uri string) (*RedisDSN, error)

Redis ...

func (*RedisDSN) Flags

func (c *RedisDSN) Flags() []string

Flags ...

type S3DSN

type S3DSN struct {
	Sess   *session.Session
	Bucket string
	Key    string
	ACL    string
}

S3DSN ...

func S3

func S3(uri string) (*S3DSN, error)

S3 ...

func (*S3DSN) Join

func (dsn *S3DSN) Join(filename string) string

Join returns file joined string that discards key's basename and then combine filename.

func (*S3DSN) String

func (dsn *S3DSN) String(filename string) string

Jump to

Keyboard shortcuts

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