surebetpb

package
v0.0.0-...-7d0a2b6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 15, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthSurebet        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowSurebet          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupSurebet = fmt.Errorf("proto: unexpected end of group")
)

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) MarshalTo

func (m *CheckLineRequest) MarshalTo(dAtA []byte) (int, 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) MarshalTo

func (m *PingRequest) MarshalTo(dAtA []byte) (int, 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) MarshalTo

func (m *PingResponse) MarshalTo(dAtA []byte) (int, 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 NewPopulatedSide(r randySurebet, easy bool) *Side

func (*Side) Descriptor

func (*Side) Descriptor() ([]byte, []int)

func (*Side) Equal

func (this *Side) Equal(that interface{}) bool

func (*Side) GetAway

func (m *Side) GetAway() string

func (*Side) GetEventId

func (m *Side) GetEventId() int64

func (*Side) GetHome

func (m *Side) GetHome() string

func (*Side) GetInitiator

func (m *Side) GetInitiator() bool

func (*Side) GetLeagueId

func (m *Side) GetLeagueId() int64

func (*Side) GetLeagueName

func (m *Side) GetLeagueName() string

func (*Side) GetMarketId

func (m *Side) GetMarketId() int64

func (*Side) GetMarketName

func (m *Side) GetMarketName() string

func (*Side) GetNum

func (m *Side) GetNum() int64

func (*Side) GetPrice

func (m *Side) GetPrice() float64

func (*Side) GetPriceId

func (m *Side) GetPriceId() int64

func (*Side) GetServiceId

func (m *Side) GetServiceId() int64

func (*Side) GetServiceName

func (m *Side) GetServiceName() string

func (*Side) GetSportId

func (m *Side) GetSportId() int64

func (*Side) GetSportName

func (m *Side) GetSportName() string

func (*Side) GetStarts

func (m *Side) GetStarts() string

func (*Side) GetUrl

func (m *Side) GetUrl() string

func (*Side) GoString

func (this *Side) GoString() string

func (*Side) Marshal

func (m *Side) Marshal() (dAtA []byte, err error)

func (*Side) MarshalTo

func (m *Side) MarshalTo(dAtA []byte) (int, error)

func (*Side) MarshalToSizedBuffer

func (m *Side) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Side) ProtoMessage

func (*Side) ProtoMessage()

func (*Side) Reset

func (m *Side) Reset()

func (*Side) Size

func (m *Side) Size() (n int)

func (*Side) String

func (this *Side) String() string

func (*Side) Unmarshal

func (m *Side) Unmarshal(dAtA []byte) error

func (*Side) XXX_DiscardUnknown

func (m *Side) XXX_DiscardUnknown()

func (*Side) XXX_Marshal

func (m *Side) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Side) XXX_Merge

func (m *Side) XXX_Merge(src proto.Message)

func (*Side) XXX_Size

func (m *Side) XXX_Size() int

func (*Side) XXX_Unmarshal

func (m *Side) XXX_Unmarshal(b []byte) error

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) Ping

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL