bettorv1alpha

package
v0.0.0-...-05eea06 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2023 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Market_Status_name = map[int32]string{
		0: "STATUS_UNSPECIFIED",
		1: "STATUS_OPEN",
		2: "STATUS_BETS_LOCKED",
		3: "STATUS_SETTLED",
		4: "STATUS_CANCELED",
	}
	Market_Status_value = map[string]int32{
		"STATUS_UNSPECIFIED": 0,
		"STATUS_OPEN":        1,
		"STATUS_BETS_LOCKED": 2,
		"STATUS_SETTLED":     3,
		"STATUS_CANCELED":    4,
	}
)

Enum value maps for Market_Status.

View Source
var File_bettor_v1alpha_bettor_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Bet

type Bet struct {
	Name               string                 `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	CreatedAt          *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt          *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	SettledAt          *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=settled_at,json=settledAt,proto3" json:"settled_at,omitempty"`
	User               string                 `protobuf:"bytes,5,opt,name=user,proto3" json:"user,omitempty"`
	Market             string                 `protobuf:"bytes,6,opt,name=market,proto3" json:"market,omitempty"`
	Centipoints        uint64                 `protobuf:"varint,7,opt,name=centipoints,proto3" json:"centipoints,omitempty"`
	SettledCentipoints uint64                 `protobuf:"varint,8,opt,name=settled_centipoints,json=settledCentipoints,proto3" json:"settled_centipoints,omitempty"`
	// Types that are assignable to Type:
	//
	//	*Bet_Outcome
	Type isBet_Type `protobuf_oneof:"type"`
	// contains filtered or unexported fields
}

A user's bet on a betting market.

func (*Bet) Descriptor deprecated

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

Deprecated: Use Bet.ProtoReflect.Descriptor instead.

func (*Bet) GetCentipoints

func (x *Bet) GetCentipoints() uint64

func (*Bet) GetCreatedAt

func (x *Bet) GetCreatedAt() *timestamppb.Timestamp

func (*Bet) GetMarket

func (x *Bet) GetMarket() string

func (*Bet) GetName

func (x *Bet) GetName() string

func (*Bet) GetOutcome

func (x *Bet) GetOutcome() string

func (*Bet) GetSettledAt

func (x *Bet) GetSettledAt() *timestamppb.Timestamp

func (*Bet) GetSettledCentipoints

func (x *Bet) GetSettledCentipoints() uint64

func (*Bet) GetType

func (m *Bet) GetType() isBet_Type

func (*Bet) GetUpdatedAt

func (x *Bet) GetUpdatedAt() *timestamppb.Timestamp

func (*Bet) GetUser

func (x *Bet) GetUser() string

func (*Bet) ProtoMessage

func (*Bet) ProtoMessage()

func (*Bet) ProtoReflect

func (x *Bet) ProtoReflect() protoreflect.Message

func (*Bet) Reset

func (x *Bet) Reset()

func (*Bet) String

func (x *Bet) String() string

func (*Bet) Validate

func (m *Bet) Validate() error

Validate checks the field values on Bet with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Bet) ValidateAll

func (m *Bet) ValidateAll() error

ValidateAll checks the field values on Bet with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in BetMultiError, or nil if none found.

type BetMultiError

type BetMultiError []error

BetMultiError is an error wrapping multiple validation errors returned by Bet.ValidateAll() if the designated constraints aren't met.

func (BetMultiError) AllErrors

func (m BetMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (BetMultiError) Error

func (m BetMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type BetValidationError

type BetValidationError struct {
	// contains filtered or unexported fields
}

BetValidationError is the validation error returned by Bet.Validate if the designated constraints aren't met.

func (BetValidationError) Cause

func (e BetValidationError) Cause() error

Cause function returns cause value.

func (BetValidationError) Error

func (e BetValidationError) Error() string

Error satisfies the builtin error interface

func (BetValidationError) ErrorName

func (e BetValidationError) ErrorName() string

ErrorName returns error name.

func (BetValidationError) Field

func (e BetValidationError) Field() string

Field function returns field value.

func (BetValidationError) Key

func (e BetValidationError) Key() bool

Key function returns key value.

func (BetValidationError) Reason

func (e BetValidationError) Reason() string

Reason function returns reason value.

type Bet_Outcome

type Bet_Outcome struct {
	Outcome string `protobuf:"bytes,9,opt,name=outcome,proto3,oneof"`
}

type CancelMarketRequest

type CancelMarketRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*CancelMarketRequest) Descriptor deprecated

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

Deprecated: Use CancelMarketRequest.ProtoReflect.Descriptor instead.

func (*CancelMarketRequest) GetName

func (x *CancelMarketRequest) GetName() string

func (*CancelMarketRequest) ProtoMessage

func (*CancelMarketRequest) ProtoMessage()

func (*CancelMarketRequest) ProtoReflect

func (x *CancelMarketRequest) ProtoReflect() protoreflect.Message

func (*CancelMarketRequest) Reset

func (x *CancelMarketRequest) Reset()

func (*CancelMarketRequest) String

func (x *CancelMarketRequest) String() string

func (*CancelMarketRequest) Validate

func (m *CancelMarketRequest) Validate() error

Validate checks the field values on CancelMarketRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CancelMarketRequest) ValidateAll

func (m *CancelMarketRequest) ValidateAll() error

ValidateAll checks the field values on CancelMarketRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CancelMarketRequestMultiError, or nil if none found.

type CancelMarketRequestMultiError

type CancelMarketRequestMultiError []error

CancelMarketRequestMultiError is an error wrapping multiple validation errors returned by CancelMarketRequest.ValidateAll() if the designated constraints aren't met.

func (CancelMarketRequestMultiError) AllErrors

func (m CancelMarketRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CancelMarketRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CancelMarketRequestValidationError

type CancelMarketRequestValidationError struct {
	// contains filtered or unexported fields
}

CancelMarketRequestValidationError is the validation error returned by CancelMarketRequest.Validate if the designated constraints aren't met.

func (CancelMarketRequestValidationError) Cause

Cause function returns cause value.

func (CancelMarketRequestValidationError) Error

Error satisfies the builtin error interface

func (CancelMarketRequestValidationError) ErrorName

ErrorName returns error name.

func (CancelMarketRequestValidationError) Field

Field function returns field value.

func (CancelMarketRequestValidationError) Key

Key function returns key value.

func (CancelMarketRequestValidationError) Reason

Reason function returns reason value.

type CancelMarketResponse

type CancelMarketResponse struct {
	Market *Market `protobuf:"bytes,1,opt,name=market,proto3" json:"market,omitempty"`
	// contains filtered or unexported fields
}

func (*CancelMarketResponse) Descriptor deprecated

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

Deprecated: Use CancelMarketResponse.ProtoReflect.Descriptor instead.

func (*CancelMarketResponse) GetMarket

func (x *CancelMarketResponse) GetMarket() *Market

func (*CancelMarketResponse) ProtoMessage

func (*CancelMarketResponse) ProtoMessage()

func (*CancelMarketResponse) ProtoReflect

func (x *CancelMarketResponse) ProtoReflect() protoreflect.Message

func (*CancelMarketResponse) Reset

func (x *CancelMarketResponse) Reset()

func (*CancelMarketResponse) String

func (x *CancelMarketResponse) String() string

func (*CancelMarketResponse) Validate

func (m *CancelMarketResponse) Validate() error

Validate checks the field values on CancelMarketResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CancelMarketResponse) ValidateAll

func (m *CancelMarketResponse) ValidateAll() error

ValidateAll checks the field values on CancelMarketResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CancelMarketResponseMultiError, or nil if none found.

type CancelMarketResponseMultiError

type CancelMarketResponseMultiError []error

CancelMarketResponseMultiError is an error wrapping multiple validation errors returned by CancelMarketResponse.ValidateAll() if the designated constraints aren't met.

func (CancelMarketResponseMultiError) AllErrors

