repository

package
v0.0.0-...-0cdf2ff Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

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

string connection Object

func NewRepository

func NewRepository(dbServer string, dbDatabase string, dbCollection string) *Repository

generating the new Repository

func (*Repository) Close

func (repo *Repository) Close()

closing

func (*Repository) Delete

func (repo *Repository) Delete(tzc TZConvertion) error

func (*Repository) FindAll

func (repo *Repository) FindAll() ([]TZConvertion, error)

Find all

func (*Repository) FindByTimezone

func (repo *Repository) FindByTimezone(tz string) (TZConvertion, error)

Find By Timezone

func (*Repository) Insert

func (repo *Repository) Insert(tzc TZConvertion) error

Insert

func (*Repository) Update

func (repo *Repository) Update(tz string, tzc TZConvertion) error

type TZConvertion

type TZConvertion struct {
	TimeZone       string `bson:"timeZone" json:"timeZone"`
	TimeDifference string `bson:"TimeDifference" json:"TimeDifference"`
}

format

Jump to

Keyboard shortcuts

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