api

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2018 License: Apache-2.0, Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Actions = &ActionCache{M: make(map[int]*portal.Action)}
View Source
var Users = &UsersCache{M: make(map[string][]*uic.User)}

Functions

func CurlAction

func CurlAction(id int) *portal.Action

func CurlUic

func CurlUic(team string) []*uic.User

func GetAction

func GetAction(event *coommonModel.Event) *portal.Action

func UsersOf

func UsersOf(team string) []*uic.User

Types

type APIGetTeamOutput

type APIGetTeamOutput struct {
	uic.Team
	Users       []*uic.User `json:"users"`
	TeamCreator string      `json:"creator_name"`
}

type ActionCache

type ActionCache struct {
	sync.RWMutex
	M map[int]*portal.Action
}

func (*ActionCache) Get

func (this *ActionCache) Get(id int) *portal.Action

func (*ActionCache) Set

func (this *ActionCache) Set(id int, action *portal.Action)

type UsersCache

type UsersCache struct {
	sync.RWMutex
	M map[string][]*uic.User
}

func (*UsersCache) Get

func (this *UsersCache) Get(team string) []*uic.User

func (*UsersCache) Set

func (this *UsersCache) Set(team string, users []*uic.User)

Jump to

Keyboard shortcuts

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