// package msg_serve -- сообщения на обслуживание входящих запросов. package msg_serve import ( "gitp78su.ipnodns.ru/svi/kern/v4/lev0" "gitp78su.ipnodns.ru/svi/kern/v4/lev2/lti/bus_ent" ) // ServeReq -- входящий запрос на обслуживание. type ServeReq struct { Topic_ bus_ent.ATopic `json:"topic"` Uuid_ *lev0.LTxt `json:"uuid"` BinReq_ []byte `json:"req"` } // SelfCheck -- проверяет структуру на правильность полей. func (sf *ServeReq) SelfCheck() { lev0.If(sf.Topic_ == "").Hassert("ServeReq.SelfCheck(): topic is empty") lev0.If(sf.Uuid_.Get() == "").Hassert("ServeReq.SelfCheck(): uuid is empty") } // ServeResp -- ответ на входящий запрос. type ServeResp struct { Status_ *lev0.LTxt `json:"status"` Uuid_ *lev0.LTxt `json:"uuid"` BinResp_ []byte `json:"resp"` } // SelfCheck -- проверяет правильность своих полей. func (sf *ServeResp) SelfCheck() { lev0.If(sf.Status_.Get() == "").Hassert("ServeResp.SelfCheck(): status is empty") }