mongo

package
v0.0.0-...-4f8ce44 Latest Latest
Warning

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

Go to latest
Published: May 6, 2020 License: GPL-3.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 Client

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

Client ...

func NewClient

func NewClient(m *Config) (*Client, error)

NewClient ...

func (*Client) Delete

func (m *Client) Delete(cveID string) error

Delete ...

func (*Client) Get

func (m *Client) Get(cveID string) (*cve.DougCVE, error)

Get ...

func (*Client) GetAll

func (m *Client) GetAll() ([]cve.DougCVE, error)

GetAll ...

func (*Client) Insert

func (m *Client) Insert(c *cve.DougCVE) error

Insert ...

func (*Client) Search

func (m *Client) Search(filter *cve.DougCVE) ([]cve.DougCVE, error)

Search ...

func (*Client) Shutdown

func (m *Client) Shutdown()

Shutdown ...

type Config

type Config struct {
	URI        string `json:"uri,omitempty" yaml:"uri,omitempty" xml:"uri"`
	Database   string `json:"database,omitempty" yaml:"database,omitempty" xml:"database"`
	Collection string `json:"collection,omitempty" yaml:"collection,omitempty" xml:"collection"`
}

Config ...

func NewConfig

func NewConfig() *Config

NewConfig ...

func (*Config) AssertValid

func (c *Config) AssertValid()

AssertValid ...

func (*Config) String

func (c *Config) String() string

Jump to

Keyboard shortcuts

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