github.com/mysteriumnetwork/node@v0.0.0-20240516044423-365054f76801/pb/session.proto (about) 1 syntax = "proto3"; 2 package pb; 3 4 option go_package = ".;pb"; 5 6 message SessionRequest { 7 ConsumerInfo consumer = 1; 8 int64 proposalID = 2; 9 bytes config = 3; 10 } 11 12 message SessionResponse { 13 string ID = 1; 14 string PaymentInfo = 2; 15 bytes config = 3; 16 } 17 18 message SessionInfo { 19 string consumerID = 1; 20 string sessionID = 2; 21 } 22 23 message ConsumerInfo { 24 string id = 1; 25 string hermesID = 2; 26 string paymentVersion = 3; 27 LocationInfo location = 4; 28 Pricing pricing = 5; 29 } 30 31 message LocationInfo { 32 string country = 1; 33 } 34 35 message Pricing { 36 bytes PerGib = 1; 37 bytes PerHour = 2; 38 } 39 40 message SessionStatus { 41 string ConsumerID = 1; 42 string SessionID = 2; 43 uint32 Code = 3; 44 string Message = 4; 45 }