xtype

package
v0.0.0-...-82e7740 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2019 License: MIT Imports: 5 Imported by: 10

README

comm-xtype GoDoc

type library for Go

Installation

go get gopkg.in/goyy/goyy.v0/comm/xtype

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Box

type Box struct {
	Id     string `json:"id"`
	Name   string `json:"name"`
	Active bool   `json:"active"`
	Time   string `json:"time"`
}

Box box.

func Boxes

func Boxes(url string) (boxes []Box, err error)

Boxes returns the []xtype.Box by the http.

type Dict

type Dict struct {
	Mkey    string `json:"mkey"`
	Mval    string `json:"mval"`
	Genre   string `json:"genre"`
	Filters string `json:"filters"`
	Descr   string `json:"descr"`
	Ordinal string `json:"ordinal"`
	Created string `json:"created"`
}

Dict dict.

type IntHeap

type IntHeap []int

An IntHeap is a min-heap of ints.

func (IntHeap) Len

func (me IntHeap) Len() int

func (IntHeap) Less

func (me IntHeap) Less(i, j int) bool

func (*IntHeap) Pop

func (me *IntHeap) Pop() interface{}

Pop pop value.

func (*IntHeap) Push

func (me *IntHeap) Push(x interface{})

Push push value.

func (IntHeap) Swap

func (me IntHeap) Swap(i, j int)

type Map

type Map struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

Map map.

type Permission

type Permission struct {
	Id       string
	Profiles []string
}

Permission permission.

type Principal

type Principal struct {
	Id          string
	Code        string
	Key         string
	Name        string
	LoginName   string
	LoginTime   string
	Permissions string
	Roles       struct {
		Func string
		Data string
	}
}

Principal the subject's principal

type Queue

type Queue []interface{}

Queue FIFO : First In First Out

func (Queue) Len

func (me Queue) Len() int

Len returns the lenght of Queue.

func (*Queue) Pop

func (me *Queue) Pop() interface{}

Pop pop value.

func (*Queue) Push

func (me *Queue) Push(v interface{})

Push push value.

type Stack

type Stack []interface{}

Stack FILO : First In Last Out

func (Stack) Len

func (me Stack) Len() int

Len returns the lenght of Stack.

func (*Stack) Pop

func (me *Stack) Pop() interface{}

Pop pop value.

func (*Stack) Push

func (me *Stack) Push(v interface{})

Push push value.

type Tree

type Tree struct {
	Id       string `json:"id"`
	ParentId string `json:"pId"`
	Name     string `json:"name"`
	Open     bool   `json:"open"`
	IsParent bool   `json:"isParent"`
	Checked  bool   `json:"checked"`
}

Tree tree.

Jump to

Keyboard shortcuts

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