token

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

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

Go to latest
Published: Oct 6, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	Data interface{} `json:"_data" bson:"_data"`
}

type Document

type Document struct {
	ID               string    `json:"_id" bson:"_id"`
	LastModifiedDate time.Time `json:"lastModifiedDate" bson:"lastModifiedDate"`
	Token            Data      `json:"token" bson:"token"`
}

type Token

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

func NewToken

func NewToken(ctx context.Context) *Token

func (*Token) Connect

func (o *Token) Connect(config settings.MongoUri) error

func (*Token) Get

func (o *Token) Get(id string) (*Document, error)

func (*Token) Save

func (o *Token) Save(id string, d *Data) (bool, error)

Jump to

Keyboard shortcuts

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