package modules //*****메세지 틀***** type Message struct { from string version string time string kine 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 { Message } //Key공유 메세지 type KeyShareMsg struct { Message } //전달할 내용을 담은 메세지 type PublishMsg struct { Message } //구독 정보를 담은 메세지 type SubscriptionMsg struct { Message } //Microservice 등록 메세지 type RegisterMsg struct { Message } //Microservice 탈퇴 메세지 type WithdrawMsg struct { Message } //**************************