mongorepo

package
v0.0.0-...-5d32e84 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 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 Config

type Config struct {
	DBName string
	URI    string
}

type Repository

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

func New

func New(cfg Config) *Repository

func (*Repository) Connect

func (r *Repository) Connect(ctx context.Context) error

func (*Repository) CreateFollow

func (r *Repository) CreateFollow(ctx context.Context, req outbound.CreateFollowRequest) error

Follow

func (*Repository) CreateOrder

func (r *Repository) CreateOrder(ctx context.Context, req outbound.CreateOrderRequest) error

Order

func (*Repository) Disconnect

func (r *Repository) Disconnect(ctx context.Context) error

func (*Repository) GetFollow

func (*Repository) GetOrder

func (*Repository) UpdateFollow

func (r *Repository) UpdateFollow(ctx context.Context, req outbound.UpdateFollowRequest) error

func (*Repository) UpdateOrder

func (r *Repository) UpdateOrder(ctx context.Context, req outbound.UpdateOrderRequest) error

Jump to

Keyboard shortcuts

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