package
0.0.0-20200226080532-685c41194e34
Repository: https://github.com/ehdgusdldo/apiserver.git
Documentation: pkg.go.dev

# Functions

Equip .
Event .
GetCustom 고객ID로 단일조회 @Summary {id}고객아이디 @Description 고객 id로 고객 단일조회 @Tags Custom @id get-string-by-int @Accept json @Produce json @Param id path integer true "고객아이디" @Router /customs/{id} [get] @Success 200 {object} models.Custom.
GetCustomAll 고객목록전체조회 @Description 전체고객 목록조회 @Router /customs [get] @Tags Custom @Accept json @Produce json @Success 200 {array} models.Custom.
GetDevice .
GetDeviceAll 로그인한 유저 고객사의 모델리스트 @Description 로그인한 유저 고객사의 모델리스트 Authorization Bearer token 을 넣으세요 @Router /auth/device [get] @Tags device @Accept json @Produce json @Security ApiKeyAuth @Success 200 {array} models.Device.
GetModel .
GetModelAll 로그인한 유저 고객사의 모델리스트 @Description 로그인한 유저 고객사의 모델리스트 Authorization Bearer token 을 넣으세요 @Router /auth/model [get] @Tags model @Accept json @Produce json @Security ApiKeyAuth @Success 200 {array} models.Model.
GetSite .
GetSiteAll 로그인한 유저 고객사의 사이트리스트 @Description 로그인한 유저 고객사의 사이트리스트 Authorization Bearer token 을 넣으세요 @Router /auth/site [get] @Tags site @Accept json @Produce json @Security ApiKeyAuth @Success 200 {array} models.Site.
GetUser 단일 고객 조회 @Summary {id} 사용자아이디 @Description 사용자 id로 사용자 단일조회 @Tags User @id get-string-by-int @Accept json @Produce json @Param id path integer true "사용자아이디" @Router /users/{id} [get] @Success 200 {object} models.Users @Failure 500 {object} models.FailedMessage.
GetUserAll .
HelloHandler 미들웨어테스트.
HelloRedis 레디스 연결테스트.
PubCommand request로 들어온 장치아이디, actionkey, actionVal 를 redis에 publish @Description redis publish @Router /command [post] @Tags redis @Accept json @Produce json @Param command body Command true "command" @success 200 {object} CommandResponse.
Site .

# Structs

Command ..
CommandResponse swagger 응답표시용 struct.
EquipResponse Equip : iotdata5 응답용 struct I : 장치아이디 K : 측정키 Value: 측정값리스트.
EquipSeries .
EventData ..eventdata struct.
ResponseEventData ..eventdata 응답용 struct.
SiteLastDataResponse .
TimeValue Equip: iotdata5 측정값.