func (m CancelMarketResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CancelMarketResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CancelMarketResponseValidationError

type CancelMarketResponseValidationError struct {
	// contains filtered or unexported fields
}

CancelMarketResponseValidationError is the validation error returned by CancelMarketResponse.Validate if the designated constraints aren't met.

func (CancelMarketResponseValidationError) Cause

Cause function returns cause value.

func (CancelMarketResponseValidationError) Error

Error satisfies the builtin error interface

func (CancelMarketResponseValidationError) ErrorName

ErrorName returns error name.

func (CancelMarketResponseValidationError) Field

Field function returns field value.

func (CancelMarketResponseValidationError) Key

Key function returns key value.

func (CancelMarketResponseValidationError) Reason

Reason function returns reason value.

type CreateBetRequest

type CreateBetRequest struct {
	Book string `protobuf:"bytes,1,opt,name=book,proto3" json:"book,omitempty"`
	Bet  *Bet   `protobuf:"bytes,2,opt,name=bet,proto3" json:"bet,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateBetRequest) Descriptor deprecated

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

Deprecated: Use CreateBetRequest.ProtoReflect.Descriptor instead.

func (*CreateBetRequest) GetBet

func (x *CreateBetRequest) GetBet() *Bet

func (*CreateBetRequest) GetBook

func (x *CreateBetRequest) GetBook() string

func (*CreateBetRequest) ProtoMessage

func (*CreateBetRequest) ProtoMessage()

func (*CreateBetRequest) ProtoReflect

func (x *CreateBetRequest) ProtoReflect() protoreflect.Message

func (*CreateBetRequest) Reset

func (x *CreateBetRequest) Reset()

func (*CreateBetRequest) String

func (x *CreateBetRequest) String() string

func (*CreateBetRequest) Validate

func (m *CreateBetRequest) Validate() error

Validate checks the field values on CreateBetRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CreateBetRequest) ValidateAll

func (m *CreateBetRequest) ValidateAll() error

ValidateAll checks the field values on CreateBetRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateBetRequestMultiError, or nil if none found.

type CreateBetRequestMultiError

type CreateBetRequestMultiError []error

CreateBetRequestMultiError is an error wrapping multiple validation errors returned by CreateBetRequest.ValidateAll() if the designated constraints aren't met.

func (CreateBetRequestMultiError) AllErrors

func (m CreateBetRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateBetRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreateBetRequestValidationError

type CreateBetRequestValidationError struct {
	// contains filtered or unexported fields
}

CreateBetRequestValidationError is the validation error returned by CreateBetRequest.Validate if the designated constraints aren't met.

func (CreateBetRequestValidationError) Cause

Cause function returns cause value.

func (CreateBetRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateBetRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateBetRequestValidationError) Field

Field function returns field value.

func (CreateBetRequestValidationError) Key

Key function returns key value.

func (CreateBetRequestValidationError) Reason

Reason function returns reason value.

type CreateBetResponse

type CreateBetResponse struct {
	Bet *Bet `protobuf:"bytes,1,opt,name=bet,proto3" json:"bet,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateBetResponse) Descriptor deprecated

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

Deprecated: Use CreateBetResponse.ProtoReflect.Descriptor instead.

func (*CreateBetResponse) GetBet

func (x *CreateBetResponse) GetBet() *Bet

func (*CreateBetResponse) ProtoMessage

func (*CreateBetResponse) ProtoMessage()

func (*CreateBetResponse) ProtoReflect

func (x *CreateBetResponse) ProtoReflect() protoreflect.Message

func (*CreateBetResponse) Reset

func (x *CreateBetResponse) Reset()

func (*CreateBetResponse) String

func (x *CreateBetResponse) String() string

func (*CreateBetResponse) Validate

func (m *CreateBetResponse) Validate() error

Validate checks the field values on CreateBetResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CreateBetResponse) ValidateAll

func (m *CreateBetResponse) ValidateAll() error

ValidateAll checks the field values on CreateBetResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateBetResponseMultiError, or nil if none found.

type CreateBetResponseMultiError

type CreateBetResponseMultiError []error

CreateBetResponseMultiError is an error wrapping multiple validation errors returned by CreateBetResponse.ValidateAll() if the designated constraints aren't met.

func (CreateBetResponseMultiError) AllErrors

func (m CreateBetResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateBetResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreateBetResponseValidationError

type CreateBetResponseValidationError struct {
	// contains filtered or unexported fields
}

CreateBetResponseValidationError is the validation error returned by CreateBetResponse.Validate if the designated constraints aren't met.

func (CreateBetResponseValidationError) Cause

Cause function returns cause value.

func (CreateBetResponseValidationError) Error

Error satisfies the builtin error interface

func (CreateBetResponseValidationError) ErrorName

ErrorName returns error name.

func (CreateBetResponseValidationError) Field

Field function returns field value.

func (CreateBetResponseValidationError) Key

Key function returns key value.

func (CreateBetResponseValidationError) Reason

Reason function returns reason value.

type CreateMarketRequest

type CreateMarketRequest struct {
	Book   string  `protobuf:"bytes,1,opt,name=book,proto3" json:"book,omitempty"`
	Market *Market `protobuf:"bytes,2,opt,name=market,proto3" json:"market,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateMarketRequest) Descriptor deprecated

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

Deprecated: Use CreateMarketRequest.ProtoReflect.Descriptor instead.

func (*CreateMarketRequest) GetBook

func (x *CreateMarketRequest) GetBook() string

func (*CreateMarketRequest) GetMarket

func (x *CreateMarketRequest) GetMarket() *Market

func (*CreateMarketRequest) ProtoMessage

func (*CreateMarketRequest) ProtoMessage()

func (*CreateMarketRequest) ProtoReflect

func (x *CreateMarketRequest) ProtoReflect() protoreflect.Message

func (*CreateMarketRequest) Reset

func (x *CreateMarketRequest) Reset()

func (*CreateMarketRequest) String

func (x *CreateMarketRequest) String() string

func (*CreateMarketRequest) Validate

func (m *CreateMarketRequest) Validate() error

Validate checks the field values on CreateMarketRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CreateMarketRequest) ValidateAll

func (m *CreateMarketRequest) ValidateAll() error

ValidateAll checks the field values on CreateMarketRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateMarketRequestMultiError, or nil if none found.

type CreateMarketRequestMultiError

type CreateMarketRequestMultiError []error

CreateMarketRequestMultiError is an error wrapping multiple validation errors returned by CreateMarketRequest.ValidateAll() if the designated constraints aren't met.

func (CreateMarketRequestMultiError) AllErrors

func (m CreateMarketRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateMarketRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreateMarketRequestValidationError

type CreateMarketRequestValidationError struct {
	// contains filtered or unexported fields
}

CreateMarketRequestValidationError is the validation error returned by CreateMarketRequest.Validate if the designated constraints aren't met.

func (CreateMarketRequestValidationError) Cause

Cause function returns cause value.

func (CreateMarketRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateMarketRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateMarketRequestValidationError) Field

Field function returns field value.

func (CreateMarketRequestValidationError) Key

Key function returns key value.

func (CreateMarketRequestValidationError) Reason

Reason function returns reason value.

type CreateMarketResponse

type CreateMarketResponse struct {
	Market *Market `protobuf:"bytes,1,opt,name=market,proto3" json:"market,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateMarketResponse) Descriptor deprecated

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

Deprecated: Use CreateMarketResponse.ProtoReflect.Descriptor instead.

func (*CreateMarketResponse) GetMarket

func (x *CreateMarketResponse) GetMarket() *Market

func (*CreateMarketResponse) ProtoMessage

func (*CreateMarketResponse) ProtoMessage()

func (*CreateMarketResponse) ProtoReflect

func (x *CreateMarketResponse) ProtoReflect() protoreflect.Message

func (*CreateMarketResponse) Reset

func (x *CreateMarketResponse) Reset()

func (*CreateMarketResponse) String

func (x *CreateMarketResponse) String() string

func (*CreateMarketResponse) Validate

func (m *CreateMarketResponse) Validate() error

Validate checks the field values on CreateMarketResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CreateMarketResponse) ValidateAll

func (m *CreateMarketResponse) ValidateAll() error

ValidateAll checks the field values on CreateMarketResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateMarketResponseMultiError, or nil if none found.

type CreateMarketResponseMultiError

type CreateMarketResponseMultiError []error

CreateMarketResponseMultiError is an error wrapping multiple validation errors returned by CreateMarketResponse.ValidateAll() if the designated constraints aren't met.

func (CreateMarketResponseMultiError) AllErrors

func (m CreateMarketResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateMarketResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreateMarketResponseValidationError

type CreateMarketResponseValidationError struct {
	// contains filtered or unexported fields
}

CreateMarketResponseValidationError is the validation error returned by CreateMarketResponse.Validate if the designated constraints aren't met.

func (CreateMarketResponseValidationError) Cause

Cause function returns cause value.

func (CreateMarketResponseValidationError) Error

Error satisfies the builtin error interface

func (CreateMarketResponseValidationError) ErrorName

ErrorName returns error name.

func (CreateMarketResponseValidationError) Field

Field function returns field value.

func (CreateMarketResponseValidationError) Key

Key function returns key value.

func (CreateMarketResponseValidationError) Reason

Reason function returns reason value.

type CreateUserRequest

type CreateUserRequest struct {
	Book string `protobuf:"bytes,1,opt,name=book,proto3" json:"book,omitempty"`
	User *User  `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateUserRequest) Descriptor deprecated

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

Deprecated: Use CreateUserRequest.ProtoReflect.Descriptor instead.

func (*CreateUserRequest) GetBook

func (x *CreateUserRequest) GetBook() string

func (*CreateUserRequest) GetUser

func (x *CreateUserRequest) GetUser() *User

func (*CreateUserRequest) ProtoMessage

func (*CreateUserRequest) ProtoMessage()

func (*CreateUserRequest) ProtoReflect

func (x *CreateUserRequest) ProtoReflect() protoreflect.Message

func (*CreateUserRequest) Reset

func (x *CreateUserRequest) Reset()

func (*CreateUserRequest) String

func (x *CreateUserRequest) String() string

func (*CreateUserRequest) Validate

func (m *CreateUserRequest) Validate() error

Validate checks the field values on CreateUserRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CreateUserRequest) ValidateAll

func (m *CreateUserRequest) ValidateAll() error

ValidateAll checks the field values on CreateUserRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateUserRequestMultiError, or nil if none found.

type CreateUserRequestMultiError

type CreateUserRequestMultiError []error

CreateUserRequestMultiError is an error wrapping multiple validation errors returned by CreateUserRequest.ValidateAll() if the designated constraints aren't met.

func (CreateUserRequestMultiError) AllErrors

func (m CreateUserRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateUserRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreateUserRequestValidationError

type CreateUserRequestValidationError struct {
	// contains filtered or unexported fields
}

CreateUserRequestValidationError is the validation error returned by CreateUserRequest.Validate if the designated constraints aren't met.

func (CreateUserRequestValidationError) Cause

Cause function returns cause value.

func (CreateUserRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateUserRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateUserRequestValidationError) Field

Field function returns field value.

func (CreateUserRequestValidationError) Key

Key function returns key value.

func (CreateUserRequestValidationError) Reason

Reason function returns reason value.

type CreateUserResponse

type CreateUserResponse struct {
	User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateUserResponse) Descriptor deprecated

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

Deprecated: Use CreateUserResponse.ProtoReflect.Descriptor instead.

func (*CreateUserResponse) GetUser

func (x *CreateUserResponse) GetUser() *User

func (*CreateUserResponse) ProtoMessage

func (*CreateUserResponse) ProtoMessage()

func (*CreateUserResponse) ProtoReflect

func (x *CreateUserResponse) ProtoReflect() protoreflect.Message

func (*CreateUserResponse) Reset

func (x *CreateUserResponse) Reset()

func (*CreateUserResponse) String

func (x *CreateUserResponse) String() string

func (*CreateUserResponse) Validate

func (m *CreateUserResponse) Validate() error

Validate checks the field values on CreateUserResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CreateUserResponse) ValidateAll

func (m *CreateUserResponse) ValidateAll() error

ValidateAll checks the field values on CreateUserResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateUserResponseMultiError, or nil if none found.

type CreateUserResponseMultiError

type CreateUserResponseMultiError []error

CreateUserResponseMultiError is an error wrapping multiple validation errors returned by CreateUserResponse.ValidateAll() if the designated constraints aren't met.

func (CreateUserResponseMultiError) AllErrors

func (m CreateUserResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateUserResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreateUserResponseValidationError

type CreateUserResponseValidationError struct {
	// contains filtered or unexported fields
}

CreateUserResponseValidationError is the validation error returned by CreateUserResponse.Validate if the designated constraints aren't met.

func (CreateUserResponseValidationError) Cause

Cause function returns cause value.

func (CreateUserResponseValidationError) Error

Error satisfies the builtin error interface

func (CreateUserResponseValidationError) ErrorName

ErrorName returns error name.

func (CreateUserResponseValidationError) Field

Field function returns field value.

func (CreateUserResponseValidationError) Key

Key function returns key value.

func (CreateUserResponseValidationError) Reason

Reason function returns reason value.

type GetBetRequest

type GetBetRequest struct {
	Bet string `protobuf:"bytes,1,opt,name=bet,proto3" json:"bet,omitempty"`
	// contains filtered or unexported fields
}

func (*GetBetRequest) Descriptor deprecated

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

Deprecated: Use GetBetRequest.ProtoReflect.Descriptor instead.

func (*GetBetRequest) GetBet

func (x *GetBetRequest) GetBet() string

func (*GetBetRequest) ProtoMessage

func (*GetBetRequest) ProtoMessage()

func (*GetBetRequest) ProtoReflect

func (x *GetBetRequest) ProtoReflect() protoreflect.Message

func (*GetBetRequest) Reset

func (x *GetBetRequest) Reset()

func (*GetBetRequest) String

func (x *GetBetRequest) String() string

func (*GetBetRequest) Validate

func (m *GetBetRequest) Validate() error

Validate checks the field values on GetBetRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetBetRequest) ValidateAll

func (m *GetBetRequest) ValidateAll() error

ValidateAll checks the field values on GetBetRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetBetRequestMultiError, or nil if none found.

type GetBetRequestMultiError

type GetBetRequestMultiError []error

GetBetRequestMultiError is an error wrapping multiple validation errors returned by GetBetRequest.ValidateAll() if the designated constraints aren't met.

func (GetBetRequestMultiError) AllErrors

func (m GetBetRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetBetRequestMultiError) Error

func (m GetBetRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type GetBetRequestValidationError

type GetBetRequestValidationError struct {
	// contains filtered or unexported fields
}

GetBetRequestValidationError is the validation error returned by GetBetRequest.Validate if the designated constraints aren't met.

func (GetBetRequestValidationError) Cause

Cause function returns cause value.

func (GetBetRequestValidationError) Error

Error satisfies the builtin error interface

func (GetBetRequestValidationError) ErrorName

func (e GetBetRequestValidationError) ErrorName() string

ErrorName returns error name.

func (GetBetRequestValidationError) Field

Field function returns field value.

func (GetBetRequestValidationError) Key

Key function returns key value.

func (GetBetRequestValidationError) Reason

Reason function returns reason value.

type GetBetResponse

type GetBetResponse struct {
	Bet *Bet `protobuf:"bytes,1,opt,name=bet,proto3" json:"bet,omitempty"`
	// contains filtered or unexported fields
}

func (*GetBetResponse) Descriptor deprecated

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

Deprecated: Use GetBetResponse.ProtoReflect.Descriptor instead.

func (*GetBetResponse) GetBet

func (x *GetBetResponse) GetBet() *Bet

func (*GetBetResponse) ProtoMessage

func (*GetBetResponse) ProtoMessage()

func (*GetBetResponse) ProtoReflect

func (x *GetBetResponse) ProtoReflect() protoreflect.Message

func (*GetBetResponse) Reset

func (x *GetBetResponse) Reset()

func (*GetBetResponse) String

func (x *GetBetResponse) String() string

func (*GetBetResponse) Validate

func (m *GetBetResponse) Validate() error

Validate checks the field values on GetBetResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetBetResponse) ValidateAll

func (m *GetBetResponse) ValidateAll() error

ValidateAll checks the field values on GetBetResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetBetResponseMultiError, or nil if none found.

type GetBetResponseMultiError

type GetBetResponseMultiError []error

GetBetResponseMultiError is an error wrapping multiple validation errors returned by GetBetResponse.ValidateAll() if the designated constraints aren't met.

func (GetBetResponseMultiError) AllErrors

func (m GetBetResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetBetResponseMultiError) Error

func (m GetBetResponseMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type GetBetResponseValidationError

type GetBetResponseValidationError struct {
	// contains filtered or unexported fields
}

GetBetResponseValidationError is the validation error returned by GetBetResponse.Validate if the designated constraints aren't met.

func (GetBetResponseValidationError) Cause

Cause function returns cause value.

func (GetBetResponseValidationError) Error

Error satisfies the builtin error interface

func (GetBetResponseValidationError) ErrorName

func (e GetBetResponseValidationError) ErrorName() string

ErrorName returns error name.

func (GetBetResponseValidationError) Field

Field function returns field value.

func (GetBetResponseValidationError) Key

Key function returns key value.

func (GetBetResponseValidationError) Reason

Reason function returns reason value.

type GetMarketRequest

type GetMarketRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*GetMarketRequest) Descriptor deprecated

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

Deprecated: Use GetMarketRequest.ProtoReflect.Descriptor instead.

func (*GetMarketRequest) GetName

func (x *GetMarketRequest) GetName() string

func (*GetMarketRequest) ProtoMessage

func (*GetMarketRequest) ProtoMessage()

func (*GetMarketRequest) ProtoReflect

func (x *GetMarketRequest) ProtoReflect() protoreflect.Message

func (*GetMarketRequest) Reset

func (x *GetMarketRequest) Reset()

func (*GetMarketRequest) String

func (x *GetMarketRequest) String() string

func (*GetMarketRequest) Validate

func (m *GetMarketRequest) Validate() error

Validate checks the field values on GetMarketRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetMarketRequest) ValidateAll

func (m *GetMarketRequest) ValidateAll() error

ValidateAll checks the field values on GetMarketRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetMarketRequestMultiError, or nil if none found.

type GetMarketRequestMultiError

type GetMarketRequestMultiError []error

GetMarketRequestMultiError is an error wrapping multiple validation errors returned by GetMarketRequest.ValidateAll() if the designated constraints aren't met.

func (GetMarketRequestMultiError) AllErrors

func (m GetMarketRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetMarketRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetMarketRequestValidationError

type GetMarketRequestValidationError struct {
	// contains filtered or unexported fields
}

GetMarketRequestValidationError is the validation error returned by GetMarketRequest.Validate if the designated constraints aren't met.

func (GetMarketRequestValidationError) Cause

Cause function returns cause value.

func (GetMarketRequestValidationError) Error

Error satisfies the builtin error interface

func (GetMarketRequestValidationError) ErrorName

ErrorName returns error name.

func (GetMarketRequestValidationError) Field

Field function returns field value.

func (GetMarketRequestValidationError) Key

Key function returns key value.

func (GetMarketRequestValidationError) Reason

Reason function returns reason value.

type GetMarketResponse

type GetMarketResponse struct {
	Market *Market `protobuf:"bytes,1,opt,name=market,proto3" json:"market,omitempty"`
	// contains filtered or unexported fields
}

func (*GetMarketResponse) Descriptor deprecated

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

Deprecated: Use GetMarketResponse.ProtoReflect.Descriptor instead.

func (*GetMarketResponse) GetMarket

func (x *GetMarketResponse) GetMarket() *Market

func (*GetMarketResponse) ProtoMessage

func (*GetMarketResponse) ProtoMessage()

func (*GetMarketResponse) ProtoReflect

func (x *GetMarketResponse) ProtoReflect() protoreflect.Message

func (*GetMarketResponse) Reset

func (x *GetMarketResponse) Reset()

func (*GetMarketResponse) String

func (x *GetMarketResponse) String() string

func (*GetMarketResponse) Validate

func (m *GetMarketResponse) Validate() error

Validate checks the field values on GetMarketResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetMarketResponse) ValidateAll

func (m *GetMarketResponse) ValidateAll() error

ValidateAll checks the field values on GetMarketResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetMarketResponseMultiError, or nil if none found.

type GetMarketResponseMultiError

type GetMarketResponseMultiError []error

GetMarketResponseMultiError is an error wrapping multiple validation errors returned by GetMarketResponse.ValidateAll() if the designated constraints aren't met.

func (GetMarketResponseMultiError) AllErrors

func (m GetMarketResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetMarketResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetMarketResponseValidationError

type GetMarketResponseValidationError struct {
	// contains filtered or unexported fields
}

GetMarketResponseValidationError is the validation error returned by GetMarketResponse.Validate if the designated constraints aren't met.

func (GetMarketResponseValidationError) Cause

Cause function returns cause value.

func (GetMarketResponseValidationError) Error

Error satisfies the builtin error interface

func (GetMarketResponseValidationError) ErrorName

ErrorName returns error name.

func (GetMarketResponseValidationError) Field

Field function returns field value.

func (GetMarketResponseValidationError) Key

Key function returns key value.

func (GetMarketResponseValidationError) Reason

Reason function returns reason value.

type GetUserByUsernameRequest

type GetUserByUsernameRequest struct {
	Book     string `protobuf:"bytes,1,opt,name=book,proto3" json:"book,omitempty"`
	Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserByUsernameRequest) Descriptor deprecated

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

Deprecated: Use GetUserByUsernameRequest.ProtoReflect.Descriptor instead.

func (*GetUserByUsernameRequest) GetBook

func (x *GetUserByUsernameRequest) GetBook() string

func (*GetUserByUsernameRequest) GetUsername

func (x *GetUserByUsernameRequest) GetUsername() string

func (*GetUserByUsernameRequest) ProtoMessage

func (*GetUserByUsernameRequest) ProtoMessage()

func (*GetUserByUsernameRequest) ProtoReflect

func (x *GetUserByUsernameRequest) ProtoReflect() protoreflect.Message

func (*GetUserByUsernameRequest) Reset

func (x *GetUserByUsernameRequest) Reset()

func (*GetUserByUsernameRequest) String

func (x *GetUserByUsernameRequest) String() string

func (*GetUserByUsernameRequest) Validate

func (m *GetUserByUsernameRequest) Validate() error

Validate checks the field values on GetUserByUsernameRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetUserByUsernameRequest) ValidateAll

func (m *GetUserByUsernameRequest) ValidateAll() error

ValidateAll checks the field values on GetUserByUsernameRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetUserByUsernameRequestMultiError, or nil if none found.

type GetUserByUsernameRequestMultiError

type GetUserByUsernameRequestMultiError []error

GetUserByUsernameRequestMultiError is an error wrapping multiple validation errors returned by GetUserByUsernameRequest.ValidateAll() if the designated constraints aren't met.

func (GetUserByUsernameRequestMultiError) AllErrors

func (m GetUserByUsernameRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetUserByUsernameRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetUserByUsernameRequestValidationError

type GetUserByUsernameRequestValidationError struct {
	// contains filtered or unexported fields
}

GetUserByUsernameRequestValidationError is the validation error returned by GetUserByUsernameRequest.Validate if the designated constraints aren't met.

func (GetUserByUsernameRequestValidationError) Cause

Cause function returns cause value.

func (GetUserByUsernameRequestValidationError) Error

Error satisfies the builtin error interface

func (GetUserByUsernameRequestValidationError) ErrorName

ErrorName returns error name.

func (GetUserByUsernameRequestValidationError) Field

Field function returns field value.

func (GetUserByUsernameRequestValidationError) Key

Key function returns key value.

func (GetUserByUsernameRequestValidationError) Reason

Reason function returns reason value.

type GetUserByUsernameResponse

type GetUserByUsernameResponse struct {
	User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserByUsernameResponse) Descriptor deprecated

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

Deprecated: Use GetUserByUsernameResponse.ProtoReflect.Descriptor instead.

func (*GetUserByUsernameResponse) GetUser

func (x *GetUserByUsernameResponse) GetUser() *User

func (*GetUserByUsernameResponse) ProtoMessage

func (*GetUserByUsernameResponse) ProtoMessage()

func (*GetUserByUsernameResponse) ProtoReflect

func (*GetUserByUsernameResponse) Reset

func (x *GetUserByUsernameResponse) Reset()

func (*GetUserByUsernameResponse) String

func (x *GetUserByUsernameResponse) String() string

func (*GetUserByUsernameResponse) Validate

func (m *GetUserByUsernameResponse) Validate() error

Validate checks the field values on GetUserByUsernameResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetUserByUsernameResponse) ValidateAll

func (m *GetUserByUsernameResponse) ValidateAll() error

ValidateAll checks the field values on GetUserByUsernameResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetUserByUsernameResponseMultiError, or nil if none found.

type GetUserByUsernameResponseMultiError

type GetUserByUsernameResponseMultiError []error

GetUserByUsernameResponseMultiError is an error wrapping multiple validation errors returned by GetUserByUsernameResponse.ValidateAll() if the designated constraints aren't met.

func (GetUserByUsernameResponseMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (GetUserByUsernameResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetUserByUsernameResponseValidationError

type GetUserByUsernameResponseValidationError struct {
	// contains filtered or unexported fields
}

GetUserByUsernameResponseValidationError is the validation error returned by GetUserByUsernameResponse.Validate if the designated constraints aren't met.

func (GetUserByUsernameResponseValidationError) Cause

Cause function returns cause value.

func (GetUserByUsernameResponseValidationError) Error

Error satisfies the builtin error interface

func (GetUserByUsernameResponseValidationError) ErrorName

ErrorName returns error name.

func (GetUserByUsernameResponseValidationError) Field

Field function returns field value.

func (GetUserByUsernameResponseValidationError) Key

Key function returns key value.

func (GetUserByUsernameResponseValidationError) Reason

Reason function returns reason value.

type GetUserRequest

type GetUserRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserRequest) Descriptor deprecated

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

Deprecated: Use GetUserRequest.ProtoReflect.Descriptor instead.

func (*GetUserRequest) GetName

func (x *GetUserRequest) GetName() string

func (*GetUserRequest) ProtoMessage

func (*GetUserRequest) ProtoMessage()

func (*GetUserRequest) ProtoReflect

func (x *GetUserRequest) ProtoReflect() protoreflect.Message

func (*GetUserRequest) Reset

func (x *GetUserRequest) Reset()

func (*GetUserRequest) String

func (x *GetUserRequest) String() string

func (*GetUserRequest) Validate

func (m *GetUserRequest) Validate() error

Validate checks the field values on GetUserRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetUserRequest) ValidateAll

func (m *GetUserRequest) ValidateAll() error

ValidateAll checks the field values on GetUserRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetUserRequestMultiError, or nil if none found.

type GetUserRequestMultiError

type GetUserRequestMultiError []error

GetUserRequestMultiError is an error wrapping multiple validation errors returned by GetUserRequest.ValidateAll() if the designated constraints aren't met.

func (GetUserRequestMultiError) AllErrors

func (m GetUserRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetUserRequestMultiError) Error

func (m GetUserRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type GetUserRequestValidationError

type GetUserRequestValidationError struct {
	// contains filtered or unexported fields
}

GetUserRequestValidationError is the validation error returned by GetUserRequest.Validate if the designated constraints aren't met.

func (GetUserRequestValidationError) Cause

Cause function returns cause value.

func (GetUserRequestValidationError) Error

Error satisfies the builtin error interface

func (GetUserRequestValidationError) ErrorName

func (e GetUserRequestValidationError) ErrorName() string

ErrorName returns error name.

func (GetUserRequestValidationError) Field

Field function returns field value.

func (GetUserRequestValidationError) Key

Key function returns key value.

func (GetUserRequestValidationError) Reason

Reason function returns reason value.

type GetUserResponse

type GetUserResponse struct {
	User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserResponse) Descriptor deprecated

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

Deprecated: Use GetUserResponse.ProtoReflect.Descriptor instead.

func (*GetUserResponse) GetUser

func (x *GetUserResponse) GetUser() *User

func (*GetUserResponse) ProtoMessage

func (*GetUserResponse) ProtoMessage()

func (*GetUserResponse) ProtoReflect

func (x *GetUserResponse) ProtoReflect() protoreflect.Message

func (*GetUserResponse) Reset

func (x *GetUserResponse) Reset()

func (*GetUserResponse) String

func (x *GetUserResponse) String() string

func (*GetUserResponse) Validate

func (m *GetUserResponse) Validate() error

Validate checks the field values on GetUserResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetUserResponse) ValidateAll

func (m *GetUserResponse) ValidateAll() error

ValidateAll checks the field values on GetUserResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetUserResponseMultiError, or nil if none found.

type GetUserResponseMultiError

type GetUserResponseMultiError []error

GetUserResponseMultiError is an error wrapping multiple validation errors returned by GetUserResponse.ValidateAll() if the designated constraints aren't met.

func (GetUserResponseMultiError) AllErrors

func (m GetUserResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetUserResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetUserResponseValidationError

type GetUserResponseValidationError struct {
	// contains filtered or unexported fields
}

GetUserResponseValidationError is the validation error returned by GetUserResponse.Validate if the designated constraints aren't met.

func (GetUserResponseValidationError) Cause

Cause function returns cause value.

func (GetUserResponseValidationError) Error

Error satisfies the builtin error interface

func (GetUserResponseValidationError) ErrorName

func (e GetUserResponseValidationError) ErrorName() string

ErrorName returns error name.

func (GetUserResponseValidationError) Field

Field function returns field value.

func (GetUserResponseValidationError) Key

Key function returns key value.

func (GetUserResponseValidationError) Reason

Reason function returns reason value.

type ListBetsRequest

type ListBetsRequest struct {
	PageSize       int32  `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	PageToken      string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	Book           string `protobuf:"bytes,3,opt,name=book,proto3" json:"book,omitempty"`
	User           string `protobuf:"bytes,4,opt,name=user,proto3" json:"user,omitempty"`
	Market         string `protobuf:"bytes,5,opt,name=market,proto3" json:"market,omitempty"`
	ExcludeSettled bool   `protobuf:"varint,6,opt,name=exclude_settled,json=excludeSettled,proto3" json:"exclude_settled,omitempty"`
	// contains filtered or unexported fields
}

func StripListBetsPagination

func StripListBetsPagination(in *ListBetsRequest) *ListBetsRequest

StripListBetsPagination assists verifying next page tokens.

func (*ListBetsRequest) Descriptor deprecated

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

Deprecated: Use ListBetsRequest.ProtoReflect.Descriptor instead.

func (*ListBetsRequest) GetBook

func (x *ListBetsRequest) GetBook() string

func (*ListBetsRequest) GetExcludeSettled

func (x *ListBetsRequest) GetExcludeSettled() bool

func (*ListBetsRequest) GetMarket

func (x *ListBetsRequest) GetMarket() string

func (*ListBetsRequest) GetPageSize

func (x *ListBetsRequest) GetPageSize() int32

func (*ListBetsRequest) GetPageToken

func (x *ListBetsRequest) GetPageToken() string

func (*ListBetsRequest) GetUser

func (x *ListBetsRequest) GetUser() string

func (*ListBetsRequest) ProtoMessage

func (*ListBetsRequest) ProtoMessage()

func (*ListBetsRequest) ProtoReflect

func (x *ListBetsRequest) ProtoReflect() protoreflect.Message

func (*ListBetsRequest) Reset

func (x *ListBetsRequest) Reset()

func (*ListBetsRequest) String

func (x *ListBetsRequest) String() string

func (*ListBetsRequest) Validate

func (m *ListBetsRequest) Validate() error

Validate checks the field values on ListBetsRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ListBetsRequest) ValidateAll

func (m *ListBetsRequest) ValidateAll() error

ValidateAll checks the field values on ListBetsRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListBetsRequestMultiError, or nil if none found.

type ListBetsRequestMultiError

type ListBetsRequestMultiError []error

ListBetsRequestMultiError is an error wrapping multiple validation errors returned by ListBetsRequest.ValidateAll() if the designated constraints aren't met.

func (ListBetsRequestMultiError) AllErrors

func (m ListBetsRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListBetsRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListBetsRequestValidationError

type ListBetsRequestValidationError struct {
	// contains filtered or unexported fields
}

ListBetsRequestValidationError is the validation error returned by ListBetsRequest.Validate if the designated constraints aren't met.

func (ListBetsRequestValidationError) Cause

Cause function returns cause value.

func (ListBetsRequestValidationError) Error

Error satisfies the builtin error interface

func (ListBetsRequestValidationError) ErrorName

func (e ListBetsRequestValidationError) ErrorName() string

ErrorName returns error name.

func (ListBetsRequestValidationError) Field

Field function returns field value.

func (ListBetsRequestValidationError) Key

Key function returns key value.

func (ListBetsRequestValidationError) Reason

Reason function returns reason value.

type ListBetsResponse

type ListBetsResponse struct {
	Bets          []*Bet `protobuf:"bytes,1,rep,name=bets,proto3" json:"bets,omitempty"`
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListBetsResponse) Descriptor deprecated

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

Deprecated: Use ListBetsResponse.ProtoReflect.Descriptor instead.

func (*ListBetsResponse) GetBets

func (x *ListBetsResponse) GetBets() []*Bet

func (*ListBetsResponse) GetNextPageToken

func (x *ListBetsResponse) GetNextPageToken() string

func (*ListBetsResponse) ProtoMessage

func (*ListBetsResponse) ProtoMessage()

func (*ListBetsResponse) ProtoReflect

func (x *ListBetsResponse) ProtoReflect() protoreflect.Message

func (*ListBetsResponse) Reset

func (x *ListBetsResponse) Reset()

func (*ListBetsResponse) String

func (x *ListBetsResponse) String() string

func (*ListBetsResponse) Validate

func (m *ListBetsResponse) Validate() error

Validate checks the field values on ListBetsResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ListBetsResponse) ValidateAll

func (m *ListBetsResponse) ValidateAll() error

ValidateAll checks the field values on ListBetsResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListBetsResponseMultiError, or nil if none found.

type ListBetsResponseMultiError

type ListBetsResponseMultiError []error

ListBetsResponseMultiError is an error wrapping multiple validation errors returned by ListBetsResponse.ValidateAll() if the designated constraints aren't met.

func (ListBetsResponseMultiError) AllErrors

func (m ListBetsResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListBetsResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListBetsResponseValidationError

type ListBetsResponseValidationError struct {
	// contains filtered or unexported fields
}

ListBetsResponseValidationError is the validation error returned by ListBetsResponse.Validate if the designated constraints aren't met.

func (ListBetsResponseValidationError) Cause

Cause function returns cause value.

func (ListBetsResponseValidationError) Error

Error satisfies the builtin error interface

func (ListBetsResponseValidationError) ErrorName

ErrorName returns error name.

func (ListBetsResponseValidationError) Field

Field function returns field value.

func (ListBetsResponseValidationError) Key

Key function returns key value.

func (ListBetsResponseValidationError) Reason

Reason function returns reason value.

type ListMarketsRequest

type ListMarketsRequest struct {
	PageSize  int32         `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	PageToken string        `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	Book      string        `protobuf:"bytes,3,opt,name=book,proto3" json:"book,omitempty"`
	Status    Market_Status `protobuf:"varint,4,opt,name=status,proto3,enum=bettor.v1alpha.Market_Status" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func StripListMarketsPagination

func StripListMarketsPagination(in *ListMarketsRequest) *ListMarketsRequest

StripListMarketsPagination assists verifying next page tokens.

func (*ListMarketsRequest) Descriptor deprecated

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

Deprecated: Use ListMarketsRequest.ProtoReflect.Descriptor instead.

func (*ListMarketsRequest) GetBook

func (x *ListMarketsRequest) GetBook() string

func (*ListMarketsRequest) GetPageSize

func (x *ListMarketsRequest) GetPageSize() int32

func (*ListMarketsRequest) GetPageToken

func (x *ListMarketsRequest) GetPageToken() string

func (*ListMarketsRequest) GetStatus

func (x *ListMarketsRequest) GetStatus() Market_Status

func (*ListMarketsRequest) ProtoMessage

func (*ListMarketsRequest) ProtoMessage()

func (*ListMarketsRequest) ProtoReflect

func (x *ListMarketsRequest) ProtoReflect() protoreflect.Message

func (*ListMarketsRequest) Reset

func (x *ListMarketsRequest) Reset()

func (*ListMarketsRequest) String

func (x *ListMarketsRequest) String() string

func (*ListMarketsRequest) Validate

func (m *ListMarketsRequest) Validate() error

Validate checks the field values on ListMarketsRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ListMarketsRequest) ValidateAll

func (m *ListMarketsRequest) ValidateAll() error

ValidateAll checks the field values on ListMarketsRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListMarketsRequestMultiError, or nil if none found.

type ListMarketsRequestMultiError

type ListMarketsRequestMultiError []error

ListMarketsRequestMultiError is an error wrapping multiple validation errors returned by ListMarketsRequest.ValidateAll() if the designated constraints aren't met.

func (ListMarketsRequestMultiError) AllErrors

func (m ListMarketsRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListMarketsRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListMarketsRequestValidationError

type ListMarketsRequestValidationError struct {
	// contains filtered or unexported fields
}

ListMarketsRequestValidationError is the validation error returned by ListMarketsRequest.Validate if the designated constraints aren't met.

func (ListMarketsRequestValidationError) Cause

Cause function returns cause value.

func (ListMarketsRequestValidationError) Error

Error satisfies the builtin error interface

func (ListMarketsRequestValidationError) ErrorName

ErrorName returns error name.

func (ListMarketsRequestValidationError) Field

Field function returns field value.

func (ListMarketsRequestValidationError) Key

Key function returns key value.

func (ListMarketsRequestValidationError) Reason

Reason function returns reason value.

type ListMarketsResponse

type ListMarketsResponse struct {
	Markets       []*Market `protobuf:"bytes,1,rep,name=markets,proto3" json:"markets,omitempty"`
	NextPageToken string    `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListMarketsResponse) Descriptor deprecated

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

Deprecated: Use ListMarketsResponse.ProtoReflect.Descriptor instead.

func (*ListMarketsResponse) GetMarkets

func (x *ListMarketsResponse) GetMarkets() []*Market

func (*ListMarketsResponse) GetNextPageToken

func (x *ListMarketsResponse) GetNextPageToken() string

func (*ListMarketsResponse) ProtoMessage

func (*ListMarketsResponse) ProtoMessage()

func (*ListMarketsResponse) ProtoReflect

func (x *ListMarketsResponse) ProtoReflect() protoreflect.Message

func (*ListMarketsResponse) Reset

func (x *ListMarketsResponse) Reset()

func (*ListMarketsResponse) String

func (x *ListMarketsResponse) String() string

func (*ListMarketsResponse) Validate

func (m *ListMarketsResponse) Validate() error

Validate checks the field values on ListMarketsResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ListMarketsResponse) ValidateAll

func (m *ListMarketsResponse) ValidateAll() error

ValidateAll checks the field values on ListMarketsResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListMarketsResponseMultiError, or nil if none found.

type ListMarketsResponseMultiError

type ListMarketsResponseMultiError []error

ListMarketsResponseMultiError is an error wrapping multiple validation errors returned by ListMarketsResponse.ValidateAll() if the designated constraints aren't met.

func (ListMarketsResponseMultiError) AllErrors

func (m ListMarketsResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListMarketsResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListMarketsResponseValidationError

type ListMarketsResponseValidationError struct {
	// contains filtered or unexported fields
}

ListMarketsResponseValidationError is the validation error returned by ListMarketsResponse.Validate if the designated constraints aren't met.

func (ListMarketsResponseValidationError) Cause

Cause function returns cause value.

func (ListMarketsResponseValidationError) Error

Error satisfies the builtin error interface

func (ListMarketsResponseValidationError) ErrorName

ErrorName returns error name.

func (ListMarketsResponseValidationError) Field

Field function returns field value.

func (ListMarketsResponseValidationError) Key

Key function returns key value.

func (ListMarketsResponseValidationError) Reason

Reason function returns reason value.

type ListUsersRequest

type ListUsersRequest struct {
	PageSize  int32    `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	PageToken string   `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	Book      string   `protobuf:"bytes,3,opt,name=book,proto3" json:"book,omitempty"`
	Users     []string `protobuf:"bytes,4,rep,name=users,proto3" json:"users,omitempty"`
	// valid options: "name" asc (default), "total_centipoints" desc
	OrderBy string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
	// contains filtered or unexported fields
}

func StripListUsersPagination

func StripListUsersPagination(in *ListUsersRequest) *ListUsersRequest

StripListUsersPagination assists verifying next page tokens.

func (*ListUsersRequest) Descriptor deprecated

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

Deprecated: Use ListUsersRequest.ProtoReflect.Descriptor instead.

func (*ListUsersRequest) GetBook

func (x *ListUsersRequest) GetBook() string

func (*ListUsersRequest) GetOrderBy

func (x *ListUsersRequest) GetOrderBy() string

func (*ListUsersRequest) GetPageSize

func (x *ListUsersRequest) GetPageSize() int32

func (*ListUsersRequest) GetPageToken

func (x *ListUsersRequest) GetPageToken() string

func (*ListUsersRequest) GetUsers

func (x *ListUsersRequest) GetUsers() []string

func (*ListUsersRequest) ProtoMessage

func (*ListUsersRequest) ProtoMessage()

func (*ListUsersRequest) ProtoReflect

func (x *ListUsersRequest) ProtoReflect() protoreflect.Message

func (*ListUsersRequest) Reset

func (x *ListUsersRequest) Reset()

func (*ListUsersRequest) String

func (x *ListUsersRequest) String() string

func (*ListUsersRequest) Validate

func (m *ListUsersRequest) Validate() error

Validate checks the field values on ListUsersRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ListUsersRequest) ValidateAll

func (m *ListUsersRequest) ValidateAll() error

ValidateAll checks the field values on ListUsersRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListUsersRequestMultiError, or nil if none found.

type ListUsersRequestMultiError

type ListUsersRequestMultiError []error

ListUsersRequestMultiError is an error wrapping multiple validation errors returned by ListUsersRequest.ValidateAll() if the designated constraints aren't met.

func (ListUsersRequestMultiError) AllErrors

func (m ListUsersRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListUsersRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListUsersRequestValidationError

type ListUsersRequestValidationError struct {
	// contains filtered or unexported fields
}

ListUsersRequestValidationError is the validation error returned by ListUsersRequest.Validate if the designated constraints aren't met.

func (ListUsersRequestValidationError) Cause

Cause function returns cause value.

func (ListUsersRequestValidationError) Error

Error satisfies the builtin error interface

func (ListUsersRequestValidationError) ErrorName

ErrorName returns error name.

func (ListUsersRequestValidationError) Field

Field function returns field value.

func (ListUsersRequestValidationError) Key

Key function returns key value.

func (ListUsersRequestValidationError) Reason

Reason function returns reason value.

type ListUsersResponse

type ListUsersResponse struct {
	Users         []*User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
	NextPageToken string  `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListUsersResponse) Descriptor deprecated

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

Deprecated: Use ListUsersResponse.ProtoReflect.Descriptor instead.

func (*ListUsersResponse) GetNextPageToken

func (x *ListUsersResponse) GetNextPageToken() string

func (*ListUsersResponse) GetUsers

func (x *ListUsersResponse) GetUsers() []*User

func (*ListUsersResponse) ProtoMessage

func (*ListUsersResponse) ProtoMessage()

func (*ListUsersResponse) ProtoReflect

func (x *ListUsersResponse) ProtoReflect() protoreflect.Message

func (*ListUsersResponse) Reset

func (x *ListUsersResponse) Reset()

func (*ListUsersResponse) String

func (x *ListUsersResponse) String() string

func (*ListUsersResponse) Validate

func (m *ListUsersResponse) Validate() error

Validate checks the field values on ListUsersResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ListUsersResponse) ValidateAll

func (m *ListUsersResponse) ValidateAll() error

ValidateAll checks the field values on ListUsersResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListUsersResponseMultiError, or nil if none found.

type ListUsersResponseMultiError

type ListUsersResponseMultiError []error

ListUsersResponseMultiError is an error wrapping multiple validation errors returned by ListUsersResponse.ValidateAll() if the designated constraints aren't met.

func (ListUsersResponseMultiError) AllErrors

func (m ListUsersResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListUsersResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListUsersResponseValidationError

type ListUsersResponseValidationError struct {
	// contains filtered or unexported fields
}

ListUsersResponseValidationError is the validation error returned by ListUsersResponse.Validate if the designated constraints aren't met.

func (ListUsersResponseValidationError) Cause

Cause function returns cause value.

func (ListUsersResponseValidationError) Error

Error satisfies the builtin error interface

func (ListUsersResponseValidationError) ErrorName

ErrorName returns error name.

func (ListUsersResponseValidationError) Field

Field function returns field value.

func (ListUsersResponseValidationError) Key

Key function returns key value.

func (ListUsersResponseValidationError) Reason

Reason function returns reason value.

type LockMarketRequest

type LockMarketRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*LockMarketRequest) Descriptor deprecated

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

Deprecated: Use LockMarketRequest.ProtoReflect.Descriptor instead.

func (*LockMarketRequest) GetName

func (x *LockMarketRequest) GetName() string

func (*LockMarketRequest) ProtoMessage

func (*LockMarketRequest) ProtoMessage()

func (*LockMarketRequest) ProtoReflect

func (x *LockMarketRequest) ProtoReflect() protoreflect.Message

func (*LockMarketRequest) Reset

func (x *LockMarketRequest) Reset()

func (*LockMarketRequest) String

func (x *LockMarketRequest) String() string

func (*LockMarketRequest) Validate

func (m *LockMarketRequest) Validate() error

Validate checks the field values on LockMarketRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*LockMarketRequest) ValidateAll

func (m *LockMarketRequest) ValidateAll() error

ValidateAll checks the field values on LockMarketRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in LockMarketRequestMultiError, or nil if none found.

type LockMarketRequestMultiError

type LockMarketRequestMultiError []error

LockMarketRequestMultiError is an error wrapping multiple validation errors returned by LockMarketRequest.ValidateAll() if the designated constraints aren't met.

func (LockMarketRequestMultiError) AllErrors

func (m LockMarketRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (LockMarketRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type LockMarketRequestValidationError

type LockMarketRequestValidationError struct {
	// contains filtered or unexported fields
}

LockMarketRequestValidationError is the validation error returned by LockMarketRequest.Validate if the designated constraints aren't met.

func (LockMarketRequestValidationError) Cause

Cause function returns cause value.

func (LockMarketRequestValidationError) Error

Error satisfies the builtin error interface

func (LockMarketRequestValidationError) ErrorName

ErrorName returns error name.

func (LockMarketRequestValidationError) Field

Field function returns field value.

func (LockMarketRequestValidationError) Key

Key function returns key value.

func (LockMarketRequestValidationError) Reason

Reason function returns reason value.

type LockMarketResponse

type LockMarketResponse struct {
	Market *Market `protobuf:"bytes,1,opt,name=market,proto3" json:"market,omitempty"`
	// contains filtered or unexported fields
}

func (*LockMarketResponse) Descriptor deprecated

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

Deprecated: Use LockMarketResponse.ProtoReflect.Descriptor instead.

func (*LockMarketResponse) GetMarket

func (x *LockMarketResponse) GetMarket() *Market

func (*LockMarketResponse) ProtoMessage

func (*LockMarketResponse) ProtoMessage()

func (*LockMarketResponse) ProtoReflect

func (x *LockMarketResponse) ProtoReflect() protoreflect.Message

func (*LockMarketResponse) Reset

func (x *LockMarketResponse) Reset()

func (*LockMarketResponse) String

func (x *LockMarketResponse) String() string

func (*LockMarketResponse) Validate

func (m *LockMarketResponse) Validate() error

Validate checks the field values on LockMarketResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*LockMarketResponse) ValidateAll

func (m *LockMarketResponse) ValidateAll() error

ValidateAll checks the field values on LockMarketResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in LockMarketResponseMultiError, or nil if none found.

type LockMarketResponseMultiError

type LockMarketResponseMultiError []error

LockMarketResponseMultiError is an error wrapping multiple validation errors returned by LockMarketResponse.ValidateAll() if the designated constraints aren't met.

func (LockMarketResponseMultiError) AllErrors

func (m LockMarketResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (LockMarketResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type LockMarketResponseValidationError

type LockMarketResponseValidationError struct {
	// contains filtered or unexported fields
}

LockMarketResponseValidationError is the validation error returned by LockMarketResponse.Validate if the designated constraints aren't met.

func (LockMarketResponseValidationError) Cause

Cause function returns cause value.

func (LockMarketResponseValidationError) Error

Error satisfies the builtin error interface

func (LockMarketResponseValidationError) ErrorName

ErrorName returns error name.

func (LockMarketResponseValidationError) Field

Field function returns field value.

func (LockMarketResponseValidationError) Key

Key function returns key value.

func (LockMarketResponseValidationError) Reason

Reason function returns reason value.

type Market

type Market struct {
	Name      string                 `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	SettledAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=settled_at,json=settledAt,proto3" json:"settled_at,omitempty"`
	Title     string                 `protobuf:"bytes,5,opt,name=title,proto3" json:"title,omitempty"`
	Creator   string                 `protobuf:"bytes,6,opt,name=creator,proto3" json:"creator,omitempty"`
	Status    Market_Status          `protobuf:"varint,7,opt,name=status,proto3,enum=bettor.v1alpha.Market_Status" json:"status,omitempty"`
	// Types that are assignable to Type:
	//
	//	*Market_Pool
	Type isMarket_Type `protobuf_oneof:"type"`
	// contains filtered or unexported fields
}

A betting market.

func (*Market) Descriptor deprecated

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

Deprecated: Use Market.ProtoReflect.Descriptor instead.

func (*Market) GetCreatedAt

func (x *Market) GetCreatedAt() *timestamppb.Timestamp

func (*Market) GetCreator

func (x *Market) GetCreator() string

func (*Market) GetName

func (x *Market) GetName() string

func (*Market) GetPool

func (x *Market) GetPool() *Pool

func (*Market) GetSettledAt

func (x *Market) GetSettledAt() *timestamppb.Timestamp

func (*Market) GetStatus

func (x *Market) GetStatus() Market_Status

func (*Market) GetTitle

func (x *Market) GetTitle() string

func (*Market) GetType

func (m *Market) GetType() isMarket_Type

func (*Market) GetUpdatedAt

func (x *Market) GetUpdatedAt() *timestamppb.Timestamp

func (*Market) ProtoMessage

func (*Market) ProtoMessage()

func (*Market) ProtoReflect

func (x *Market) ProtoReflect() protoreflect.Message

func (*Market) Reset

func (x *Market) Reset()

func (*Market) String

func (x *Market) String() string

func (*Market) Validate

func (m *Market) Validate() error

Validate checks the field values on Market with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Market) ValidateAll

func (m *Market) ValidateAll() error

ValidateAll checks the field values on Market with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in MarketMultiError, or nil if none found.

type MarketMultiError

type MarketMultiError []error

MarketMultiError is an error wrapping multiple validation errors returned by Market.ValidateAll() if the designated constraints aren't met.

func (MarketMultiError) AllErrors

func (m MarketMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (MarketMultiError) Error

func (m MarketMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type MarketValidationError

type MarketValidationError struct {
	// contains filtered or unexported fields
}

MarketValidationError is the validation error returned by Market.Validate if the designated constraints aren't met.

func (MarketValidationError) Cause

func (e MarketValidationError) Cause() error

Cause function returns cause value.

func (MarketValidationError) Error

func (e MarketValidationError) Error() string

Error satisfies the builtin error interface

func (MarketValidationError) ErrorName

func (e MarketValidationError) ErrorName() string

ErrorName returns error name.

func (MarketValidationError) Field

func (e MarketValidationError) Field() string

Field function returns field value.

func (MarketValidationError) Key

func (e MarketValidationError) Key() bool

Key function returns key value.

func (MarketValidationError) Reason

func (e MarketValidationError) Reason() string

Reason function returns reason value.

type Market_Pool

type Market_Pool struct {
	Pool *Pool `protobuf:"bytes,8,opt,name=pool,proto3,oneof"`
}

type Market_Status

type Market_Status int32
const (
	Market_STATUS_UNSPECIFIED Market_Status = 0
	Market_STATUS_OPEN        Market_Status = 1
	Market_STATUS_BETS_LOCKED Market_Status = 2
	Market_STATUS_SETTLED     Market_Status = 3
	Market_STATUS_CANCELED    Market_Status = 4
)

func (Market_Status) Descriptor

func (Market_Status) Enum

func (x Market_Status) Enum() *Market_Status

func (Market_Status) EnumDescriptor deprecated

func (Market_Status) EnumDescriptor() ([]byte, []int)

Deprecated: Use Market_Status.Descriptor instead.

func (Market_Status) Number

func (Market_Status) String

func (x Market_Status) String() string

func (Market_Status) Type

type Outcome

type Outcome struct {
	Name        string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Title       string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	Centipoints uint64 `protobuf:"varint,3,opt,name=centipoints,proto3" json:"centipoints,omitempty"`
	// contains filtered or unexported fields
}

An outcome in a pool betting market.

func (*Outcome) Descriptor deprecated

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

Deprecated: Use Outcome.ProtoReflect.Descriptor instead.

func (*Outcome) GetCentipoints

func (x *Outcome) GetCentipoints() uint64

func (*Outcome) GetName

func (x *Outcome) GetName() string

func (*Outcome) GetTitle

func (x *Outcome) GetTitle() string

func (*Outcome) ProtoMessage

func (*Outcome) ProtoMessage()

func (*Outcome) ProtoReflect

func (x *Outcome) ProtoReflect() protoreflect.Message

func (*Outcome) Reset

func (x *Outcome) Reset()

func (*Outcome) String

func (x *Outcome) String() string

func (*Outcome) Validate

func (m *Outcome) Validate() error

Validate checks the field values on Outcome with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Outcome) ValidateAll

func (m *Outcome) ValidateAll() error

ValidateAll checks the field values on Outcome with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in OutcomeMultiError, or nil if none found.

type OutcomeMultiError

type OutcomeMultiError []error

OutcomeMultiError is an error wrapping multiple validation errors returned by Outcome.ValidateAll() if the designated constraints aren't met.

func (OutcomeMultiError) AllErrors

func (m OutcomeMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (OutcomeMultiError) Error

func (m OutcomeMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type OutcomeValidationError

type OutcomeValidationError struct {
	// contains filtered or unexported fields
}

OutcomeValidationError is the validation error returned by Outcome.Validate if the designated constraints aren't met.

func (OutcomeValidationError) Cause

func (e OutcomeValidationError) Cause() error

Cause function returns cause value.

func (OutcomeValidationError) Error

func (e OutcomeValidationError) Error() string

Error satisfies the builtin error interface

func (OutcomeValidationError) ErrorName

func (e OutcomeValidationError) ErrorName() string

ErrorName returns error name.

func (OutcomeValidationError) Field

func (e OutcomeValidationError) Field() string

Field function returns field value.

func (OutcomeValidationError) Key

func (e OutcomeValidationError) Key() bool

Key function returns key value.

func (OutcomeValidationError) Reason

func (e OutcomeValidationError) Reason() string

Reason function returns reason value.

type Pool

type Pool struct {
	Outcomes []*Outcome `protobuf:"bytes,1,rep,name=outcomes,proto3" json:"outcomes,omitempty"`
	Winner   string     `protobuf:"bytes,2,opt,name=winner,proto3" json:"winner,omitempty"`
	// contains filtered or unexported fields
}

Pool or parimutuel betting market.

func (*Pool) Descriptor deprecated

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

Deprecated: Use Pool.ProtoReflect.Descriptor instead.

func (*Pool) GetOutcomes

func (x *Pool) GetOutcomes() []*Outcome

func (*Pool) GetWinner

func (x *Pool) GetWinner() string

func (*Pool) ProtoMessage

func (*Pool) ProtoMessage()

func (*Pool) ProtoReflect

func (x *Pool) ProtoReflect() protoreflect.Message

func (*Pool) Reset

func (x *Pool) Reset()

func (*Pool) String

func (x *Pool) String() string

func (*Pool) Validate

func (m *Pool) Validate() error

Validate checks the field values on Pool with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Pool) ValidateAll

func (m *Pool) ValidateAll() error

ValidateAll checks the field values on Pool with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PoolMultiError, or nil if none found.

type PoolMultiError

type PoolMultiError []error

PoolMultiError is an error wrapping multiple validation errors returned by Pool.ValidateAll() if the designated constraints aren't met.

func (PoolMultiError) AllErrors

func (m PoolMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PoolMultiError) Error

func (m PoolMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type PoolValidationError

type PoolValidationError struct {
	// contains filtered or unexported fields
}

PoolValidationError is the validation error returned by Pool.Validate if the designated constraints aren't met.

func (PoolValidationError) Cause

func (e PoolValidationError) Cause() error

Cause function returns cause value.

func (PoolValidationError) Error

func (e PoolValidationError) Error() string

Error satisfies the builtin error interface

func (PoolValidationError) ErrorName

func (e PoolValidationError) ErrorName() string

ErrorName returns error name.

func (PoolValidationError) Field

func (e PoolValidationError) Field() string

Field function returns field value.

func (PoolValidationError) Key

func (e PoolValidationError) Key() bool

Key function returns key value.

func (PoolValidationError) Reason

func (e PoolValidationError) Reason() string

Reason function returns reason value.

type SettleMarketRequest

type SettleMarketRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Types that are assignable to Type:
	//
	//	*SettleMarketRequest_Winner
	Type isSettleMarketRequest_Type `protobuf_oneof:"type"`
	// contains filtered or unexported fields
}

func (*SettleMarketRequest) Descriptor deprecated

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

Deprecated: Use SettleMarketRequest.ProtoReflect.Descriptor instead.

func (*SettleMarketRequest) GetName

func (x *SettleMarketRequest) GetName() string

func (*SettleMarketRequest) GetType

func (m *SettleMarketRequest) GetType() isSettleMarketRequest_Type

func (*SettleMarketRequest) GetWinner

func (x *SettleMarketRequest) GetWinner() string

func (*SettleMarketRequest) ProtoMessage

func (*SettleMarketRequest) ProtoMessage()

func (*SettleMarketRequest) ProtoReflect

func (x *SettleMarketRequest) ProtoReflect() protoreflect.Message

func (*SettleMarketRequest) Reset

func (x *SettleMarketRequest) Reset()

func (*SettleMarketRequest) String

func (x *SettleMarketRequest) String() string

func (*SettleMarketRequest) Validate

func (m *SettleMarketRequest) Validate() error

Validate checks the field values on SettleMarketRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*SettleMarketRequest) ValidateAll

func (m *SettleMarketRequest) ValidateAll() error

ValidateAll checks the field values on SettleMarketRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SettleMarketRequestMultiError, or nil if none found.

type SettleMarketRequestMultiError

type SettleMarketRequestMultiError []error

SettleMarketRequestMultiError is an error wrapping multiple validation errors returned by SettleMarketRequest.ValidateAll() if the designated constraints aren't met.

func (SettleMarketRequestMultiError) AllErrors

func (m SettleMarketRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SettleMarketRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type SettleMarketRequestValidationError

type SettleMarketRequestValidationError struct {
	// contains filtered or unexported fields
}

SettleMarketRequestValidationError is the validation error returned by SettleMarketRequest.Validate if the designated constraints aren't met.

func (SettleMarketRequestValidationError) Cause

Cause function returns cause value.

func (SettleMarketRequestValidationError) Error

Error satisfies the builtin error interface

func (SettleMarketRequestValidationError) ErrorName

ErrorName returns error name.

func (SettleMarketRequestValidationError) Field

Field function returns field value.

func (SettleMarketRequestValidationError) Key

Key function returns key value.

func (SettleMarketRequestValidationError) Reason

Reason function returns reason value.

type SettleMarketRequest_Winner

type SettleMarketRequest_Winner struct {
	Winner string `protobuf:"bytes,2,opt,name=winner,proto3,oneof"`
}

type SettleMarketResponse

type SettleMarketResponse struct {
	Market *Market `protobuf:"bytes,1,opt,name=market,proto3" json:"market,omitempty"`
	// contains filtered or unexported fields
}

func (*SettleMarketResponse) Descriptor deprecated

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

Deprecated: Use SettleMarketResponse.ProtoReflect.Descriptor instead.

func (*SettleMarketResponse) GetMarket

func (x *SettleMarketResponse) GetMarket() *Market

func (*SettleMarketResponse) ProtoMessage

func (*SettleMarketResponse) ProtoMessage()

func (*SettleMarketResponse) ProtoReflect

func (x *SettleMarketResponse) ProtoReflect() protoreflect.Message

func (*SettleMarketResponse) Reset

func (x *SettleMarketResponse) Reset()

func (*SettleMarketResponse) String

func (x *SettleMarketResponse) String() string

func (*SettleMarketResponse) Validate

func (m *SettleMarketResponse) Validate() error

Validate checks the field values on SettleMarketResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*SettleMarketResponse) ValidateAll

func (m *SettleMarketResponse) ValidateAll() error

ValidateAll checks the field values on SettleMarketResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SettleMarketResponseMultiError, or nil if none found.

type SettleMarketResponseMultiError

type SettleMarketResponseMultiError []error

SettleMarketResponseMultiError is an error wrapping multiple validation errors returned by SettleMarketResponse.ValidateAll() if the designated constraints aren't met.

func (SettleMarketResponseMultiError) AllErrors

func (m SettleMarketResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SettleMarketResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type SettleMarketResponseValidationError

type SettleMarketResponseValidationError struct {
	// contains filtered or unexported fields
}

SettleMarketResponseValidationError is the validation error returned by SettleMarketResponse.Validate if the designated constraints aren't met.

func (SettleMarketResponseValidationError) Cause

Cause function returns cause value.

func (SettleMarketResponseValidationError) Error

Error satisfies the builtin error interface

func (SettleMarketResponseValidationError) ErrorName

ErrorName returns error name.

func (SettleMarketResponseValidationError) Field

Field function returns field value.

func (SettleMarketResponseValidationError) Key

Key function returns key value.

func (SettleMarketResponseValidationError) Reason

Reason function returns reason value.

type User

type User struct {
	Name                 string                 `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	CreatedAt            *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt            *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	Username             string                 `protobuf:"bytes,4,opt,name=username,proto3" json:"username,omitempty"`
	Centipoints          uint64                 `protobuf:"varint,5,opt,name=centipoints,proto3" json:"centipoints,omitempty"`
	UnsettledCentipoints uint64                 `protobuf:"varint,6,opt,name=unsettled_centipoints,json=unsettledCentipoints,proto3" json:"unsettled_centipoints,omitempty"` // virtual field hydrated on read
	// contains filtered or unexported fields
}

User information.

func (*User) Descriptor deprecated

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

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetCentipoints

func (x *User) GetCentipoints() uint64

func (*User) GetCreatedAt

func (x *User) GetCreatedAt() *timestamppb.Timestamp

func (*User) GetName

func (x *User) GetName() string

func (*User) GetUnsettledCentipoints

func (x *User) GetUnsettledCentipoints() uint64

func (*User) GetUpdatedAt

func (x *User) GetUpdatedAt() *timestamppb.Timestamp

func (*User) GetUsername

func (x *User) GetUsername() string

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

func (x *User) ProtoReflect() protoreflect.Message

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

func (*User) Validate

func (m *User) Validate() error

Validate checks the field values on User with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*User) ValidateAll

func (m *User) ValidateAll() error

ValidateAll checks the field values on User with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UserMultiError, or nil if none found.

type UserMultiError

type UserMultiError []error

UserMultiError is an error wrapping multiple validation errors returned by User.ValidateAll() if the designated constraints aren't met.

func (UserMultiError) AllErrors

func (m UserMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UserMultiError) Error

func (m UserMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type UserValidationError

type UserValidationError struct {
	// contains filtered or unexported fields
}

UserValidationError is the validation error returned by User.Validate if the designated constraints aren't met.

func (UserValidationError) Cause

func (e UserValidationError) Cause() error

Cause function returns cause value.

func (UserValidationError) Error

func (e UserValidationError) Error() string

Error satisfies the builtin error interface

func (UserValidationError) ErrorName

func (e UserValidationError) ErrorName() string

ErrorName returns error name.

func (UserValidationError) Field

func (e UserValidationError) Field() string

Field function returns field value.

func (UserValidationError) Key

func (e UserValidationError) Key() bool

Key function returns key value.

func (UserValidationError) Reason

func (e UserValidationError) Reason() string

Reason function returns reason value.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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