db

package
v0.0.0-...-830013e Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToDoc

func ToDoc(v interface{}) (doc *bson.D, err error)

Types

type MongoHandler

type MongoHandler struct {
	Config *config.Config
}

func (*MongoHandler) DeleteAuth

func (mh *MongoHandler) DeleteAuth() error

func (*MongoHandler) GetAuth

func (mh *MongoHandler) GetAuth() *object.Authentication

func (*MongoHandler) GetPendingWebhook

func (mh *MongoHandler) GetPendingWebhook() *object.Webhook

func (*MongoHandler) SaveAuth

func (mh *MongoHandler) SaveAuth(auth *object.Authentication) primitive.ObjectID

func (*MongoHandler) SaveWebhook

func (mh *MongoHandler) SaveWebhook(webhook object.Webhook) primitive.ObjectID

Jump to

Keyboard shortcuts

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