apis.go 260 字节
Newer Older
E
eoLinker API Management 已提交
1 2 3 4 5 6 7 8 9 10 11 12
package strategy_api_manager

import entity "github.com/eolinker/goku/server/entity/node-entity"

type _ApiMap struct {
	apis map[int]*entity.StrategyApi
}

func (m *_ApiMap) Get(id int) (*entity.StrategyApi, bool) {
	api, has := m.apis[id]
	return api, has
}