orm

package
v0.0.0-...-cf493b0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2021 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChangelogOrm

type ChangelogOrm struct{}

func NewChangelogOrm

func NewChangelogOrm() *ChangelogOrm

func (*ChangelogOrm) Get

func (o *ChangelogOrm) Get(ch *api.Changelog) (*api.Changelog, error)

func (*ChangelogOrm) GetAll

func (o *ChangelogOrm) GetAll(ch *api.Changelog) (*api.Changelogs, error)

func (*ChangelogOrm) Insert

func (o *ChangelogOrm) Insert(ch *api.Changelog) error

type Mongo

type Mongo struct {
	Client *mongo.Client
	Ctx    context.Context
	Cancel context.CancelFunc
}

type PluginsOrm

type PluginsOrm struct{}

func NewPluginsOrm

func NewPluginsOrm() *PluginsOrm

func (*PluginsOrm) Get

func (p *PluginsOrm) Get(req *api.Plugin) (*api.Plugin, error)

func (*PluginsOrm) Insert

func (p *PluginsOrm) Insert(pl *api.Plugin) error

func (*PluginsOrm) Paginate

func (p *PluginsOrm) Paginate(req *api.PaginatePluginsRequest) ([]*api.Plugin, error)

func (*PluginsOrm) Update

func (p *PluginsOrm) Update(req *api.Plugin) error

type ReadmesOrm

type ReadmesOrm struct{}

func NewReadmesOrm

func NewReadmesOrm() *ReadmesOrm

func (*ReadmesOrm) Get

func (p *ReadmesOrm) Get(req *api.Plugin) (*api.Readme, error)

func (*ReadmesOrm) Insert

func (p *ReadmesOrm) Insert(rdme *api.Readme) error

func (*ReadmesOrm) Update

func (p *ReadmesOrm) Update(req *api.Readme) error

type UsersOrm

type UsersOrm struct{}

func NewUsersOrm

func NewUsersOrm() *UsersOrm

func (*UsersOrm) Get

func (u *UsersOrm) Get(req *api.User) (*api.User, error)

func (*UsersOrm) Insert

func (u *UsersOrm) Insert(us *api.User) error

func (*UsersOrm) Update

func (u *UsersOrm) Update(req *api.User) error

Jump to

Keyboard shortcuts

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