syntax = "proto3";

package broker;

option go_package = "./broker";

message PrivilegeMessage {
  string PrivilegeID = 1;
	string ServiceKey = 2;
	PrivilegeType Type = 3;
	string Value = 4;
	uint64 Amount = 5;
}

message TariffMessage {
  repeated PrivilegeMessage Privileges = 1;
	string UserID = 2;
}

enum PrivilegeType {
	Full = 0;
	Day = 1;
	Count = 2;
}