mongo

package
v0.0.0-...-bfe867e Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2020 License: MIT Imports: 6 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 {
	*mongo.Client
}

func NewClient

func NewClient(ctx context.Context, uri string) (*Client, error)

func (*Client) Disconnect

func (c *Client) Disconnect(ctx context.Context) error

type ProductRepo

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

func NewProductRepo

func NewProductRepo(client *Client) *ProductRepo

func (ProductRepo) Products

func (r ProductRepo) Products(ctx context.Context) ([]product.Product, error)

Jump to

Keyboard shortcuts

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