models

package
v0.0.0-...-bba8443 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2016 License: MIT Imports: 5 Imported by: 2

Documentation

Overview

Package models for mongo struct and toml file

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTemplate

func CreateTemplate()

CreateTemplate function to create a base config.toml file

Types

type APIServerinfo

type APIServerinfo struct {
	Name        string
	Port        int
	Apitls      bool
	MongoServer string
	MongoPort   int
}

APIServerinfo struct to configure statusAS-api

type Service

type Service struct {
	ID          bson.ObjectId `bson:"_id,omitempty" json:"id"`
	Name        string        `bson:"name" json:"name"`
	Description string        `bson:"description" json:"description"`
	Link        string        `bson:"link" json:"link"`
	Status      int           `bson:"status" json:"status"`
	GroupID     int           `bson:"group_id" json:"group_id"`
	Messages    []string      `bson:"messages" json:"messages"`
	CreatedAt   time.Time     `bson:"created_at" json:"created_at"`
	UpdatedAt   time.Time     `bson:"updated_at" json:"updated_at"`
}

Service struct

type Token

type Token struct {
	Token base64.Encoding
}

Token struct

type Tomlconfig

type Tomlconfig struct {
	APIServer APIServerinfo
}

Tomlconfig struct to read toml file components.

Jump to

Keyboard shortcuts

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