package modules //*****메세지 틀***** type Message struct { From string Version string Time string Type string Content MsgUnit } type MsgUnit interface { // ConvertToJson - send 전 json형식으로 바꾸는 함수 ConvertToJson() ([]byte, error) // Send - rpc를 이용하여 msg전송 Send() (Message, error) // Recieve - rpc를 이용하여 msg전달 받음(rpc call) Recieve() (Message, error) } //********************** //*****각 메세지 형식 및 정의********** //KeyGen 명령 메세지 type KeyGenMsg struct { } //Key공유 메세지 type KeyShareMsg struct { } //전달할 내용을 담은 메세지 type PublishMsg struct { } //구독 정보를 담은 메세지 type SubscriptionMsg struct { } //Microservice 등록 메세지 type RegisterMsg struct { } //Microservice 탈퇴 메세지 type WithdrawMsg struct { } //**************************