Documentation ¶
Index ¶
- Variables
- func RegisterSurebetServer(s *grpc.Server, srv SurebetServer)
- type CheckLineRequest
- func (*CheckLineRequest) Descriptor() ([]byte, []int)
- func (this *CheckLineRequest) Equal(that interface{}) bool
- func (m *CheckLineRequest) GetSide() *Side
- func (this *CheckLineRequest) GoString() string
- func (m *CheckLineRequest) Marshal() (dAtA []byte, err error)
- func (m *CheckLineRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *CheckLineRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CheckLineRequest) ProtoMessage()
- func (m *CheckLineRequest) Reset()
- func (m *CheckLineRequest) Size() (n int)
- func (this *CheckLineRequest) String() string
- func (m *CheckLineRequest) Unmarshal(dAtA []byte) error
- func (m *CheckLineRequest) XXX_DiscardUnknown()
- func (m *CheckLineRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CheckLineRequest) XXX_Merge(src proto.Message)
- func (m *CheckLineRequest) XXX_Size() int
- func (m *CheckLineRequest) XXX_Unmarshal(b []byte) error
- type CheckLineResponse
- func (*CheckLineResponse) Descriptor() ([]byte, []int)
- func (this *CheckLineResponse) Equal(that interface{}) bool
- func (m *CheckLineResponse) GetSide() *Side
- func (this *CheckLineResponse) GoString() string
- func (m *CheckLineResponse) Marshal() (dAtA []byte, err error)
- func (m *CheckLineResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *CheckLineResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CheckLineResponse) ProtoMessage()
- func (m *CheckLineResponse) Reset()
- func (m *CheckLineResponse) Size() (n int)
- func (this *CheckLineResponse) String() string
- func (m *CheckLineResponse) Unmarshal(dAtA []byte) error
- func (m *CheckLineResponse) XXX_DiscardUnknown()
- func (m *CheckLineResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CheckLineResponse) XXX_Merge(src proto.Message)
- func (m *CheckLineResponse) XXX_Size() int
- func (m *CheckLineResponse) XXX_Unmarshal(b []byte) error
- type PingRequest
- func (*PingRequest) Descriptor() ([]byte, []int)
- func (this *PingRequest) Equal(that interface{}) bool
- func (this *PingRequest) GoString() string
- func (m *PingRequest) Marshal() (dAtA []byte, err error)
- func (m *PingRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *PingRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PingRequest) ProtoMessage()
- func (m *PingRequest) Reset()
- func (m *PingRequest) Size() (n int)
- func (this *PingRequest) String() string
- func (m *PingRequest) Unmarshal(dAtA []byte) error
- func (m *PingRequest) XXX_DiscardUnknown()
- func (m *PingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PingRequest) XXX_Merge(src proto.Message)
- func (m *PingRequest) XXX_Size() int
- func (m *PingRequest) XXX_Unmarshal(b []byte) error
- type PingResponse
- func (*PingResponse) Descriptor() ([]byte, []int)
- func (this *PingResponse) Equal(that interface{}) bool
- func (this *PingResponse) GoString() string
- func (m *PingResponse) Marshal() (dAtA []byte, err error)
- func (m *PingResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *PingResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PingResponse) ProtoMessage()
- func (m *PingResponse) Reset()
- func (m *PingResponse) Size() (n int)
- func (this *PingResponse) String() string
- func (m *PingResponse) Unmarshal(dAtA []byte) error
- func (m *PingResponse) XXX_DiscardUnknown()
- func (m *PingResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PingResponse) XXX_Merge(src proto.Message)
- func (m *PingResponse) XXX_Size() int
- func (m *PingResponse) XXX_Unmarshal(b []byte) error
- type Side
- func (*Side) Descriptor() ([]byte, []int)
- func (this *Side) Equal(that interface{}) bool
- func (m *Side) GetAway() string
- func (m *Side) GetEventId() int64
- func (m *Side) GetHome() string
- func (m *Side) GetInitiator() bool
- func (m *Side) GetLeagueId() int64
- func (m *Side) GetLeagueName() string
- func (m *Side) GetMarketId() int64
- func (m *Side) GetMarketName() string
- func (m *Side) GetNum() int64
- func (m *Side) GetPrice() float64
- func (m *Side) GetPriceId() int64
- func (m *Side) GetServiceId() int64
- func (m *Side) GetServiceName() string
- func (m *Side) GetSportId() int64
- func (m *Side) GetSportName() string
- func (m *Side) GetStarts() string
- func (m *Side) GetUrl() string
- func (this *Side) GoString() string
- func (m *Side) Marshal() (dAtA []byte, err error)
- func (m *Side) MarshalTo(dAtA []byte) (int, error)
- func (m *Side) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Side) ProtoMessage()
- func (m *Side) Reset()
- func (m *Side) Size() (n int)
- func (this *Side) String() string
- func (m *Side) Unmarshal(dAtA []byte) error
- func (m *Side) XXX_DiscardUnknown()
- func (m *Side) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Side) XXX_Merge(src proto.Message)
- func (m *Side) XXX_Size() int
- func (m *Side) XXX_Unmarshal(b []byte) error
- type SurebetClient
- type SurebetServer
- type UnimplementedSurebetServer
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func RegisterSurebetServer ¶
func RegisterSurebetServer(s *grpc.Server, srv SurebetServer)
Types ¶
type CheckLineRequest ¶
type CheckLineRequest struct {
Side *Side `protobuf:"bytes,1,opt,name=side,proto3" json:"side,omitempty"`
}
func NewPopulatedCheckLineRequest ¶
func NewPopulatedCheckLineRequest(r randySurebet, easy bool) *CheckLineRequest
func (*CheckLineRequest) Descriptor ¶
func (*CheckLineRequest) Descriptor() ([]byte, []int)
func (*CheckLineRequest) Equal ¶
func (this *CheckLineRequest) Equal(that interface{}) bool
func (*CheckLineRequest) GetSide ¶
func (m *CheckLineRequest) GetSide() *Side
func (*CheckLineRequest) GoString ¶
func (this *CheckLineRequest) GoString() string
func (*CheckLineRequest) Marshal ¶
func (m *CheckLineRequest) Marshal() (dAtA []byte, err error)
func (*CheckLineRequest) MarshalToSizedBuffer ¶
func (m *CheckLineRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CheckLineRequest) ProtoMessage ¶
func (*CheckLineRequest) ProtoMessage()
func (*CheckLineRequest) Reset ¶
func (m *CheckLineRequest) Reset()
func (*CheckLineRequest) Size ¶
func (m *CheckLineRequest) Size() (n int)
func (*CheckLineRequest) String ¶
func (this *CheckLineRequest) String() string
func (*CheckLineRequest) Unmarshal ¶
func (m *CheckLineRequest) Unmarshal(dAtA []byte) error
func (*CheckLineRequest) XXX_DiscardUnknown ¶
func (m *CheckLineRequest) XXX_DiscardUnknown()
func (*CheckLineRequest) XXX_Marshal ¶
func (m *CheckLineRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CheckLineRequest) XXX_Merge ¶
func (m *CheckLineRequest) XXX_Merge(src proto.Message)
func (*CheckLineRequest) XXX_Size ¶
func (m *CheckLineRequest) XXX_Size() int
func (*CheckLineRequest) XXX_Unmarshal ¶
func (m *CheckLineRequest) XXX_Unmarshal(b []byte) error
type CheckLineResponse ¶
type CheckLineResponse struct {
Side *Side `protobuf:"bytes,1,opt,name=side,proto3" json:"side,omitempty"`
}
func NewPopulatedCheckLineResponse ¶
func NewPopulatedCheckLineResponse(r randySurebet, easy bool) *CheckLineResponse
func (*CheckLineResponse) Descriptor ¶
func (*CheckLineResponse) Descriptor() ([]byte, []int)
func (*CheckLineResponse) Equal ¶
func (this *CheckLineResponse) Equal(that interface{}) bool
func (*CheckLineResponse) GetSide ¶
func (m *CheckLineResponse) GetSide() *Side
func (*CheckLineResponse) GoString ¶
func (this *CheckLineResponse) GoString() string
func (*CheckLineResponse) Marshal ¶
func (m *CheckLineResponse) Marshal() (dAtA []byte, err error)
func (*CheckLineResponse) MarshalTo ¶
func (m *CheckLineResponse) MarshalTo(dAtA []byte) (int, error)
func (*CheckLineResponse) MarshalToSizedBuffer ¶
func (m *CheckLineResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CheckLineResponse) ProtoMessage ¶
func (*CheckLineResponse) ProtoMessage()
func (*CheckLineResponse) Reset ¶
func (m *CheckLineResponse) Reset()
func (*CheckLineResponse) Size ¶
func (m *CheckLineResponse) Size() (n int)
func (*CheckLineResponse) String ¶
func (this *CheckLineResponse) String() string
func (*CheckLineResponse) Unmarshal ¶
func (m *CheckLineResponse) Unmarshal(dAtA []byte) error
func (*CheckLineResponse) XXX_DiscardUnknown ¶
func (m *CheckLineResponse) XXX_DiscardUnknown()
func (*CheckLineResponse) XXX_Marshal ¶
func (m *CheckLineResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CheckLineResponse) XXX_Merge ¶
func (m *CheckLineResponse) XXX_Merge(src proto.Message)
func (*CheckLineResponse) XXX_Size ¶
func (m *CheckLineResponse) XXX_Size() int
func (*CheckLineResponse) XXX_Unmarshal ¶
func (m *CheckLineResponse) XXX_Unmarshal(b []byte) error
type PingRequest ¶
type PingRequest struct { }
func NewPopulatedPingRequest ¶
func NewPopulatedPingRequest(r randySurebet, easy bool) *PingRequest
func (*PingRequest) Descriptor ¶
func (*PingRequest) Descriptor() ([]byte, []int)
func (*PingRequest) Equal ¶
func (this *PingRequest) Equal(that interface{}) bool
func (*PingRequest) GoString ¶
func (this *PingRequest) GoString() string
func (*PingRequest) Marshal ¶
func (m *PingRequest) Marshal() (dAtA []byte, err error)
func (*PingRequest) MarshalToSizedBuffer ¶
func (m *PingRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PingRequest) ProtoMessage ¶
func (*PingRequest) ProtoMessage()
func (*PingRequest) Reset ¶
func (m *PingRequest) Reset()
func (*PingRequest) Size ¶
func (m *PingRequest) Size() (n int)
func (*PingRequest) String ¶
func (this *PingRequest) String() string
func (*PingRequest) Unmarshal ¶
func (m *PingRequest) Unmarshal(dAtA []byte) error
func (*PingRequest) XXX_DiscardUnknown ¶
func (m *PingRequest) XXX_DiscardUnknown()
func (*PingRequest) XXX_Marshal ¶
func (m *PingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PingRequest) XXX_Merge ¶
func (m *PingRequest) XXX_Merge(src proto.Message)
func (*PingRequest) XXX_Size ¶
func (m *PingRequest) XXX_Size() int
func (*PingRequest) XXX_Unmarshal ¶
func (m *PingRequest) XXX_Unmarshal(b []byte) error
type PingResponse ¶
type PingResponse struct { }
func NewPopulatedPingResponse ¶
func NewPopulatedPingResponse(r randySurebet, easy bool) *PingResponse
func (*PingResponse) Descriptor ¶
func (*PingResponse) Descriptor() ([]byte, []int)
func (*PingResponse) Equal ¶
func (this *PingResponse) Equal(that interface{}) bool
func (*PingResponse) GoString ¶
func (this *PingResponse) GoString() string
func (*PingResponse) Marshal ¶
func (m *PingResponse) Marshal() (dAtA []byte, err error)
func (*PingResponse) MarshalToSizedBuffer ¶
func (m *PingResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PingResponse) ProtoMessage ¶
func (*PingResponse) ProtoMessage()
func (*PingResponse) Reset ¶
func (m *PingResponse) Reset()
func (*PingResponse) Size ¶
func (m *PingResponse) Size() (n int)
func (*PingResponse) String ¶
func (this *PingResponse) String() string
func (*PingResponse) Unmarshal ¶
func (m *PingResponse) Unmarshal(dAtA []byte) error
func (*PingResponse) XXX_DiscardUnknown ¶
func (m *PingResponse) XXX_DiscardUnknown()
func (*PingResponse) XXX_Marshal ¶
func (m *PingResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PingResponse) XXX_Merge ¶
func (m *PingResponse) XXX_Merge(src proto.Message)
func (*PingResponse) XXX_Size ¶
func (m *PingResponse) XXX_Size() int
func (*PingResponse) XXX_Unmarshal ¶
func (m *PingResponse) XXX_Unmarshal(b []byte) error
type Side ¶
type Side struct { Num int64 `protobuf:"varint,1,opt,name=num,proto3" json:"num,omitempty"` ServiceName string `protobuf:"bytes,2,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"` ServiceId int64 `protobuf:"varint,15,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"` SportName string `protobuf:"bytes,3,opt,name=sport_name,json=sportName,proto3" json:"sport_name,omitempty"` SportId int64 `protobuf:"varint,11,opt,name=sport_id,json=sportId,proto3" json:"sport_id,omitempty"` LeagueName string `protobuf:"bytes,4,opt,name=league_name,json=leagueName,proto3" json:"league_name,omitempty"` LeagueId int64 `protobuf:"varint,12,opt,name=league_id,json=leagueId,proto3" json:"league_id,omitempty"` Home string `protobuf:"bytes,5,opt,name=home,proto3" json:"home,omitempty"` Away string `protobuf:"bytes,6,opt,name=away,proto3" json:"away,omitempty"` MarketName string `protobuf:"bytes,7,opt,name=market_name,json=marketName,proto3" json:"market_name,omitempty"` MarketId int64 `protobuf:"varint,16,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` Price float64 `protobuf:"fixed64,8,opt,name=price,proto3" json:"price,omitempty"` PriceId int64 `protobuf:"varint,17,opt,name=price_id,json=priceId,proto3" json:"price_id,omitempty"` Url string `protobuf:"bytes,9,opt,name=url,proto3" json:"url,omitempty"` Initiator bool `protobuf:"varint,10,opt,name=initiator,proto3" json:"initiator,omitempty"` Starts string `protobuf:"bytes,13,opt,name=starts,proto3" json:"starts,omitempty"` EventId int64 `protobuf:"varint,14,opt,name=event_id,json=eventId,proto3" json:"event_id,omitempty"` }
func NewPopulatedSide ¶
func (*Side) Descriptor ¶
func (*Side) GetEventId ¶
func (*Side) GetInitiator ¶
func (*Side) GetLeagueId ¶
func (*Side) GetLeagueName ¶
func (*Side) GetMarketId ¶
func (*Side) GetMarketName ¶
func (*Side) GetPriceId ¶
func (*Side) GetServiceId ¶
func (*Side) GetServiceName ¶
func (*Side) GetSportId ¶
func (*Side) GetSportName ¶
func (*Side) ProtoMessage ¶
func (*Side) ProtoMessage()
func (*Side) XXX_DiscardUnknown ¶
func (m *Side) XXX_DiscardUnknown()
func (*Side) XXX_Unmarshal ¶
type SurebetClient ¶
type SurebetClient interface { Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*PingResponse, error) CheckLine(ctx context.Context, in *CheckLineRequest, opts ...grpc.CallOption) (*CheckLineResponse, error) }
SurebetClient is the client API for Surebet service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewSurebetClient ¶
func NewSurebetClient(cc *grpc.ClientConn) SurebetClient
type SurebetServer ¶
type SurebetServer interface { Ping(context.Context, *PingRequest) (*PingResponse, error) CheckLine(context.Context, *CheckLineRequest) (*CheckLineResponse, error) }
SurebetServer is the server API for Surebet service.
type UnimplementedSurebetServer ¶
type UnimplementedSurebetServer struct { }
UnimplementedSurebetServer can be embedded to have forward compatible implementations.
func (*UnimplementedSurebetServer) CheckLine ¶
func (*UnimplementedSurebetServer) CheckLine(ctx context.Context, req *CheckLineRequest) (*CheckLineResponse, error)
func (*UnimplementedSurebetServer) Ping ¶
func (*UnimplementedSurebetServer) Ping(ctx context.Context, req *PingRequest) (*PingResponse, error)
Click to show internal directories.
Click to hide internal directories.