syntax = "proto3"; package codeword; option go_package = "./codeword_rpc"; import "google/protobuf/empty.proto"; message Time { int64 from = 1; int64 to = 2; } service PromoCodeService { rpc GetAllPromoActivations(google.protobuf.Empty) returns (PromoActivationResp); } message PromoActivationResp { message UserTime { string UserID = 1; int64 Time = 2; } message Activations { repeated UserTime values = 1; } map response = 1; }