Documentation
¶
Index ¶
- Variables
- func RegisterSynerexServer(s *grpc.Server, srv SynerexServer)
- type Channel
- func (*Channel) Descriptor() ([]byte, []int)
- func (m *Channel) GetArgJson() string
- func (m *Channel) GetClientId() uint64
- func (m *Channel) GetType() ChannelType
- func (*Channel) ProtoMessage()
- func (m *Channel) Reset()
- func (m *Channel) String() string
- func (m *Channel) XXX_DiscardUnknown()
- func (m *Channel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Channel) XXX_Merge(src proto.Message)
- func (m *Channel) XXX_Size() int
- func (m *Channel) XXX_Unmarshal(b []byte) error
- type ChannelType
- type ConfirmResponse
- func (*ConfirmResponse) Descriptor() ([]byte, []int)
- func (m *ConfirmResponse) GetErr() string
- func (m *ConfirmResponse) GetMbusId() uint64
- func (m *ConfirmResponse) GetOk() bool
- func (m *ConfirmResponse) GetWait() *duration.Duration
- func (*ConfirmResponse) ProtoMessage()
- func (m *ConfirmResponse) Reset()
- func (m *ConfirmResponse) String() string
- func (m *ConfirmResponse) XXX_DiscardUnknown()
- func (m *ConfirmResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ConfirmResponse) XXX_Merge(src proto.Message)
- func (m *ConfirmResponse) XXX_Size() int
- func (m *ConfirmResponse) XXX_Unmarshal(b []byte) error
- type Demand
- func (*Demand) Descriptor() ([]byte, []int)
- func (m *Demand) GetArgJson() string
- func (m *Demand) GetArgOneof() isDemand_ArgOneof
- func (m *Demand) GetArg_AdService() *adservice.AdService
- func (m *Demand) GetArg_Fleet() *fleet.Fleet
- func (m *Demand) GetArg_LibService() *library.LibService
- func (m *Demand) GetArg_MarketingService() *marketing.MarketingService
- func (m *Demand) GetArg_PTService() *ptransit.PTService
- func (m *Demand) GetArg_PTgtfs() *ptransit.PTgtfs
- func (m *Demand) GetArg_RideShare() *rideshare.RideShare
- func (m *Demand) GetArg_RoutingService() *routing.RoutingService
- func (m *Demand) GetDemandName() string
- func (m *Demand) GetId() uint64
- func (m *Demand) GetMbusId() uint64
- func (m *Demand) GetSenderId() uint64
- func (m *Demand) GetTargetId() uint64
- func (m *Demand) GetTs() *timestamp.Timestamp
- func (m *Demand) GetType() ChannelType
- func (*Demand) ProtoMessage()
- func (m *Demand) Reset()
- func (m *Demand) String() string
- func (dm *Demand) WithAdService(a *adservice.AdService) *Demand
- func (dm *Demand) WithFleet(f *fleet.Fleet) *Demand
- func (dm *Demand) WithLibService(l *library.LibService) *Demand
- func (dm *Demand) WithMarketingService(m *marketing.MarketingService) *Demand
- func (dm *Demand) WithPTService(p *ptransit.PTService) *Demand
- func (dm *Demand) WithRideShare(r *rideshare.RideShare) *Demand
- func (dm *Demand) WithRoutingService(r *routing.RoutingService) *Demand
- func (m *Demand) XXX_DiscardUnknown()
- func (m *Demand) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Demand) XXX_Merge(src proto.Message)
- func (*Demand) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- func (m *Demand) XXX_Size() int
- func (m *Demand) XXX_Unmarshal(b []byte) error
- type Demand_Arg_AdService
- type Demand_Arg_Fleet
- type Demand_Arg_LibService
- type Demand_Arg_MarketingService
- type Demand_Arg_PTService
- type Demand_Arg_PTgtfs
- type Demand_Arg_RideShare
- type Demand_Arg_RoutingService
- type Mbus
- func (*Mbus) Descriptor() ([]byte, []int)
- func (m *Mbus) GetArgJson() string
- func (m *Mbus) GetClientId() uint64
- func (m *Mbus) GetMbusId() uint64
- func (*Mbus) ProtoMessage()
- func (m *Mbus) Reset()
- func (m *Mbus) String() string
- func (m *Mbus) XXX_DiscardUnknown()
- func (m *Mbus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Mbus) XXX_Merge(src proto.Message)
- func (m *Mbus) XXX_Size() int
- func (m *Mbus) XXX_Unmarshal(b []byte) error
- type MbusMsg
- func (*MbusMsg) Descriptor() ([]byte, []int)
- func (m *MbusMsg) GetArgJson() string
- func (m *MbusMsg) GetMbusId() uint64
- func (m *MbusMsg) GetMsgId() uint64
- func (m *MbusMsg) GetMsgInfo() string
- func (m *MbusMsg) GetMsgType() uint32
- func (m *MbusMsg) GetSenderId() uint64
- func (m *MbusMsg) GetTargetId() uint64
- func (*MbusMsg) ProtoMessage()
- func (m *MbusMsg) Reset()
- func (m *MbusMsg) String() string
- func (m *MbusMsg) XXX_DiscardUnknown()
- func (m *MbusMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *MbusMsg) XXX_Merge(src proto.Message)
- func (m *MbusMsg) XXX_Size() int
- func (m *MbusMsg) XXX_Unmarshal(b []byte) error
- type Response
- func (*Response) Descriptor() ([]byte, []int)
- func (m *Response) GetErr() string
- func (m *Response) GetOk() bool
- func (*Response) ProtoMessage()
- func (m *Response) Reset()
- func (m *Response) String() string
- func (m *Response) XXX_DiscardUnknown()
- func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Response) XXX_Merge(src proto.Message)
- func (m *Response) XXX_Size() int
- func (m *Response) XXX_Unmarshal(b []byte) error
- type Supply
- func (*Supply) Descriptor() ([]byte, []int)
- func (m *Supply) GetArgJson() string
- func (m *Supply) GetArgOneof() isSupply_ArgOneof
- func (m *Supply) GetArg_AdService() *adservice.AdService
- func (m *Supply) GetArg_Fleet() *fleet.Fleet
- func (m *Supply) GetArg_LibService() *library.LibService
- func (m *Supply) GetArg_MarketingService() *marketing.MarketingService
- func (m *Supply) GetArg_PTService() *ptransit.PTService
- func (m *Supply) GetArg_PTgtfs() *ptransit.PTgtfs
- func (m *Supply) GetArg_RideShare() *rideshare.RideShare
- func (m *Supply) GetArg_RoutingService() *routing.RoutingService
- func (m *Supply) GetId() uint64
- func (m *Supply) GetMbusId() uint64
- func (m *Supply) GetSenderId() uint64
- func (m *Supply) GetSupplyName() string
- func (m *Supply) GetTargetId() uint64
- func (m *Supply) GetTs() *timestamp.Timestamp
- func (m *Supply) GetType() ChannelType
- func (*Supply) ProtoMessage()
- func (m *Supply) Reset()
- func (m *Supply) String() string
- func (sp *Supply) WithAdService(a *adservice.AdService) *Supply
- func (sp *Supply) WithFleet(f *fleet.Fleet) *Supply
- func (sp *Supply) WithLibService(l *library.LibService) *Supply
- func (sp *Supply) WithMarketingService(m *marketing.MarketingService) *Supply
- func (sp *Supply) WithPTService(p *ptransit.PTService) *Supply
- func (sp *Supply) WithRideShare(r *rideshare.RideShare) *Supply
- func (sp *Supply) WithRoutingService(r *routing.RoutingService) *Supply
- func (m *Supply) XXX_DiscardUnknown()
- func (m *Supply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Supply) XXX_Merge(src proto.Message)
- func (*Supply) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- func (m *Supply) XXX_Size() int
- func (m *Supply) XXX_Unmarshal(b []byte) error
- type Supply_Arg_AdService
- type Supply_Arg_Fleet
- type Supply_Arg_LibService
- type Supply_Arg_MarketingService
- type Supply_Arg_PTService
- type Supply_Arg_PTgtfs
- type Supply_Arg_RideShare
- type Supply_Arg_RoutingService
- type SynerexClient
- type SynerexServer
- type Synerex_SubscribeDemandClient
- type Synerex_SubscribeDemandServer
- type Synerex_SubscribeMbusClient
- type Synerex_SubscribeMbusServer
- type Synerex_SubscribeSupplyClient
- type Synerex_SubscribeSupplyServer
- type Target
- func (*Target) Descriptor() ([]byte, []int)
- func (m *Target) GetId() uint64
- func (m *Target) GetMbusId() uint64
- func (m *Target) GetSenderId() uint64
- func (m *Target) GetTargetId() uint64
- func (m *Target) GetType() ChannelType
- func (m *Target) GetWait() *duration.Duration
- func (*Target) ProtoMessage()
- func (m *Target) Reset()
- func (m *Target) String() string
- func (m *Target) XXX_DiscardUnknown()
- func (m *Target) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Target) XXX_Merge(src proto.Message)
- func (m *Target) XXX_Size() int
- func (m *Target) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
var ChannelType_name = map[int32]string{
0: "NONE",
1: "RIDE_SHARE",
2: "AD_SERVICE",
3: "LIB_SERVICE",
4: "PT_SERVICE",
5: "ROUTING_SERVICE",
6: "MARKETING_SERVICE",
10: "END",
}
var ChannelType_value = map[string]int32{
"NONE": 0,
"RIDE_SHARE": 1,
"AD_SERVICE": 2,
"LIB_SERVICE": 3,
"PT_SERVICE": 4,
"ROUTING_SERVICE": 5,
"MARKETING_SERVICE": 6,
"END": 10,
}
Functions ¶
func RegisterSynerexServer ¶
func RegisterSynerexServer(s *grpc.Server, srv SynerexServer)
Types ¶
type Channel ¶
type Channel struct { ClientId uint64 `protobuf:"fixed64,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` Type ChannelType `protobuf:"varint,2,opt,name=type,proto3,enum=api.ChannelType" json:"type,omitempty"` ArgJson string `protobuf:"bytes,3,opt,name=arg_json,json=argJson,proto3" json:"arg_json,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Channel) Descriptor ¶
func (*Channel) GetArgJson ¶
func (*Channel) GetClientId ¶
func (*Channel) GetType ¶
func (m *Channel) GetType() ChannelType
func (*Channel) ProtoMessage ¶
func (*Channel) ProtoMessage()
func (*Channel) XXX_DiscardUnknown ¶
func (m *Channel) XXX_DiscardUnknown()
func (*Channel) XXX_Marshal ¶
func (*Channel) XXX_Unmarshal ¶
type ChannelType ¶
type ChannelType int32
const ( ChannelType_NONE ChannelType = 0 ChannelType_RIDE_SHARE ChannelType = 1 ChannelType_AD_SERVICE ChannelType = 2 ChannelType_LIB_SERVICE ChannelType = 3 ChannelType_PT_SERVICE ChannelType = 4 ChannelType_ROUTING_SERVICE ChannelType = 5 ChannelType_MARKETING_SERVICE ChannelType = 6 ChannelType_END ChannelType = 10 )
func (ChannelType) EnumDescriptor ¶
func (ChannelType) EnumDescriptor() ([]byte, []int)
func (ChannelType) String ¶
func (x ChannelType) String() string
type ConfirmResponse ¶
type ConfirmResponse struct { Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"` MbusId uint64 `protobuf:"fixed64,2,opt,name=mbus_id,json=mbusId,proto3" json:"mbus_id,omitempty"` Wait *duration.Duration `protobuf:"bytes,3,opt,name=wait,proto3" json:"wait,omitempty"` Err string `protobuf:"bytes,4,opt,name=err,proto3" json:"err,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ConfirmResponse) Descriptor ¶
func (*ConfirmResponse) Descriptor() ([]byte, []int)
func (*ConfirmResponse) GetErr ¶
func (m *ConfirmResponse) GetErr() string
func (*ConfirmResponse) GetMbusId ¶
func (m *ConfirmResponse) GetMbusId() uint64
func (*ConfirmResponse) GetOk ¶
func (m *ConfirmResponse) GetOk() bool
func (*ConfirmResponse) GetWait ¶
func (m *ConfirmResponse) GetWait() *duration.Duration
func (*ConfirmResponse) ProtoMessage ¶
func (*ConfirmResponse) ProtoMessage()
func (*ConfirmResponse) Reset ¶
func (m *ConfirmResponse) Reset()
func (*ConfirmResponse) String ¶
func (m *ConfirmResponse) String() string
func (*ConfirmResponse) XXX_DiscardUnknown ¶
func (m *ConfirmResponse) XXX_DiscardUnknown()
func (*ConfirmResponse) XXX_Marshal ¶
func (m *ConfirmResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ConfirmResponse) XXX_Merge ¶
func (dst *ConfirmResponse) XXX_Merge(src proto.Message)
func (*ConfirmResponse) XXX_Size ¶
func (m *ConfirmResponse) XXX_Size() int
func (*ConfirmResponse) XXX_Unmarshal ¶
func (m *ConfirmResponse) XXX_Unmarshal(b []byte) error
type Demand ¶
type Demand struct { Id uint64 `protobuf:"fixed64,1,opt,name=id,proto3" json:"id,omitempty"` SenderId uint64 `protobuf:"fixed64,2,opt,name=sender_id,json=senderId,proto3" json:"sender_id,omitempty"` TargetId uint64 `protobuf:"fixed64,3,opt,name=target_id,json=targetId,proto3" json:"target_id,omitempty"` Type ChannelType `protobuf:"varint,4,opt,name=type,proto3,enum=api.ChannelType" json:"type,omitempty"` DemandName string `protobuf:"bytes,5,opt,name=demand_name,json=demandName,proto3" json:"demand_name,omitempty"` Ts *timestamp.Timestamp `protobuf:"bytes,6,opt,name=ts,proto3" json:"ts,omitempty"` // message content = 7; // json ArgJson string `protobuf:"bytes,7,opt,name=arg_json,json=argJson,proto3" json:"arg_json,omitempty"` MbusId uint64 `protobuf:"fixed64,8,opt,name=mbus_id,json=mbusId,proto3" json:"mbus_id,omitempty"` // Types that are valid to be assigned to ArgOneof: // *Demand_Arg_Fleet // *Demand_Arg_RideShare // *Demand_Arg_AdService // *Demand_Arg_LibService // *Demand_Arg_PTService // *Demand_Arg_RoutingService // *Demand_Arg_MarketingService // *Demand_Arg_PTgtfs ArgOneof isDemand_ArgOneof `protobuf_oneof:"arg_oneof"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Demand) Descriptor ¶
func (*Demand) GetArgJson ¶
func (*Demand) GetArgOneof ¶
func (m *Demand) GetArgOneof() isDemand_ArgOneof
func (*Demand) GetArg_AdService ¶
func (*Demand) GetArg_Fleet ¶
func (*Demand) GetArg_LibService ¶
func (m *Demand) GetArg_LibService() *library.LibService
func (*Demand) GetArg_MarketingService ¶
func (m *Demand) GetArg_MarketingService() *marketing.MarketingService
func (*Demand) GetArg_PTService ¶
func (*Demand) GetArg_PTgtfs ¶
func (*Demand) GetArg_RideShare ¶
func (*Demand) GetArg_RoutingService ¶
func (m *Demand) GetArg_RoutingService() *routing.RoutingService
func (*Demand) GetDemandName ¶
func (*Demand) GetSenderId ¶
func (*Demand) GetTargetId ¶
func (*Demand) GetType ¶
func (m *Demand) GetType() ChannelType
func (*Demand) ProtoMessage ¶
func (*Demand) ProtoMessage()
func (*Demand) WithAdService ¶
WithAdShare set a given AdShare to Demand.Demand_Arg_AdShare.Arg_AdShare.
func (*Demand) WithLibService ¶
func (dm *Demand) WithLibService(l *library.LibService) *Demand
WithLibService set a given LibService to Demand.Demand_Arg_LibService.Arg_LibService.
func (*Demand) WithMarketingService ¶
func (dm *Demand) WithMarketingService(m *marketing.MarketingService) *Demand
WithMarketingService set a given MarketingService to Demand.Demand_Arg_MarketingService.Arg_MarketingService.
func (*Demand) WithPTService ¶
WithPTService set a given PTService to Demand.Demand_Arg_PTService.Arg_PTService.
func (*Demand) WithRideShare ¶
WithRideShare set a given RideShare to Demand.Demand_Arg_RideShare.Arg_RideShare.
func (*Demand) WithRoutingService ¶
func (dm *Demand) WithRoutingService(r *routing.RoutingService) *Demand
WithRoutingService set a given RoutingService to Demand.Demand_Arg_RoutingService.Arg_RoutingService.
func (*Demand) XXX_DiscardUnknown ¶
func (m *Demand) XXX_DiscardUnknown()
func (*Demand) XXX_Marshal ¶
func (*Demand) XXX_OneofFuncs ¶
func (*Demand) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
XXX_OneofFuncs is for the internal use of the proto package.
func (*Demand) XXX_Unmarshal ¶
type Demand_Arg_AdService ¶
type Demand_Arg_Fleet ¶
type Demand_Arg_LibService ¶
type Demand_Arg_LibService struct {
Arg_LibService *library.LibService `protobuf:"bytes,13,opt,name=arg_LibService,json=argLibService,proto3,oneof"`
}
type Demand_Arg_MarketingService ¶
type Demand_Arg_MarketingService struct {
Arg_MarketingService *marketing.MarketingService `protobuf:"bytes,16,opt,name=arg_MarketingService,json=argMarketingService,proto3,oneof"`
}
type Demand_Arg_PTService ¶
type Demand_Arg_PTgtfs ¶
type Demand_Arg_RideShare ¶
type Demand_Arg_RideShare struct {
}type Demand_Arg_RoutingService ¶
type Demand_Arg_RoutingService struct {
Arg_RoutingService *routing.RoutingService `protobuf:"bytes,15,opt,name=arg_RoutingService,json=argRoutingService,proto3,oneof"`
}
type Mbus ¶
type Mbus struct { ClientId uint64 `protobuf:"fixed64,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` MbusId uint64 `protobuf:"fixed64,2,opt,name=mbus_id,json=mbusId,proto3" json:"mbus_id,omitempty"` ArgJson string `protobuf:"bytes,3,opt,name=arg_json,json=argJson,proto3" json:"arg_json,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Mbus) Descriptor ¶
func (*Mbus) GetArgJson ¶
func (*Mbus) GetClientId ¶
func (*Mbus) ProtoMessage ¶
func (*Mbus) ProtoMessage()
func (*Mbus) XXX_DiscardUnknown ¶
func (m *Mbus) XXX_DiscardUnknown()
func (*Mbus) XXX_Unmarshal ¶
type MbusMsg ¶
type MbusMsg struct { MsgId uint64 `protobuf:"fixed64,1,opt,name=msg_id,json=msgId,proto3" json:"msg_id,omitempty"` SenderId uint64 `protobuf:"fixed64,2,opt,name=sender_id,json=senderId,proto3" json:"sender_id,omitempty"` TargetId uint64 `protobuf:"fixed64,3,opt,name=target_id,json=targetId,proto3" json:"target_id,omitempty"` MbusId uint64 `protobuf:"fixed64,4,opt,name=mbus_id,json=mbusId,proto3" json:"mbus_id,omitempty"` MsgType uint32 `protobuf:"varint,5,opt,name=msg_type,json=msgType,proto3" json:"msg_type,omitempty"` MsgInfo string `protobuf:"bytes,6,opt,name=msg_info,json=msgInfo,proto3" json:"msg_info,omitempty"` ArgJson string `protobuf:"bytes,7,opt,name=arg_json,json=argJson,proto3" json:"arg_json,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*MbusMsg) Descriptor ¶
func (*MbusMsg) GetArgJson ¶
func (*MbusMsg) GetMsgInfo ¶
func (*MbusMsg) GetMsgType ¶
func (*MbusMsg) GetSenderId ¶
func (*MbusMsg) GetTargetId ¶
func (*MbusMsg) ProtoMessage ¶
func (*MbusMsg) ProtoMessage()
func (*MbusMsg) XXX_DiscardUnknown ¶
func (m *MbusMsg) XXX_DiscardUnknown()
func (*MbusMsg) XXX_Marshal ¶
func (*MbusMsg) XXX_Unmarshal ¶
type Response ¶
type Response struct { Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"` Err string `protobuf:"bytes,2,opt,name=err,proto3" json:"err,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Response) Descriptor ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) XXX_DiscardUnknown ¶
func (m *Response) XXX_DiscardUnknown()
func (*Response) XXX_Marshal ¶
func (*Response) XXX_Unmarshal ¶
type Supply ¶
type Supply struct { Id uint64 `protobuf:"fixed64,1,opt,name=id,proto3" json:"id,omitempty"` SenderId uint64 `protobuf:"fixed64,2,opt,name=sender_id,json=senderId,proto3" json:"sender_id,omitempty"` TargetId uint64 `protobuf:"fixed64,3,opt,name=target_id,json=targetId,proto3" json:"target_id,omitempty"` Type ChannelType `protobuf:"varint,4,opt,name=type,proto3,enum=api.ChannelType" json:"type,omitempty"` SupplyName string `protobuf:"bytes,5,opt,name=supply_name,json=supplyName,proto3" json:"supply_name,omitempty"` Ts *timestamp.Timestamp `protobuf:"bytes,6,opt,name=ts,proto3" json:"ts,omitempty"` // message content = 7; // json ArgJson string `protobuf:"bytes,7,opt,name=arg_json,json=argJson,proto3" json:"arg_json,omitempty"` MbusId uint64 `protobuf:"fixed64,8,opt,name=mbus_id,json=mbusId,proto3" json:"mbus_id,omitempty"` // Types that are valid to be assigned to ArgOneof: // *Supply_Arg_Fleet // *Supply_Arg_RideShare // *Supply_Arg_AdService // *Supply_Arg_LibService // *Supply_Arg_PTService // *Supply_Arg_RoutingService // *Supply_Arg_MarketingService // *Supply_Arg_PTgtfs ArgOneof isSupply_ArgOneof `protobuf_oneof:"arg_oneof"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Supply) Descriptor ¶
func (*Supply) GetArgJson ¶
func (*Supply) GetArgOneof ¶
func (m *Supply) GetArgOneof() isSupply_ArgOneof
func (*Supply) GetArg_AdService ¶
func (*Supply) GetArg_Fleet ¶
func (*Supply) GetArg_LibService ¶
func (m *Supply) GetArg_LibService() *library.LibService
func (*Supply) GetArg_MarketingService ¶
func (m *Supply) GetArg_MarketingService() *marketing.MarketingService
func (*Supply) GetArg_PTService ¶
func (*Supply) GetArg_PTgtfs ¶
func (*Supply) GetArg_RideShare ¶
func (*Supply) GetArg_RoutingService ¶
func (m *Supply) GetArg_RoutingService() *routing.RoutingService
func (*Supply) GetSenderId ¶
func (*Supply) GetSupplyName ¶
func (*Supply) GetTargetId ¶
func (*Supply) GetType ¶
func (m *Supply) GetType() ChannelType
func (*Supply) ProtoMessage ¶
func (*Supply) ProtoMessage()
func (*Supply) WithAdService ¶
WithAdService set a given AdService to Supply.Supply_Arg_AdService.Arg_AdService.
func (*Supply) WithLibService ¶
func (sp *Supply) WithLibService(l *library.LibService) *Supply
WithLibService set a given LibService to Supply.Supply_Arg_LibService.Arg_LibService.
func (*Supply) WithMarketingService ¶
func (sp *Supply) WithMarketingService(m *marketing.MarketingService) *Supply
WithMarketingService set a given MarketingService to Supply.Supply_Arg_MarketingService.Arg_MarketingService.
func (*Supply) WithPTService ¶
WithPTService set a given PTService to Supply.Supply_Arg_PTService.Arg_PTService.
func (*Supply) WithRideShare ¶
WithRideShare set a given RideShare to Supply.Supply_Arg_RideShare.Arg_RideShare.
func (*Supply) WithRoutingService ¶
func (sp *Supply) WithRoutingService(r *routing.RoutingService) *Supply
WithRoutingService set a given RoutingService to Supply.Supply_Arg_RoutingService.Arg_RoutingService.
func (*Supply) XXX_DiscardUnknown ¶
func (m *Supply) XXX_DiscardUnknown()
func (*Supply) XXX_Marshal ¶
func (*Supply) XXX_OneofFuncs ¶
func (*Supply) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
XXX_OneofFuncs is for the internal use of the proto package.
func (*Supply) XXX_Unmarshal ¶
type Supply_Arg_AdService ¶
type Supply_Arg_Fleet ¶
type Supply_Arg_LibService ¶
type Supply_Arg_LibService struct {
Arg_LibService *library.LibService `protobuf:"bytes,13,opt,name=arg_LibService,json=argLibService,proto3,oneof"`
}
type Supply_Arg_MarketingService ¶
type Supply_Arg_MarketingService struct {
Arg_MarketingService *marketing.MarketingService `protobuf:"bytes,16,opt,name=arg_MarketingService,json=argMarketingService,proto3,oneof"`
}
type Supply_Arg_PTService ¶
type Supply_Arg_PTgtfs ¶
type Supply_Arg_RideShare ¶
type Supply_Arg_RideShare struct {
}type Supply_Arg_RoutingService ¶
type Supply_Arg_RoutingService struct {
Arg_RoutingService *routing.RoutingService `protobuf:"bytes,15,opt,name=arg_RoutingService,json=argRoutingService,proto3,oneof"`
}
type SynerexClient ¶
type SynerexClient interface { RegisterDemand(ctx context.Context, in *Demand, opts ...grpc.CallOption) (*Response, error) RegisterSupply(ctx context.Context, in *Supply, opts ...grpc.CallOption) (*Response, error) ProposeDemand(ctx context.Context, in *Demand, opts ...grpc.CallOption) (*Response, error) ProposeSupply(ctx context.Context, in *Supply, opts ...grpc.CallOption) (*Response, error) ReserveSupply(ctx context.Context, in *Target, opts ...grpc.CallOption) (*ConfirmResponse, error) ReserveDemand(ctx context.Context, in *Target, opts ...grpc.CallOption) (*ConfirmResponse, error) SelectSupply(ctx context.Context, in *Target, opts ...grpc.CallOption) (*ConfirmResponse, error) SelectDemand(ctx context.Context, in *Target, opts ...grpc.CallOption) (*ConfirmResponse, error) Confirm(ctx context.Context, in *Target, opts ...grpc.CallOption) (*Response, error) SubscribeDemand(ctx context.Context, in *Channel, opts ...grpc.CallOption) (Synerex_SubscribeDemandClient, error) SubscribeSupply(ctx context.Context, in *Channel, opts ...grpc.CallOption) (Synerex_SubscribeSupplyClient, error) SubscribeMbus(ctx context.Context, in *Mbus, opts ...grpc.CallOption) (Synerex_SubscribeMbusClient, error) SendMsg(ctx context.Context, in *MbusMsg, opts ...grpc.CallOption) (*Response, error) CloseMbus(ctx context.Context, in *Mbus, opts ...grpc.CallOption) (*Response, error) }
SynerexClient is the client API for Synerex service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewSynerexClient ¶
func NewSynerexClient(cc *grpc.ClientConn) SynerexClient
type SynerexServer ¶
type SynerexServer interface { RegisterDemand(context.Context, *Demand) (*Response, error) RegisterSupply(context.Context, *Supply) (*Response, error) ProposeDemand(context.Context, *Demand) (*Response, error) ProposeSupply(context.Context, *Supply) (*Response, error) ReserveSupply(context.Context, *Target) (*ConfirmResponse, error) ReserveDemand(context.Context, *Target) (*ConfirmResponse, error) SelectSupply(context.Context, *Target) (*ConfirmResponse, error) SelectDemand(context.Context, *Target) (*ConfirmResponse, error) Confirm(context.Context, *Target) (*Response, error) SubscribeDemand(*Channel, Synerex_SubscribeDemandServer) error SubscribeSupply(*Channel, Synerex_SubscribeSupplyServer) error SubscribeMbus(*Mbus, Synerex_SubscribeMbusServer) error SendMsg(context.Context, *MbusMsg) (*Response, error) CloseMbus(context.Context, *Mbus) (*Response, error) }
SynerexServer is the server API for Synerex service.
type Synerex_SubscribeDemandClient ¶
type Synerex_SubscribeDemandClient interface { Recv() (*Demand, error) grpc.ClientStream }
type Synerex_SubscribeDemandServer ¶
type Synerex_SubscribeDemandServer interface { Send(*Demand) error grpc.ServerStream }
type Synerex_SubscribeMbusClient ¶
type Synerex_SubscribeMbusClient interface { Recv() (*MbusMsg, error) grpc.ClientStream }
type Synerex_SubscribeMbusServer ¶
type Synerex_SubscribeMbusServer interface { Send(*MbusMsg) error grpc.ServerStream }
type Synerex_SubscribeSupplyClient ¶
type Synerex_SubscribeSupplyClient interface { Recv() (*Supply, error) grpc.ClientStream }
type Synerex_SubscribeSupplyServer ¶
type Synerex_SubscribeSupplyServer interface { Send(*Supply) error grpc.ServerStream }
type Target ¶
type Target struct { Id uint64 `protobuf:"fixed64,1,opt,name=id,proto3" json:"id,omitempty"` SenderId uint64 `protobuf:"fixed64,2,opt,name=sender_id,json=senderId,proto3" json:"sender_id,omitempty"` TargetId uint64 `protobuf:"fixed64,3,opt,name=target_id,json=targetId,proto3" json:"target_id,omitempty"` Type ChannelType `protobuf:"varint,4,opt,name=type,proto3,enum=api.ChannelType" json:"type,omitempty"` Wait *duration.Duration `protobuf:"bytes,5,opt,name=wait,proto3" json:"wait,omitempty"` MbusId uint64 `protobuf:"fixed64,6,opt,name=mbus_id,json=mbusId,proto3" json:"mbus_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Target) Descriptor ¶
func (*Target) GetSenderId ¶
func (*Target) GetTargetId ¶
func (*Target) GetType ¶
func (m *Target) GetType() ChannelType
func (*Target) ProtoMessage ¶
func (*Target) ProtoMessage()
func (*Target) XXX_DiscardUnknown ¶
func (m *Target) XXX_DiscardUnknown()