gomemgo

package module
v0.0.3 Latest Latest
Warning

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

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

README

GOMEMGO

This is the client library for the Memgo in-memory story.

Installing

go get github.com/warrior-labs/gomemgo

Connecting

Insecure Connection (ideal for local development)
client, err := gomemgo.NewClient("localhost:8000", nil)
if err != nil {
  log.Fatalln(err)
}
Secure Connection (ideal for deployment)
client, err := gomemgo.NewClient("mysecurehost.com:8000",
&gomemgo.MemgoSecureOptions{
  X509CertificatePath: "path/to/cert.pem",
  X509KeyPath          "path/to.key.pem",
})
if err != nil {
  log.Fatalln(err)
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(dsn string, secureOptions *MemgoSecureOptions) (*memgoClient, error)

Types

type MemgoSecureOptions

type MemgoSecureOptions struct {
	X509CertificatePath string
	X509KeyPath         string
}

Directories

Path Synopsis
mocks
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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