apps

package
v0.0.0-...-82869e8 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2020 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cache sync.Map

Cache map contains all apps

Functions

func Create

func Create(c *gin.Context)

Create handler creates app

func Delete

func Delete(c *gin.Context)

Delete handler deletes app and its logs

func Get

func Get(c *gin.Context)

Get handler returns app by id

func GetAll

func GetAll(c *gin.Context)

GetAll handler returns all apps

func InitCache

func InitCache()

InitCache function initializes apps.Cache map

func Update

func Update(c *gin.Context)

Update handlers updates app

Types

type App

type App struct {
	ID      primitive.ObjectID `bson:"_id" json:"id,omitempty"`
	Name    string             `json:"name" binding:"required"`
	Token   string             `json:"token"`
	Schema  string             `json:"schema"`
	Created time.Time          `json:"created"`
}

App struct

Jump to

Keyboard shortcuts

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