servicePack

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

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

Go to latest
Published: Jan 11, 2020 License: MIT Imports: 3 Imported by: 1

Documentation

Overview

Package servicePack "Every package should have a package comment, a block comment preceding the package clause. For multi-file packages, the package comment only needs to be present in one file, and any one will do. The package comment should introduce the package and provide information relevant to the package as a whole. It will appear first on the godoc page and should set up the detailed documentation that follows."

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServicePack

type ServicePack struct {
	ID           string    `datastore:"-"`
	UserID       string    `datastore:"-" json:"userID"`
	AccountID    string    `datastore:"-" json:"accountID"`
	Type         string    `json:"type"`
	Title        string    `json:"title"`
	Description  string    `json:"description"`
	Created      time.Time `json:"created"`
	LastModified time.Time `json:"lastModified"`
	Status       string    `json:"status"`
}

ServicePack attributes are; Type is remote or inPlace Status is underConsideration, disaproved, active, passive, changed, removed PIC is Person In Charge whom aprove this. User key is the ancestor.

func GetAllLimited

func GetAllLimited(ctx context.Context, lim int) ([]ServicePack, error)

GetAllLimited returns limited entities from the begining of the kind with given limit and an error.

type ServicePacks

type ServicePacks map[string]*ServicePack

ServicePacks is a *ServicePack map.

func GetMulti

func GetMulti(ctx context.Context, kx []*datastore.Key) (ServicePacks, error)

GetMulti returns the corresponding entities as a map with their "ID"s assigned by their keys and an error.

func GetNextByParentLimited

func GetNextByParentLimited(ctx context.Context, crsrAsString string, pk *datastore.Key,
	lim int) (ServicePacks, string, error)

GetNextByParentLimited returns limited entities filtered by user key as parent from the previous cursor in an order. Also, returns the next cursor as string and an error.

Jump to

Keyboard shortcuts

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