groups

package
v0.0.0-...-1276dd2 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2017 License: MIT Imports: 7 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package groups ...

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entity

type Entity struct {
	ID      uint64 `json:"id" xorm:"'id' pk index autoincr"`
	Created uint64 `json:"created" xorm:"'created'"`
	Updated uint64 `json:"updated" xorm:"'updated'"`
	Name    string `json:"name" xorm:"index unique 'name'"`
	Note    string `json:"note"`
}

Entity represents group

func FindByParams

func FindByParams(orm *xorm.Engine, params *getGroupParams) ([]Entity, error)

FindByParams return groups that matches params

func (*Entity) ExtractFrom

func (e *Entity) ExtractFrom(orm *xorm.Engine) error

ExtractFrom extracts group from database with strict data

func (*Entity) Save

func (e *Entity) Save(orm *xorm.Engine) error

Save group

func (*Entity) TableName

func (e *Entity) TableName() string

TableName is used by xorm to set a table name for this entity

type Handler

type Handler struct {
	C *ctx.Context
}

Handler is a application context carrier

func (*Handler) GetGroups

func (h *Handler) GetGroups(c echo.Context) error

GetGroups is a GET /groups handler swagger:operation GET /groups groups GetGroups

Returns groups list

--- responses:

200:
  description: returns group array
  schema:
    type: array
    items:
      $ref: '#/definitions/GroupEntity'

Jump to

Keyboard shortcuts

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