Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterAuthServiceServer(s grpc.ServiceRegistrar, srv AuthServiceServer)
- func RegisterEventServiceServer(s grpc.ServiceRegistrar, srv EventServiceServer)
- func RegisterFightersServiceServer(s grpc.ServiceRegistrar, srv FightersServiceServer)
- type AuthServiceClient
- type AuthServiceServer
- type AuthenticateRequest
- func (*AuthenticateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AuthenticateRequest) GetAudience() []string
- func (x *AuthenticateRequest) GetEmail() string
- func (x *AuthenticateRequest) GetExpiresIn() int64
- func (x *AuthenticateRequest) GetIpAddress() string
- func (x *AuthenticateRequest) GetMethod() int32
- func (x *AuthenticateRequest) GetPassword() string
- func (x *AuthenticateRequest) GetRememberMe() bool
- func (x *AuthenticateRequest) GetSubject() string
- func (x *AuthenticateRequest) GetUserAgent() string
- func (*AuthenticateRequest) ProtoMessage()
- func (x *AuthenticateRequest) ProtoReflect() protoreflect.Message
- func (x *AuthenticateRequest) Reset()
- func (x *AuthenticateRequest) String() string
- type AuthenticateResponse
- func (*AuthenticateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AuthenticateResponse) GetAccessToken() string
- func (x *AuthenticateResponse) GetExpirationTime() *timestamppb.Timestamp
- func (x *AuthenticateResponse) GetTokenId() string
- func (*AuthenticateResponse) ProtoMessage()
- func (x *AuthenticateResponse) ProtoReflect() protoreflect.Message
- func (x *AuthenticateResponse) Reset()
- func (x *AuthenticateResponse) String() string
- type Bet
- func (*Bet) Descriptor() ([]byte, []int)deprecated
- func (x *Bet) GetBetId() int32
- func (x *Bet) GetFightId() int32
- func (x *Bet) GetFighterId() int32
- func (x *Bet) GetUserId() int32
- func (*Bet) ProtoMessage()
- func (x *Bet) ProtoReflect() protoreflect.Message
- func (x *Bet) Reset()
- func (x *Bet) String() string
- type BetsRequest
- type BetsResponse
- func (*BetsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *BetsResponse) GetBets() []*Bet
- func (x *BetsResponse) GetCount() int32
- func (*BetsResponse) ProtoMessage()
- func (x *BetsResponse) ProtoReflect() protoreflect.Message
- func (x *BetsResponse) Reset()
- func (x *BetsResponse) String() string
- type CreateBetRequest
- func (*CreateBetRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateBetRequest) GetBetId() int32
- func (x *CreateBetRequest) GetFightId() int32
- func (x *CreateBetRequest) GetFighterId() int32
- func (x *CreateBetRequest) GetUserId() int32
- func (*CreateBetRequest) ProtoMessage()
- func (x *CreateBetRequest) ProtoReflect() protoreflect.Message
- func (x *CreateBetRequest) Reset()
- func (x *CreateBetRequest) String() string
- type CreateBetResponse
- type CreateEventRequest
- func (*CreateEventRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateEventRequest) GetFights() []*Fight
- func (x *CreateEventRequest) GetName() string
- func (*CreateEventRequest) ProtoMessage()
- func (x *CreateEventRequest) ProtoReflect() protoreflect.Message
- func (x *CreateEventRequest) Reset()
- func (x *CreateEventRequest) String() string
- type CreateEventResponse
- func (*CreateEventResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateEventResponse) GetEventId() int32
- func (*CreateEventResponse) ProtoMessage()
- func (x *CreateEventResponse) ProtoReflect() protoreflect.Message
- func (x *CreateEventResponse) Reset()
- func (x *CreateEventResponse) String() string
- type Event
- func (*Event) Descriptor() ([]byte, []int)deprecated
- func (x *Event) GetEventId() int32
- func (x *Event) GetFights() []*Fight
- func (x *Event) GetIsDone() bool
- func (x *Event) GetName() string
- func (*Event) ProtoMessage()
- func (x *Event) ProtoReflect() protoreflect.Message
- func (x *Event) Reset()
- func (x *Event) String() string
- type EventServiceClient
- type EventServiceServer
- type Fight
- func (*Fight) Descriptor() ([]byte, []int)deprecated
- func (x *Fight) GetCreatedAt() int64
- func (x *Fight) GetEventId() int32
- func (x *Fight) GetFightDate() int64
- func (x *Fight) GetFightId() int32
- func (x *Fight) GetFighterBlueId() int32
- func (x *Fight) GetFighterRedId() int32
- func (x *Fight) GetIsCanceled() bool
- func (x *Fight) GetIsDone() bool
- func (x *Fight) GetIsDraw() bool
- func (x *Fight) GetNotContest() bool
- func (x *Fight) GetWinnerId() int32
- func (*Fight) ProtoMessage()
- func (x *Fight) ProtoReflect() protoreflect.Message
- func (x *Fight) Reset()
- func (x *Fight) String() string
- type FightResultRequest
- func (*FightResultRequest) Descriptor() ([]byte, []int)deprecated
- func (x *FightResultRequest) GetFightId() int32
- func (x *FightResultRequest) GetIsCanceled() bool
- func (x *FightResultRequest) GetIsDraw() bool
- func (x *FightResultRequest) GetMethod() string
- func (x *FightResultRequest) GetNotContest() bool
- func (x *FightResultRequest) GetRound() int32
- func (x *FightResultRequest) GetWinnerId() int32
- func (*FightResultRequest) ProtoMessage()
- func (x *FightResultRequest) ProtoReflect() protoreflect.Message
- func (x *FightResultRequest) Reset()
- func (x *FightResultRequest) String() string
- type FightResultResponse
- func (*FightResultResponse) Descriptor() ([]byte, []int)deprecated
- func (x *FightResultResponse) GetFightId() int32
- func (*FightResultResponse) ProtoMessage()
- func (x *FightResultResponse) ProtoReflect() protoreflect.Message
- func (x *FightResultResponse) Reset()
- func (x *FightResultResponse) String() string
- type Fighter
- func (*Fighter) Descriptor() ([]byte, []int)deprecated
- func (x *Fighter) GetAge() int32
- func (x *Fighter) GetDebutTimestamp() int32
- func (x *Fighter) GetDivisionId() int32
- func (x *Fighter) GetDraw() int32
- func (x *Fighter) GetFighterId() int32
- func (x *Fighter) GetFighterUrl() string
- func (x *Fighter) GetFightingStyle() string
- func (x *Fighter) GetHeight() float32
- func (x *Fighter) GetHometown() string
- func (x *Fighter) GetImageUrl() string
- func (x *Fighter) GetLegReach() float32
- func (x *Fighter) GetLoses() int32
- func (x *Fighter) GetName() string
- func (x *Fighter) GetNickName() string
- func (x *Fighter) GetOctagonDebut() string
- func (x *Fighter) GetReach() float32
- func (x *Fighter) GetStats() *FighterStats
- func (x *Fighter) GetStatus() string
- func (x *Fighter) GetTrainsAt() string
- func (x *Fighter) GetWeight() float32
- func (x *Fighter) GetWins() int32
- func (*Fighter) ProtoMessage()
- func (x *Fighter) ProtoReflect() protoreflect.Message
- func (x *Fighter) Reset()
- func (x *Fighter) String() string
- type FighterStats
- func (*FighterStats) Descriptor() ([]byte, []int)deprecated
- func (x *FighterStats) GetAvgFightTime() string
- func (x *FighterStats) GetFighterId() int32
- func (x *FighterStats) GetKnockdownAvg() float32
- func (x *FighterStats) GetSigStrAbs() float32
- func (x *FighterStats) GetSigStrDefense() int32
- func (x *FighterStats) GetSigStrLanded() float32
- func (x *FighterStats) GetStatId() int32
- func (x *FighterStats) GetStrAccuracy() int32
- func (x *FighterStats) GetSubmissionAvg() float32
- func (x *FighterStats) GetTakedownAvg() float32
- func (x *FighterStats) GetTakedownDefense() int32
- func (x *FighterStats) GetTkdAccuracy() int32
- func (x *FighterStats) GetTotalSigStrAttempted() int32
- func (x *FighterStats) GetTotalSigStrLanded() int32
- func (x *FighterStats) GetTotalTkdAttempted() int32
- func (x *FighterStats) GetTotalTkdLanded() int32
- func (x *FighterStats) GetWinByDec() int32
- func (x *FighterStats) GetWinByKO() int32
- func (x *FighterStats) GetWinBySub() int32
- func (*FighterStats) ProtoMessage()
- func (x *FighterStats) ProtoReflect() protoreflect.Message
- func (x *FighterStats) Reset()
- func (x *FighterStats) String() string
- type FightersCountResponse
- func (*FightersCountResponse) Descriptor() ([]byte, []int)deprecated
- func (x *FightersCountResponse) GetCount() int32
- func (*FightersCountResponse) ProtoMessage()
- func (x *FightersCountResponse) ProtoReflect() protoreflect.Message
- func (x *FightersCountResponse) Reset()
- func (x *FightersCountResponse) String() string
- type FightersRequest
- func (*FightersRequest) Descriptor() ([]byte, []int)deprecated
- func (x *FightersRequest) GetFightersIds() []int32
- func (x *FightersRequest) GetStatus() string
- func (*FightersRequest) ProtoMessage()
- func (x *FightersRequest) ProtoReflect() protoreflect.Message
- func (x *FightersRequest) Reset()
- func (x *FightersRequest) String() string
- type FightersResponse
- type FightersServiceClient
- type FightersServiceServer
- type GetEventsRequest
- func (*GetEventsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetEventsRequest) GetResponse() *emptypb.Empty
- func (*GetEventsRequest) ProtoMessage()
- func (x *GetEventsRequest) ProtoReflect() protoreflect.Message
- func (x *GetEventsRequest) Reset()
- func (x *GetEventsRequest) String() string
- type GetEventsResponse
- func (*GetEventsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetEventsResponse) GetCount() int32
- func (x *GetEventsResponse) GetEvents() []*Event
- func (*GetEventsResponse) ProtoMessage()
- func (x *GetEventsResponse) ProtoReflect() protoreflect.Message
- func (x *GetEventsResponse) Reset()
- func (x *GetEventsResponse) String() string
- type HealthResponse
- func (*HealthResponse) Descriptor() ([]byte, []int)deprecated
- func (x *HealthResponse) GetAppDevVersion() string
- func (x *HealthResponse) GetAppName() string
- func (x *HealthResponse) GetAppRunDate() int64
- func (x *HealthResponse) GetAppTimeAlive() int64
- func (x *HealthResponse) GetHealthy() bool
- func (x *HealthResponse) GetMessage() string
- func (x *HealthResponse) GetTimestamp() string
- func (*HealthResponse) ProtoMessage()
- func (x *HealthResponse) ProtoReflect() protoreflect.Message
- func (x *HealthResponse) Reset()
- func (x *HealthResponse) String() string
- type PasswordRecoveryRequest
- func (*PasswordRecoveryRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PasswordRecoveryRequest) GetConfirmPassword() string
- func (x *PasswordRecoveryRequest) GetPassword() string
- func (x *PasswordRecoveryRequest) GetToken() string
- func (*PasswordRecoveryRequest) ProtoMessage()
- func (x *PasswordRecoveryRequest) ProtoReflect() protoreflect.Message
- func (x *PasswordRecoveryRequest) Reset()
- func (x *PasswordRecoveryRequest) String() string
- type PasswordRecoveryResponse
- func (*PasswordRecoveryResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PasswordRecoveryResponse) GetResponse() *emptypb.Empty
- func (*PasswordRecoveryResponse) ProtoMessage()
- func (x *PasswordRecoveryResponse) ProtoReflect() protoreflect.Message
- func (x *PasswordRecoveryResponse) Reset()
- func (x *PasswordRecoveryResponse) String() string
- type PasswordResetRequest
- func (*PasswordResetRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PasswordResetRequest) GetEmail() string
- func (*PasswordResetRequest) ProtoMessage()
- func (x *PasswordResetRequest) ProtoReflect() protoreflect.Message
- func (x *PasswordResetRequest) Reset()
- func (x *PasswordResetRequest) String() string
- type PasswordResetResponse
- func (*PasswordResetResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PasswordResetResponse) GetResponse() *emptypb.Empty
- func (*PasswordResetResponse) ProtoMessage()
- func (x *PasswordResetResponse) ProtoReflect() protoreflect.Message
- func (x *PasswordResetResponse) Reset()
- func (x *PasswordResetResponse) String() string
- type ProfileRequest
- func (*ProfileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ProfileRequest) GetName() string
- func (x *ProfileRequest) GetUserId() int32
- func (*ProfileRequest) ProtoMessage()
- func (x *ProfileRequest) ProtoReflect() protoreflect.Message
- func (x *ProfileRequest) Reset()
- func (x *ProfileRequest) String() string
- type ProfileResponse
- type RegisterConfirmRequest
- func (*RegisterConfirmRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterConfirmRequest) GetToken() string
- func (*RegisterConfirmRequest) ProtoMessage()
- func (x *RegisterConfirmRequest) ProtoReflect() protoreflect.Message
- func (x *RegisterConfirmRequest) Reset()
- func (x *RegisterConfirmRequest) String() string
- type RegisterConfirmResponse
- func (*RegisterConfirmResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterConfirmResponse) GetResponse() *emptypb.Empty
- func (*RegisterConfirmResponse) ProtoMessage()
- func (x *RegisterConfirmResponse) ProtoReflect() protoreflect.Message
- func (x *RegisterConfirmResponse) Reset()
- func (x *RegisterConfirmResponse) String() string
- type RegisterRequest
- func (*RegisterRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterRequest) GetEmail() string
- func (x *RegisterRequest) GetName() string
- func (x *RegisterRequest) GetPassword() string
- func (x *RegisterRequest) GetTermsOk() bool
- func (x *RegisterRequest) GetToken() string
- func (*RegisterRequest) ProtoMessage()
- func (x *RegisterRequest) ProtoReflect() protoreflect.Message
- func (x *RegisterRequest) Reset()
- func (x *RegisterRequest) String() string
- type RegisterResponse
- type UnimplementedAuthServiceServer
- func (UnimplementedAuthServiceServer) HealthCheck(context.Context, *emptypb.Empty) (*HealthResponse, error)
- func (UnimplementedAuthServiceServer) Login(context.Context, *AuthenticateRequest) (*AuthenticateResponse, error)
- func (UnimplementedAuthServiceServer) PasswordRecover(context.Context, *PasswordRecoveryRequest) (*PasswordRecoveryResponse, error)
- func (UnimplementedAuthServiceServer) PasswordReset(context.Context, *PasswordResetRequest) (*PasswordResetResponse, error)
- func (UnimplementedAuthServiceServer) Profile(context.Context, *ProfileRequest) (*ProfileResponse, error)
- func (UnimplementedAuthServiceServer) Register(context.Context, *RegisterRequest) (*RegisterResponse, error)
- func (UnimplementedAuthServiceServer) RegisterConfirm(context.Context, *RegisterConfirmRequest) (*RegisterConfirmResponse, error)
- type UnimplementedEventServiceServer
- func (UnimplementedEventServiceServer) CreateBet(context.Context, *CreateBetRequest) (*CreateBetResponse, error)
- func (UnimplementedEventServiceServer) CreateEvent(context.Context, *CreateEventRequest) (*CreateEventResponse, error)
- func (UnimplementedEventServiceServer) GetBets(context.Context, *BetsRequest) (*BetsResponse, error)
- func (UnimplementedEventServiceServer) GetEvents(context.Context, *GetEventsRequest) (*GetEventsResponse, error)
- func (UnimplementedEventServiceServer) HealthCheck(context.Context, *emptypb.Empty) (*HealthResponse, error)
- func (UnimplementedEventServiceServer) SetResult(context.Context, *FightResultRequest) (*FightResultResponse, error)
- type UnimplementedFightersServiceServer
- func (UnimplementedFightersServiceServer) HealthCheck(context.Context, *emptypb.Empty) (*HealthResponse, error)
- func (UnimplementedFightersServiceServer) SearchFighters(context.Context, *FightersRequest) (*FightersResponse, error)
- func (UnimplementedFightersServiceServer) SearchFightersCount(context.Context, *FightersRequest) (*FightersCountResponse, error)
- type UnsafeAuthServiceServer
- type UnsafeEventServiceServer
- type UnsafeFightersServiceServer
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) GetClaim() string
- func (x *User) GetCreatedAt() int64
- func (x *User) GetEmail() string
- func (x *User) GetFlags() uint64
- func (x *User) GetName() string
- func (x *User) GetRank() string
- func (x *User) GetRoles() uint64
- func (x *User) GetUpdatedAt() int64
- func (x *User) GetUserId() int32
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) String() string
Constants ¶
const ( AuthService_Register_FullMethodName = "/AuthService/Register" AuthService_RegisterConfirm_FullMethodName = "/AuthService/RegisterConfirm" AuthService_Login_FullMethodName = "/AuthService/Login" AuthService_PasswordReset_FullMethodName = "/AuthService/PasswordReset" AuthService_PasswordRecover_FullMethodName = "/AuthService/PasswordRecover" AuthService_Profile_FullMethodName = "/AuthService/Profile" AuthService_HealthCheck_FullMethodName = "/AuthService/HealthCheck" )
const ( EventService_CreateEvent_FullMethodName = "/EventService/CreateEvent" EventService_GetEvents_FullMethodName = "/EventService/GetEvents" EventService_CreateBet_FullMethodName = "/EventService/CreateBet" EventService_GetBets_FullMethodName = "/EventService/GetBets" EventService_SetResult_FullMethodName = "/EventService/SetResult" EventService_HealthCheck_FullMethodName = "/EventService/HealthCheck" )
const ( FightersService_SearchFightersCount_FullMethodName = "/FightersService/SearchFightersCount" FightersService_SearchFighters_FullMethodName = "/FightersService/SearchFighters" FightersService_HealthCheck_FullMethodName = "/FightersService/HealthCheck" )
Variables ¶
var AuthService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "AuthService", HandlerType: (*AuthServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Register", Handler: _AuthService_Register_Handler, }, { MethodName: "RegisterConfirm", Handler: _AuthService_RegisterConfirm_Handler, }, { MethodName: "Login", Handler: _AuthService_Login_Handler, }, { MethodName: "PasswordReset", Handler: _AuthService_PasswordReset_Handler, }, { MethodName: "PasswordRecover", Handler: _AuthService_PasswordRecover_Handler, }, { MethodName: "Profile", Handler: _AuthService_Profile_Handler, }, { MethodName: "HealthCheck", Handler: _AuthService_HealthCheck_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "pickfighter.proto", }
AuthService_ServiceDesc is the grpc.ServiceDesc for AuthService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var EventService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "EventService", HandlerType: (*EventServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateEvent", Handler: _EventService_CreateEvent_Handler, }, { MethodName: "GetEvents", Handler: _EventService_GetEvents_Handler, }, { MethodName: "CreateBet", Handler: _EventService_CreateBet_Handler, }, { MethodName: "GetBets", Handler: _EventService_GetBets_Handler, }, { MethodName: "SetResult", Handler: _EventService_SetResult_Handler, }, { MethodName: "HealthCheck", Handler: _EventService_HealthCheck_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "pickfighter.proto", }
EventService_ServiceDesc is the grpc.ServiceDesc for EventService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var FightersService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "FightersService", HandlerType: (*FightersServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "SearchFightersCount", Handler: _FightersService_SearchFightersCount_Handler, }, { MethodName: "SearchFighters", Handler: _FightersService_SearchFighters_Handler, }, { MethodName: "HealthCheck", Handler: _FightersService_HealthCheck_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "pickfighter.proto", }
FightersService_ServiceDesc is the grpc.ServiceDesc for FightersService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_pickfighter_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAuthServiceServer ¶
func RegisterAuthServiceServer(s grpc.ServiceRegistrar, srv AuthServiceServer)
func RegisterEventServiceServer ¶
func RegisterEventServiceServer(s grpc.ServiceRegistrar, srv EventServiceServer)
func RegisterFightersServiceServer ¶
func RegisterFightersServiceServer(s grpc.ServiceRegistrar, srv FightersServiceServer)
Types ¶
type AuthServiceClient ¶
type AuthServiceClient interface { Register(ctx context.Context, in *RegisterRequest, opts ...grpc.CallOption) (*RegisterResponse, error) RegisterConfirm(ctx context.Context, in *RegisterConfirmRequest, opts ...grpc.CallOption) (*RegisterConfirmResponse, error) Login(ctx context.Context, in *AuthenticateRequest, opts ...grpc.CallOption) (*AuthenticateResponse, error) PasswordReset(ctx context.Context, in *PasswordResetRequest, opts ...grpc.CallOption) (*PasswordResetResponse, error) PasswordRecover(ctx context.Context, in *PasswordRecoveryRequest, opts ...grpc.CallOption) (*PasswordRecoveryResponse, error) Profile(ctx context.Context, in *ProfileRequest, opts ...grpc.CallOption) (*ProfileResponse, error) HealthCheck(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*HealthResponse, error) }
AuthServiceClient is the client API for AuthService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewAuthServiceClient ¶
func NewAuthServiceClient(cc grpc.ClientConnInterface) AuthServiceClient
type AuthServiceServer ¶
type AuthServiceServer interface { Register(context.Context, *RegisterRequest) (*RegisterResponse, error) RegisterConfirm(context.Context, *RegisterConfirmRequest) (*RegisterConfirmResponse, error) Login(context.Context, *AuthenticateRequest) (*AuthenticateResponse, error) PasswordReset(context.Context, *PasswordResetRequest) (*PasswordResetResponse, error) PasswordRecover(context.Context, *PasswordRecoveryRequest) (*PasswordRecoveryResponse, error) Profile(context.Context, *ProfileRequest) (*ProfileResponse, error) HealthCheck(context.Context, *emptypb.Empty) (*HealthResponse, error) // contains filtered or unexported methods }
AuthServiceServer is the server API for AuthService service. All implementations must embed UnimplementedAuthServiceServer for forward compatibility.
type AuthenticateRequest ¶
type AuthenticateRequest struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` RememberMe bool `protobuf:"varint,3,opt,name=rememberMe,proto3" json:"rememberMe,omitempty"` UserAgent string `protobuf:"bytes,4,opt,name=userAgent,proto3" json:"userAgent,omitempty"` IpAddress string `protobuf:"bytes,5,opt,name=ipAddress,proto3" json:"ipAddress,omitempty"` Subject string `protobuf:"bytes,6,opt,name=subject,proto3" json:"subject,omitempty"` ExpiresIn int64 `protobuf:"varint,7,opt,name=expiresIn,proto3" json:"expiresIn,omitempty"` Audience []string `protobuf:"bytes,8,rep,name=audience,proto3" json:"audience,omitempty"` Method int32 `protobuf:"varint,9,opt,name=method,proto3" json:"method,omitempty"` // contains filtered or unexported fields }
func (*AuthenticateRequest) Descriptor
deprecated
func (*AuthenticateRequest) Descriptor() ([]byte, []int)
Deprecated: Use AuthenticateRequest.ProtoReflect.Descriptor instead.
func (*AuthenticateRequest) GetAudience ¶
func (x *AuthenticateRequest) GetAudience() []string
func (*AuthenticateRequest) GetEmail ¶
func (x *AuthenticateRequest) GetEmail() string
func (*AuthenticateRequest) GetExpiresIn ¶
func (x *AuthenticateRequest) GetExpiresIn() int64
func (*AuthenticateRequest) GetIpAddress ¶
func (x *AuthenticateRequest) GetIpAddress() string
func (*AuthenticateRequest) GetMethod ¶
func (x *AuthenticateRequest) GetMethod() int32
func (*AuthenticateRequest) GetPassword ¶
func (x *AuthenticateRequest) GetPassword() string
func (*AuthenticateRequest) GetRememberMe ¶
func (x *AuthenticateRequest) GetRememberMe() bool
func (*AuthenticateRequest) GetSubject ¶
func (x *AuthenticateRequest) GetSubject() string
func (*AuthenticateRequest) GetUserAgent ¶
func (x *AuthenticateRequest) GetUserAgent() string
func (*AuthenticateRequest) ProtoMessage ¶
func (*AuthenticateRequest) ProtoMessage()
func (*AuthenticateRequest) ProtoReflect ¶
func (x *AuthenticateRequest) ProtoReflect() protoreflect.Message
func (*AuthenticateRequest) Reset ¶
func (x *AuthenticateRequest) Reset()
func (*AuthenticateRequest) String ¶
func (x *AuthenticateRequest) String() string
type AuthenticateResponse ¶
type AuthenticateResponse struct { TokenId string `protobuf:"bytes,1,opt,name=tokenId,proto3" json:"tokenId,omitempty"` AccessToken string `protobuf:"bytes,2,opt,name=accessToken,proto3" json:"accessToken,omitempty"` ExpirationTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=ExpirationTime,proto3" json:"ExpirationTime,omitempty"` // contains filtered or unexported fields }
func (*AuthenticateResponse) Descriptor
deprecated
func (*AuthenticateResponse) Descriptor() ([]byte, []int)
Deprecated: Use AuthenticateResponse.ProtoReflect.Descriptor instead.
func (*AuthenticateResponse) GetAccessToken ¶
func (x *AuthenticateResponse) GetAccessToken() string
func (*AuthenticateResponse) GetExpirationTime ¶
func (x *AuthenticateResponse) GetExpirationTime() *timestamppb.Timestamp
func (*AuthenticateResponse) GetTokenId ¶
func (x *AuthenticateResponse) GetTokenId() string
func (*AuthenticateResponse) ProtoMessage ¶
func (*AuthenticateResponse) ProtoMessage()
func (*AuthenticateResponse) ProtoReflect ¶
func (x *AuthenticateResponse) ProtoReflect() protoreflect.Message
func (*AuthenticateResponse) Reset ¶
func (x *AuthenticateResponse) Reset()
func (*AuthenticateResponse) String ¶
func (x *AuthenticateResponse) String() string
type Bet ¶
type Bet struct { BetId int32 `protobuf:"varint,1,opt,name=betId,proto3" json:"betId,omitempty"` FightId int32 `protobuf:"varint,2,opt,name=fightId,proto3" json:"fightId,omitempty"` UserId int32 `protobuf:"varint,3,opt,name=userId,proto3" json:"userId,omitempty"` FighterId int32 `protobuf:"varint,4,opt,name=fighterId,proto3" json:"fighterId,omitempty"` // contains filtered or unexported fields }
TODO change Bet and BetRequest models
func (*Bet) Descriptor
deprecated
func (*Bet) GetFightId ¶
func (*Bet) GetFighterId ¶
func (*Bet) ProtoMessage ¶
func (*Bet) ProtoMessage()
func (*Bet) ProtoReflect ¶
func (x *Bet) ProtoReflect() protoreflect.Message
type BetsRequest ¶
type BetsRequest struct { UserId int32 `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"` // contains filtered or unexported fields }
func (*BetsRequest) Descriptor
deprecated
func (*BetsRequest) Descriptor() ([]byte, []int)
Deprecated: Use BetsRequest.ProtoReflect.Descriptor instead.
func (*BetsRequest) GetUserId ¶
func (x *BetsRequest) GetUserId() int32
func (*BetsRequest) ProtoMessage ¶
func (*BetsRequest) ProtoMessage()
func (*BetsRequest) ProtoReflect ¶
func (x *BetsRequest) ProtoReflect() protoreflect.Message
func (*BetsRequest) Reset ¶
func (x *BetsRequest) Reset()
func (*BetsRequest) String ¶
func (x *BetsRequest) String() string
type BetsResponse ¶
type BetsResponse struct { Count int32 `protobuf:"varint,1,opt,name=Count,proto3" json:"Count,omitempty"` Bets []*Bet `protobuf:"bytes,2,rep,name=bets,proto3" json:"bets,omitempty"` // contains filtered or unexported fields }
func (*BetsResponse) Descriptor
deprecated
func (*BetsResponse) Descriptor() ([]byte, []int)
Deprecated: Use BetsResponse.ProtoReflect.Descriptor instead.
func (*BetsResponse) GetBets ¶
func (x *BetsResponse) GetBets() []*Bet
func (*BetsResponse) GetCount ¶
func (x *BetsResponse) GetCount() int32
func (*BetsResponse) ProtoMessage ¶
func (*BetsResponse) ProtoMessage()
func (*BetsResponse) ProtoReflect ¶
func (x *BetsResponse) ProtoReflect() protoreflect.Message
func (*BetsResponse) Reset ¶
func (x *BetsResponse) Reset()
func (*BetsResponse) String ¶
func (x *BetsResponse) String() string
type CreateBetRequest ¶
type CreateBetRequest struct { BetId int32 `protobuf:"varint,1,opt,name=betId,proto3" json:"betId,omitempty"` FightId int32 `protobuf:"varint,2,opt,name=fightId,proto3" json:"fightId,omitempty"` UserId int32 `protobuf:"varint,3,opt,name=userId,proto3" json:"userId,omitempty"` FighterId int32 `protobuf:"varint,4,opt,name=fighterId,proto3" json:"fighterId,omitempty"` // contains filtered or unexported fields }
func (*CreateBetRequest) Descriptor
deprecated
func (*CreateBetRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateBetRequest.ProtoReflect.Descriptor instead.
func (*CreateBetRequest) GetBetId ¶
func (x *CreateBetRequest) GetBetId() int32
func (*CreateBetRequest) GetFightId ¶
func (x *CreateBetRequest) GetFightId() int32
func (*CreateBetRequest) GetFighterId ¶
func (x *CreateBetRequest) GetFighterId() int32
func (*CreateBetRequest) GetUserId ¶
func (x *CreateBetRequest) GetUserId() int32
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
type CreateBetResponse ¶
type CreateBetResponse struct { BetId int32 `protobuf:"varint,1,opt,name=betId,proto3" json:"betId,omitempty"` // contains filtered or unexported fields }
func (*CreateBetResponse) Descriptor
deprecated
func (*CreateBetResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateBetResponse.ProtoReflect.Descriptor instead.
func (*CreateBetResponse) GetBetId ¶
func (x *CreateBetResponse) GetBetId() int32
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
type CreateEventRequest ¶
type CreateEventRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Fights []*Fight `protobuf:"bytes,2,rep,name=fights,proto3" json:"fights,omitempty"` // contains filtered or unexported fields }
func (*CreateEventRequest) Descriptor
deprecated
func (*CreateEventRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateEventRequest.ProtoReflect.Descriptor instead.
func (*CreateEventRequest) GetFights ¶
func (x *CreateEventRequest) GetFights() []*Fight
func (*CreateEventRequest) GetName ¶
func (x *CreateEventRequest) GetName() string
func (*CreateEventRequest) ProtoMessage ¶
func (*CreateEventRequest) ProtoMessage()
func (*CreateEventRequest) ProtoReflect ¶
func (x *CreateEventRequest) ProtoReflect() protoreflect.Message
func (*CreateEventRequest) Reset ¶
func (x *CreateEventRequest) Reset()
func (*CreateEventRequest) String ¶
func (x *CreateEventRequest) String() string
type CreateEventResponse ¶
type CreateEventResponse struct { EventId int32 `protobuf:"varint,1,opt,name=eventId,proto3" json:"eventId,omitempty"` // contains filtered or unexported fields }
func (*CreateEventResponse) Descriptor
deprecated
func (*CreateEventResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateEventResponse.ProtoReflect.Descriptor instead.
func (*CreateEventResponse) GetEventId ¶
func (x *CreateEventResponse) GetEventId() int32
func (*CreateEventResponse) ProtoMessage ¶
func (*CreateEventResponse) ProtoMessage()
func (*CreateEventResponse) ProtoReflect ¶
func (x *CreateEventResponse) ProtoReflect() protoreflect.Message
func (*CreateEventResponse) Reset ¶
func (x *CreateEventResponse) Reset()
func (*CreateEventResponse) String ¶
func (x *CreateEventResponse) String() string
type Event ¶
type Event struct { EventId int32 `protobuf:"varint,1,opt,name=eventId,proto3" json:"eventId,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Fights []*Fight `protobuf:"bytes,3,rep,name=fights,proto3" json:"fights,omitempty"` IsDone bool `protobuf:"varint,4,opt,name=isDone,proto3" json:"isDone,omitempty"` // contains filtered or unexported fields }
func (*Event) Descriptor
deprecated
func (*Event) GetEventId ¶
func (*Event) ProtoMessage ¶
func (*Event) ProtoMessage()
func (*Event) ProtoReflect ¶
func (x *Event) ProtoReflect() protoreflect.Message
type EventServiceClient ¶
type EventServiceClient interface { CreateEvent(ctx context.Context, in *CreateEventRequest, opts ...grpc.CallOption) (*CreateEventResponse, error) GetEvents(ctx context.Context, in *GetEventsRequest, opts ...grpc.CallOption) (*GetEventsResponse, error) CreateBet(ctx context.Context, in *CreateBetRequest, opts ...grpc.CallOption) (*CreateBetResponse, error) GetBets(ctx context.Context, in *BetsRequest, opts ...grpc.CallOption) (*BetsResponse, error) SetResult(ctx context.Context, in *FightResultRequest, opts ...grpc.CallOption) (*FightResultResponse, error) HealthCheck(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*HealthResponse, error) }
EventServiceClient is the client API for EventService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewEventServiceClient ¶
func NewEventServiceClient(cc grpc.ClientConnInterface) EventServiceClient
type EventServiceServer ¶
type EventServiceServer interface { CreateEvent(context.Context, *CreateEventRequest) (*CreateEventResponse, error) GetEvents(context.Context, *GetEventsRequest) (*GetEventsResponse, error) CreateBet(context.Context, *CreateBetRequest) (*CreateBetResponse, error) GetBets(context.Context, *BetsRequest) (*BetsResponse, error) SetResult(context.Context, *FightResultRequest) (*FightResultResponse, error) HealthCheck(context.Context, *emptypb.Empty) (*HealthResponse, error) // contains filtered or unexported methods }
EventServiceServer is the server API for EventService service. All implementations must embed UnimplementedEventServiceServer for forward compatibility.
type Fight ¶
type Fight struct { FightId int32 `protobuf:"varint,1,opt,name=fightId,proto3" json:"fightId,omitempty"` EventId int32 `protobuf:"varint,2,opt,name=eventId,proto3" json:"eventId,omitempty"` FighterRedId int32 `protobuf:"varint,3,opt,name=fighterRedId,proto3" json:"fighterRedId,omitempty"` FighterBlueId int32 `protobuf:"varint,4,opt,name=fighterBlueId,proto3" json:"fighterBlueId,omitempty"` IsDone bool `protobuf:"varint,5,opt,name=isDone,proto3" json:"isDone,omitempty"` IsCanceled bool `protobuf:"varint,6,opt,name=isCanceled,proto3" json:"isCanceled,omitempty"` IsDraw bool `protobuf:"varint,7,opt,name=isDraw,proto3" json:"isDraw,omitempty"` NotContest bool `protobuf:"varint,8,opt,name=notContest,proto3" json:"notContest,omitempty"` WinnerId int32 `protobuf:"varint,9,opt,name=winner_id,json=winnerId,proto3" json:"winner_id,omitempty"` CreatedAt int64 `protobuf:"varint,10,opt,name=createdAt,proto3" json:"createdAt,omitempty"` FightDate int64 `protobuf:"varint,11,opt,name=fightDate,proto3" json:"fightDate,omitempty"` // contains filtered or unexported fields }
func (*Fight) Descriptor
deprecated
func (*Fight) GetCreatedAt ¶
func (*Fight) GetEventId ¶
func (*Fight) GetFightDate ¶
func (*Fight) GetFightId ¶
func (*Fight) GetFighterBlueId ¶
func (*Fight) GetFighterRedId ¶
func (*Fight) GetIsCanceled ¶
func (*Fight) GetNotContest ¶
func (*Fight) GetWinnerId ¶
func (*Fight) ProtoMessage ¶
func (*Fight) ProtoMessage()
func (*Fight) ProtoReflect ¶
func (x *Fight) ProtoReflect() protoreflect.Message
type FightResultRequest ¶
type FightResultRequest struct { FightId int32 `protobuf:"varint,1,opt,name=fightId,proto3" json:"fightId,omitempty"` WinnerId int32 `protobuf:"varint,2,opt,name=winnerId,proto3" json:"winnerId,omitempty"` NotContest bool `protobuf:"varint,3,opt,name=notContest,proto3" json:"notContest,omitempty"` IsCanceled bool `protobuf:"varint,4,opt,name=isCanceled,proto3" json:"isCanceled,omitempty"` IsDraw bool `protobuf:"varint,5,opt,name=isDraw,proto3" json:"isDraw,omitempty"` Method string `protobuf:"bytes,6,opt,name=method,proto3" json:"method,omitempty"` Round int32 `protobuf:"varint,7,opt,name=round,proto3" json:"round,omitempty"` // contains filtered or unexported fields }
func (*FightResultRequest) Descriptor
deprecated
func (*FightResultRequest) Descriptor() ([]byte, []int)
Deprecated: Use FightResultRequest.ProtoReflect.Descriptor instead.
func (*FightResultRequest) GetFightId ¶
func (x *FightResultRequest) GetFightId() int32
func (*FightResultRequest) GetIsCanceled ¶
func (x *FightResultRequest) GetIsCanceled() bool
func (*FightResultRequest) GetIsDraw ¶
func (x *FightResultRequest) GetIsDraw() bool
func (*FightResultRequest) GetMethod ¶
func (x *FightResultRequest) GetMethod() string
func (*FightResultRequest) GetNotContest ¶
func (x *FightResultRequest) GetNotContest() bool
func (*FightResultRequest) GetRound ¶
func (x *FightResultRequest) GetRound() int32
func (*FightResultRequest) GetWinnerId ¶
func (x *FightResultRequest) GetWinnerId() int32
func (*FightResultRequest) ProtoMessage ¶
func (*FightResultRequest) ProtoMessage()
func (*FightResultRequest) ProtoReflect ¶
func (x *FightResultRequest) ProtoReflect() protoreflect.Message
func (*FightResultRequest) Reset ¶
func (x *FightResultRequest) Reset()
func (*FightResultRequest) String ¶
func (x *FightResultRequest) String() string
type FightResultResponse ¶
type FightResultResponse struct { FightId int32 `protobuf:"varint,1,opt,name=fightId,proto3" json:"fightId,omitempty"` // contains filtered or unexported fields }
func (*FightResultResponse) Descriptor
deprecated
func (*FightResultResponse) Descriptor() ([]byte, []int)
Deprecated: Use FightResultResponse.ProtoReflect.Descriptor instead.
func (*FightResultResponse) GetFightId ¶
func (x *FightResultResponse) GetFightId() int32
func (*FightResultResponse) ProtoMessage ¶
func (*FightResultResponse) ProtoMessage()
func (*FightResultResponse) ProtoReflect ¶
func (x *FightResultResponse) ProtoReflect() protoreflect.Message
func (*FightResultResponse) Reset ¶
func (x *FightResultResponse) Reset()
func (*FightResultResponse) String ¶
func (x *FightResultResponse) String() string
type Fighter ¶
type Fighter struct { FighterId int32 `protobuf:"varint,1,opt,name=fighterId,proto3" json:"fighterId,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` NickName string `protobuf:"bytes,3,opt,name=nickName,proto3" json:"nickName,omitempty"` DivisionId int32 `protobuf:"varint,4,opt,name=divisionId,proto3" json:"divisionId,omitempty"` Status string `protobuf:"bytes,5,opt,name=status,proto3" json:"status,omitempty"` Hometown string `protobuf:"bytes,6,opt,name=hometown,proto3" json:"hometown,omitempty"` TrainsAt string `protobuf:"bytes,7,opt,name=trainsAt,proto3" json:"trainsAt,omitempty"` FightingStyle string `protobuf:"bytes,8,opt,name=fightingStyle,proto3" json:"fightingStyle,omitempty"` Age int32 `protobuf:"varint,9,opt,name=age,proto3" json:"age,omitempty"` Height float32 `protobuf:"fixed32,10,opt,name=height,proto3" json:"height,omitempty"` Weight float32 `protobuf:"fixed32,11,opt,name=weight,proto3" json:"weight,omitempty"` OctagonDebut string `protobuf:"bytes,12,opt,name=octagonDebut,proto3" json:"octagonDebut,omitempty"` DebutTimestamp int32 `protobuf:"varint,13,opt,name=debutTimestamp,proto3" json:"debutTimestamp,omitempty"` Reach float32 `protobuf:"fixed32,14,opt,name=reach,proto3" json:"reach,omitempty"` LegReach float32 `protobuf:"fixed32,15,opt,name=legReach,proto3" json:"legReach,omitempty"` Wins int32 `protobuf:"varint,16,opt,name=wins,proto3" json:"wins,omitempty"` Loses int32 `protobuf:"varint,17,opt,name=loses,proto3" json:"loses,omitempty"` Draw int32 `protobuf:"varint,18,opt,name=draw,proto3" json:"draw,omitempty"` FighterUrl string `protobuf:"bytes,19,opt,name=fighterUrl,proto3" json:"fighterUrl,omitempty"` ImageUrl string `protobuf:"bytes,20,opt,name=imageUrl,proto3" json:"imageUrl,omitempty"` Stats *FighterStats `protobuf:"bytes,21,opt,name=stats,proto3" json:"stats,omitempty"` // contains filtered or unexported fields }
func (*Fighter) Descriptor
deprecated
func (*Fighter) GetDebutTimestamp ¶
func (*Fighter) GetDivisionId ¶
func (*Fighter) GetFighterId ¶
func (*Fighter) GetFighterUrl ¶
func (*Fighter) GetFightingStyle ¶
func (*Fighter) GetHometown ¶
func (*Fighter) GetImageUrl ¶
func (*Fighter) GetLegReach ¶
func (*Fighter) GetNickName ¶
func (*Fighter) GetOctagonDebut ¶
func (*Fighter) GetStats ¶
func (x *Fighter) GetStats() *FighterStats
func (*Fighter) GetTrainsAt ¶
func (*Fighter) ProtoMessage ¶
func (*Fighter) ProtoMessage()
func (*Fighter) ProtoReflect ¶
func (x *Fighter) ProtoReflect() protoreflect.Message
type FighterStats ¶
type FighterStats struct { StatId int32 `protobuf:"varint,1,opt,name=statId,proto3" json:"statId,omitempty"` FighterId int32 `protobuf:"varint,2,opt,name=fighterId,proto3" json:"fighterId,omitempty"` TotalSigStrLanded int32 `protobuf:"varint,3,opt,name=totalSigStrLanded,proto3" json:"totalSigStrLanded,omitempty"` TotalSigStrAttempted int32 `protobuf:"varint,4,opt,name=totalSigStrAttempted,proto3" json:"totalSigStrAttempted,omitempty"` StrAccuracy int32 `protobuf:"varint,5,opt,name=strAccuracy,proto3" json:"strAccuracy,omitempty"` TotalTkdLanded int32 `protobuf:"varint,6,opt,name=totalTkdLanded,proto3" json:"totalTkdLanded,omitempty"` TotalTkdAttempted int32 `protobuf:"varint,7,opt,name=totalTkdAttempted,proto3" json:"totalTkdAttempted,omitempty"` TkdAccuracy int32 `protobuf:"varint,8,opt,name=tkdAccuracy,proto3" json:"tkdAccuracy,omitempty"` SigStrLanded float32 `protobuf:"fixed32,9,opt,name=sigStrLanded,proto3" json:"sigStrLanded,omitempty"` SigStrAbs float32 `protobuf:"fixed32,10,opt,name=sigStrAbs,proto3" json:"sigStrAbs,omitempty"` SigStrDefense int32 `protobuf:"varint,11,opt,name=sigStrDefense,proto3" json:"sigStrDefense,omitempty"` TakedownDefense int32 `protobuf:"varint,12,opt,name=takedownDefense,proto3" json:"takedownDefense,omitempty"` TakedownAvg float32 `protobuf:"fixed32,13,opt,name=takedownAvg,proto3" json:"takedownAvg,omitempty"` SubmissionAvg float32 `protobuf:"fixed32,14,opt,name=submissionAvg,proto3" json:"submissionAvg,omitempty"` KnockdownAvg float32 `protobuf:"fixed32,15,opt,name=knockdownAvg,proto3" json:"knockdownAvg,omitempty"` AvgFightTime string `protobuf:"bytes,16,opt,name=avgFightTime,proto3" json:"avgFightTime,omitempty"` WinByKO int32 `protobuf:"varint,17,opt,name=winByKO,proto3" json:"winByKO,omitempty"` WinBySub int32 `protobuf:"varint,18,opt,name=winBySub,proto3" json:"winBySub,omitempty"` WinByDec int32 `protobuf:"varint,19,opt,name=winByDec,proto3" json:"winByDec,omitempty"` // contains filtered or unexported fields }
func (*FighterStats) Descriptor
deprecated
func (*FighterStats) Descriptor() ([]byte, []int)
Deprecated: Use FighterStats.ProtoReflect.Descriptor instead.
func (*FighterStats) GetAvgFightTime ¶
func (x *FighterStats) GetAvgFightTime() string
func (*FighterStats) GetFighterId ¶
func (x *FighterStats) GetFighterId() int32
func (*FighterStats) GetKnockdownAvg ¶
func (x *FighterStats) GetKnockdownAvg() float32
func (*FighterStats) GetSigStrAbs ¶
func (x *FighterStats) GetSigStrAbs() float32
func (*FighterStats) GetSigStrDefense ¶
func (x *FighterStats) GetSigStrDefense() int32
func (*FighterStats) GetSigStrLanded ¶
func (x *FighterStats) GetSigStrLanded() float32
func (*FighterStats) GetStatId ¶
func (x *FighterStats) GetStatId() int32
func (*FighterStats) GetStrAccuracy ¶
func (x *FighterStats) GetStrAccuracy() int32
func (*FighterStats) GetSubmissionAvg ¶
func (x *FighterStats) GetSubmissionAvg() float32
func (*FighterStats) GetTakedownAvg ¶
func (x *FighterStats) GetTakedownAvg() float32
func (*FighterStats) GetTakedownDefense ¶
func (x *FighterStats) GetTakedownDefense() int32
func (*FighterStats) GetTkdAccuracy ¶
func (x *FighterStats) GetTkdAccuracy() int32
func (*FighterStats) GetTotalSigStrAttempted ¶
func (x *FighterStats) GetTotalSigStrAttempted() int32
func (*FighterStats) GetTotalSigStrLanded ¶
func (x *FighterStats) GetTotalSigStrLanded() int32
func (*FighterStats) GetTotalTkdAttempted ¶
func (x *FighterStats) GetTotalTkdAttempted() int32
func (*FighterStats) GetTotalTkdLanded ¶
func (x *FighterStats) GetTotalTkdLanded() int32
func (*FighterStats) GetWinByDec ¶
func (x *FighterStats) GetWinByDec() int32
func (*FighterStats) GetWinByKO ¶
func (x *FighterStats) GetWinByKO() int32
func (*FighterStats) GetWinBySub ¶
func (x *FighterStats) GetWinBySub() int32
func (*FighterStats) ProtoMessage ¶
func (*FighterStats) ProtoMessage()
func (*FighterStats) ProtoReflect ¶
func (x *FighterStats) ProtoReflect() protoreflect.Message
func (*FighterStats) Reset ¶
func (x *FighterStats) Reset()
func (*FighterStats) String ¶
func (x *FighterStats) String() string
type FightersCountResponse ¶
type FightersCountResponse struct { Count int32 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` // contains filtered or unexported fields }
func (*FightersCountResponse) Descriptor
deprecated
func (*FightersCountResponse) Descriptor() ([]byte, []int)
Deprecated: Use FightersCountResponse.ProtoReflect.Descriptor instead.
func (*FightersCountResponse) GetCount ¶
func (x *FightersCountResponse) GetCount() int32
func (*FightersCountResponse) ProtoMessage ¶
func (*FightersCountResponse) ProtoMessage()
func (*FightersCountResponse) ProtoReflect ¶
func (x *FightersCountResponse) ProtoReflect() protoreflect.Message
func (*FightersCountResponse) Reset ¶
func (x *FightersCountResponse) Reset()
func (*FightersCountResponse) String ¶
func (x *FightersCountResponse) String() string
type FightersRequest ¶
type FightersRequest struct { Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` FightersIds []int32 `protobuf:"varint,2,rep,packed,name=fightersIds,proto3" json:"fightersIds,omitempty"` // contains filtered or unexported fields }
func (*FightersRequest) Descriptor
deprecated
func (*FightersRequest) Descriptor() ([]byte, []int)
Deprecated: Use FightersRequest.ProtoReflect.Descriptor instead.
func (*FightersRequest) GetFightersIds ¶
func (x *FightersRequest) GetFightersIds() []int32
func (*FightersRequest) GetStatus ¶
func (x *FightersRequest) GetStatus() string
func (*FightersRequest) ProtoMessage ¶
func (*FightersRequest) ProtoMessage()
func (*FightersRequest) ProtoReflect ¶
func (x *FightersRequest) ProtoReflect() protoreflect.Message
func (*FightersRequest) Reset ¶
func (x *FightersRequest) Reset()
func (*FightersRequest) String ¶
func (x *FightersRequest) String() string
type FightersResponse ¶
type FightersResponse struct { Fighters []*Fighter `protobuf:"bytes,1,rep,name=fighters,proto3" json:"fighters,omitempty"` // contains filtered or unexported fields }
func (*FightersResponse) Descriptor
deprecated
func (*FightersResponse) Descriptor() ([]byte, []int)
Deprecated: Use FightersResponse.ProtoReflect.Descriptor instead.
func (*FightersResponse) GetFighters ¶
func (x *FightersResponse) GetFighters() []*Fighter
func (*FightersResponse) ProtoMessage ¶
func (*FightersResponse) ProtoMessage()
func (*FightersResponse) ProtoReflect ¶
func (x *FightersResponse) ProtoReflect() protoreflect.Message
func (*FightersResponse) Reset ¶
func (x *FightersResponse) Reset()
func (*FightersResponse) String ¶
func (x *FightersResponse) String() string
type FightersServiceClient ¶
type FightersServiceClient interface { SearchFightersCount(ctx context.Context, in *FightersRequest, opts ...grpc.CallOption) (*FightersCountResponse, error) SearchFighters(ctx context.Context, in *FightersRequest, opts ...grpc.CallOption) (*FightersResponse, error) HealthCheck(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*HealthResponse, error) }
FightersServiceClient is the client API for FightersService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewFightersServiceClient ¶
func NewFightersServiceClient(cc grpc.ClientConnInterface) FightersServiceClient
type FightersServiceServer ¶
type FightersServiceServer interface { SearchFightersCount(context.Context, *FightersRequest) (*FightersCountResponse, error) SearchFighters(context.Context, *FightersRequest) (*FightersResponse, error) HealthCheck(context.Context, *emptypb.Empty) (*HealthResponse, error) // contains filtered or unexported methods }
FightersServiceServer is the server API for FightersService service. All implementations must embed UnimplementedFightersServiceServer for forward compatibility.
type GetEventsRequest ¶
type GetEventsRequest struct { Response *emptypb.Empty `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"` // contains filtered or unexported fields }
func (*GetEventsRequest) Descriptor
deprecated
func (*GetEventsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetEventsRequest.ProtoReflect.Descriptor instead.
func (*GetEventsRequest) GetResponse ¶
func (x *GetEventsRequest) GetResponse() *emptypb.Empty
func (*GetEventsRequest) ProtoMessage ¶
func (*GetEventsRequest) ProtoMessage()
func (*GetEventsRequest) ProtoReflect ¶
func (x *GetEventsRequest) ProtoReflect() protoreflect.Message
func (*GetEventsRequest) Reset ¶
func (x *GetEventsRequest) Reset()
func (*GetEventsRequest) String ¶
func (x *GetEventsRequest) String() string
type GetEventsResponse ¶
type GetEventsResponse struct { Count int32 `protobuf:"varint,1,opt,name=Count,proto3" json:"Count,omitempty"` Events []*Event `protobuf:"bytes,2,rep,name=events,proto3" json:"events,omitempty"` // contains filtered or unexported fields }
func (*GetEventsResponse) Descriptor
deprecated
func (*GetEventsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetEventsResponse.ProtoReflect.Descriptor instead.
func (*GetEventsResponse) GetCount ¶
func (x *GetEventsResponse) GetCount() int32
func (*GetEventsResponse) GetEvents ¶
func (x *GetEventsResponse) GetEvents() []*Event
func (*GetEventsResponse) ProtoMessage ¶
func (*GetEventsResponse) ProtoMessage()
func (*GetEventsResponse) ProtoReflect ¶
func (x *GetEventsResponse) ProtoReflect() protoreflect.Message
func (*GetEventsResponse) Reset ¶
func (x *GetEventsResponse) Reset()
func (*GetEventsResponse) String ¶
func (x *GetEventsResponse) String() string
type HealthResponse ¶
type HealthResponse struct { AppDevVersion string `protobuf:"bytes,1,opt,name=app_dev_version,json=appDevVersion,proto3" json:"app_dev_version,omitempty"` AppName string `protobuf:"bytes,2,opt,name=app_name,json=appName,proto3" json:"app_name,omitempty"` AppRunDate int64 `protobuf:"varint,3,opt,name=app_run_date,json=appRunDate,proto3" json:"app_run_date,omitempty"` AppTimeAlive int64 `protobuf:"varint,4,opt,name=app_time_alive,json=appTimeAlive,proto3" json:"app_time_alive,omitempty"` Healthy bool `protobuf:"varint,5,opt,name=healthy,proto3" json:"healthy,omitempty"` Message string `protobuf:"bytes,6,opt,name=message,proto3" json:"message,omitempty"` Timestamp string `protobuf:"bytes,7,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // contains filtered or unexported fields }
func (*HealthResponse) Descriptor
deprecated
func (*HealthResponse) Descriptor() ([]byte, []int)
Deprecated: Use HealthResponse.ProtoReflect.Descriptor instead.
func (*HealthResponse) GetAppDevVersion ¶
func (x *HealthResponse) GetAppDevVersion() string
func (*HealthResponse) GetAppName ¶
func (x *HealthResponse) GetAppName() string
func (*HealthResponse) GetAppRunDate ¶
func (x *HealthResponse) GetAppRunDate() int64
func (*HealthResponse) GetAppTimeAlive ¶
func (x *HealthResponse) GetAppTimeAlive() int64
func (*HealthResponse) GetHealthy ¶
func (x *HealthResponse) GetHealthy() bool
func (*HealthResponse) GetMessage ¶
func (x *HealthResponse) GetMessage() string
func (*HealthResponse) GetTimestamp ¶
func (x *HealthResponse) GetTimestamp() string
func (*HealthResponse) ProtoMessage ¶
func (*HealthResponse) ProtoMessage()
func (*HealthResponse) ProtoReflect ¶
func (x *HealthResponse) ProtoReflect() protoreflect.Message
func (*HealthResponse) Reset ¶
func (x *HealthResponse) Reset()
func (*HealthResponse) String ¶
func (x *HealthResponse) String() string
type PasswordRecoveryRequest ¶
type PasswordRecoveryRequest struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` ConfirmPassword string `protobuf:"bytes,3,opt,name=confirmPassword,proto3" json:"confirmPassword,omitempty"` // contains filtered or unexported fields }
func (*PasswordRecoveryRequest) Descriptor
deprecated
func (*PasswordRecoveryRequest) Descriptor() ([]byte, []int)
Deprecated: Use PasswordRecoveryRequest.ProtoReflect.Descriptor instead.
func (*PasswordRecoveryRequest) GetConfirmPassword ¶
func (x *PasswordRecoveryRequest) GetConfirmPassword() string
func (*PasswordRecoveryRequest) GetPassword ¶
func (x *PasswordRecoveryRequest) GetPassword() string
func (*PasswordRecoveryRequest) GetToken ¶
func (x *PasswordRecoveryRequest) GetToken() string
func (*PasswordRecoveryRequest) ProtoMessage ¶
func (*PasswordRecoveryRequest) ProtoMessage()
func (*PasswordRecoveryRequest) ProtoReflect ¶
func (x *PasswordRecoveryRequest) ProtoReflect() protoreflect.Message
func (*PasswordRecoveryRequest) Reset ¶
func (x *PasswordRecoveryRequest) Reset()
func (*PasswordRecoveryRequest) String ¶
func (x *PasswordRecoveryRequest) String() string
type PasswordRecoveryResponse ¶
type PasswordRecoveryResponse struct { Response *emptypb.Empty `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"` // contains filtered or unexported fields }
func (*PasswordRecoveryResponse) Descriptor
deprecated
func (*PasswordRecoveryResponse) Descriptor() ([]byte, []int)
Deprecated: Use PasswordRecoveryResponse.ProtoReflect.Descriptor instead.
func (*PasswordRecoveryResponse) GetResponse ¶
func (x *PasswordRecoveryResponse) GetResponse() *emptypb.Empty
func (*PasswordRecoveryResponse) ProtoMessage ¶
func (*PasswordRecoveryResponse) ProtoMessage()
func (*PasswordRecoveryResponse) ProtoReflect ¶
func (x *PasswordRecoveryResponse) ProtoReflect() protoreflect.Message
func (*PasswordRecoveryResponse) Reset ¶
func (x *PasswordRecoveryResponse) Reset()
func (*PasswordRecoveryResponse) String ¶
func (x *PasswordRecoveryResponse) String() string
type PasswordResetRequest ¶
type PasswordResetRequest struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` // contains filtered or unexported fields }
func (*PasswordResetRequest) Descriptor
deprecated
func (*PasswordResetRequest) Descriptor() ([]byte, []int)
Deprecated: Use PasswordResetRequest.ProtoReflect.Descriptor instead.
func (*PasswordResetRequest) GetEmail ¶
func (x *PasswordResetRequest) GetEmail() string
func (*PasswordResetRequest) ProtoMessage ¶
func (*PasswordResetRequest) ProtoMessage()
func (*PasswordResetRequest) ProtoReflect ¶
func (x *PasswordResetRequest) ProtoReflect() protoreflect.Message
func (*PasswordResetRequest) Reset ¶
func (x *PasswordResetRequest) Reset()
func (*PasswordResetRequest) String ¶
func (x *PasswordResetRequest) String() string
type PasswordResetResponse ¶
type PasswordResetResponse struct { Response *emptypb.Empty `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"` // contains filtered or unexported fields }
func (*PasswordResetResponse) Descriptor
deprecated
func (*PasswordResetResponse) Descriptor() ([]byte, []int)
Deprecated: Use PasswordResetResponse.ProtoReflect.Descriptor instead.
func (*PasswordResetResponse) GetResponse ¶
func (x *PasswordResetResponse) GetResponse() *emptypb.Empty
func (*PasswordResetResponse) ProtoMessage ¶
func (*PasswordResetResponse) ProtoMessage()
func (*PasswordResetResponse) ProtoReflect ¶
func (x *PasswordResetResponse) ProtoReflect() protoreflect.Message
func (*PasswordResetResponse) Reset ¶
func (x *PasswordResetResponse) Reset()
func (*PasswordResetResponse) String ¶
func (x *PasswordResetResponse) String() string
type ProfileRequest ¶
type ProfileRequest struct { UserId int32 `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*ProfileRequest) Descriptor
deprecated
func (*ProfileRequest) Descriptor() ([]byte, []int)
Deprecated: Use ProfileRequest.ProtoReflect.Descriptor instead.
func (*ProfileRequest) GetName ¶
func (x *ProfileRequest) GetName() string
func (*ProfileRequest) GetUserId ¶
func (x *ProfileRequest) GetUserId() int32
func (*ProfileRequest) ProtoMessage ¶
func (*ProfileRequest) ProtoMessage()
func (*ProfileRequest) ProtoReflect ¶
func (x *ProfileRequest) ProtoReflect() protoreflect.Message
func (*ProfileRequest) Reset ¶
func (x *ProfileRequest) Reset()
func (*ProfileRequest) String ¶
func (x *ProfileRequest) String() string
type ProfileResponse ¶
type ProfileResponse struct { User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` // contains filtered or unexported fields }
func (*ProfileResponse) Descriptor
deprecated
func (*ProfileResponse) Descriptor() ([]byte, []int)
Deprecated: Use ProfileResponse.ProtoReflect.Descriptor instead.
func (*ProfileResponse) GetUser ¶
func (x *ProfileResponse) GetUser() *User
func (*ProfileResponse) ProtoMessage ¶
func (*ProfileResponse) ProtoMessage()
func (*ProfileResponse) ProtoReflect ¶
func (x *ProfileResponse) ProtoReflect() protoreflect.Message
func (*ProfileResponse) Reset ¶
func (x *ProfileResponse) Reset()
func (*ProfileResponse) String ¶
func (x *ProfileResponse) String() string
type RegisterConfirmRequest ¶
type RegisterConfirmRequest struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*RegisterConfirmRequest) Descriptor
deprecated
func (*RegisterConfirmRequest) Descriptor() ([]byte, []int)
Deprecated: Use RegisterConfirmRequest.ProtoReflect.Descriptor instead.
func (*RegisterConfirmRequest) GetToken ¶
func (x *RegisterConfirmRequest) GetToken() string
func (*RegisterConfirmRequest) ProtoMessage ¶
func (*RegisterConfirmRequest) ProtoMessage()
func (*RegisterConfirmRequest) ProtoReflect ¶
func (x *RegisterConfirmRequest) ProtoReflect() protoreflect.Message
func (*RegisterConfirmRequest) Reset ¶
func (x *RegisterConfirmRequest) Reset()
func (*RegisterConfirmRequest) String ¶
func (x *RegisterConfirmRequest) String() string
type RegisterConfirmResponse ¶
type RegisterConfirmResponse struct { Response *emptypb.Empty `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"` // contains filtered or unexported fields }
func (*RegisterConfirmResponse) Descriptor
deprecated
func (*RegisterConfirmResponse) Descriptor() ([]byte, []int)
Deprecated: Use RegisterConfirmResponse.ProtoReflect.Descriptor instead.
func (*RegisterConfirmResponse) GetResponse ¶
func (x *RegisterConfirmResponse) GetResponse() *emptypb.Empty
func (*RegisterConfirmResponse) ProtoMessage ¶
func (*RegisterConfirmResponse) ProtoMessage()
func (*RegisterConfirmResponse) ProtoReflect ¶
func (x *RegisterConfirmResponse) ProtoReflect() protoreflect.Message
func (*RegisterConfirmResponse) Reset ¶
func (x *RegisterConfirmResponse) Reset()
func (*RegisterConfirmResponse) String ¶
func (x *RegisterConfirmResponse) String() string
type RegisterRequest ¶
type RegisterRequest struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Token string `protobuf:"bytes,4,opt,name=token,proto3" json:"token,omitempty"` TermsOk bool `protobuf:"varint,5,opt,name=termsOk,proto3" json:"termsOk,omitempty"` // contains filtered or unexported fields }
func (*RegisterRequest) Descriptor
deprecated
func (*RegisterRequest) Descriptor() ([]byte, []int)
Deprecated: Use RegisterRequest.ProtoReflect.Descriptor instead.
func (*RegisterRequest) GetEmail ¶
func (x *RegisterRequest) GetEmail() string
func (*RegisterRequest) GetName ¶
func (x *RegisterRequest) GetName() string
func (*RegisterRequest) GetPassword ¶
func (x *RegisterRequest) GetPassword() string
func (*RegisterRequest) GetTermsOk ¶
func (x *RegisterRequest) GetTermsOk() bool
func (*RegisterRequest) GetToken ¶
func (x *RegisterRequest) GetToken() string
func (*RegisterRequest) ProtoMessage ¶
func (*RegisterRequest) ProtoMessage()
func (*RegisterRequest) ProtoReflect ¶
func (x *RegisterRequest) ProtoReflect() protoreflect.Message
func (*RegisterRequest) Reset ¶
func (x *RegisterRequest) Reset()
func (*RegisterRequest) String ¶
func (x *RegisterRequest) String() string
type RegisterResponse ¶
type RegisterResponse struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*RegisterResponse) Descriptor
deprecated
func (*RegisterResponse) Descriptor() ([]byte, []int)
Deprecated: Use RegisterResponse.ProtoReflect.Descriptor instead.
func (*RegisterResponse) GetId ¶
func (x *RegisterResponse) GetId() int32
func (*RegisterResponse) ProtoMessage ¶
func (*RegisterResponse) ProtoMessage()
func (*RegisterResponse) ProtoReflect ¶
func (x *RegisterResponse) ProtoReflect() protoreflect.Message
func (*RegisterResponse) Reset ¶
func (x *RegisterResponse) Reset()
func (*RegisterResponse) String ¶
func (x *RegisterResponse) String() string
type UnimplementedAuthServiceServer ¶
type UnimplementedAuthServiceServer struct{}
UnimplementedAuthServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedAuthServiceServer) HealthCheck ¶
func (UnimplementedAuthServiceServer) HealthCheck(context.Context, *emptypb.Empty) (*HealthResponse, error)
func (UnimplementedAuthServiceServer) Login ¶
func (UnimplementedAuthServiceServer) Login(context.Context, *AuthenticateRequest) (*AuthenticateResponse, error)
func (UnimplementedAuthServiceServer) PasswordRecover ¶
func (UnimplementedAuthServiceServer) PasswordRecover(context.Context, *PasswordRecoveryRequest) (*PasswordRecoveryResponse, error)
func (UnimplementedAuthServiceServer) PasswordReset ¶
func (UnimplementedAuthServiceServer) PasswordReset(context.Context, *PasswordResetRequest) (*PasswordResetResponse, error)
func (UnimplementedAuthServiceServer) Profile ¶
func (UnimplementedAuthServiceServer) Profile(context.Context, *ProfileRequest) (*ProfileResponse, error)
func (UnimplementedAuthServiceServer) Register ¶
func (UnimplementedAuthServiceServer) Register(context.Context, *RegisterRequest) (*RegisterResponse, error)
func (UnimplementedAuthServiceServer) RegisterConfirm ¶
func (UnimplementedAuthServiceServer) RegisterConfirm(context.Context, *RegisterConfirmRequest) (*RegisterConfirmResponse, error)
type UnimplementedEventServiceServer ¶
type UnimplementedEventServiceServer struct{}
UnimplementedEventServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedEventServiceServer) CreateBet ¶
func (UnimplementedEventServiceServer) CreateBet(context.Context, *CreateBetRequest) (*CreateBetResponse, error)
func (UnimplementedEventServiceServer) CreateEvent ¶
func (UnimplementedEventServiceServer) CreateEvent(context.Context, *CreateEventRequest) (*CreateEventResponse, error)
func (UnimplementedEventServiceServer) GetBets ¶
func (UnimplementedEventServiceServer) GetBets(context.Context, *BetsRequest) (*BetsResponse, error)
func (UnimplementedEventServiceServer) GetEvents ¶
func (UnimplementedEventServiceServer) GetEvents(context.Context, *GetEventsRequest) (*GetEventsResponse, error)
func (UnimplementedEventServiceServer) HealthCheck ¶
func (UnimplementedEventServiceServer) HealthCheck(context.Context, *emptypb.Empty) (*HealthResponse, error)
func (UnimplementedEventServiceServer) SetResult ¶
func (UnimplementedEventServiceServer) SetResult(context.Context, *FightResultRequest) (*FightResultResponse, error)
type UnimplementedFightersServiceServer ¶
type UnimplementedFightersServiceServer struct{}
UnimplementedFightersServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedFightersServiceServer) HealthCheck ¶
func (UnimplementedFightersServiceServer) HealthCheck(context.Context, *emptypb.Empty) (*HealthResponse, error)
func (UnimplementedFightersServiceServer) SearchFighters ¶
func (UnimplementedFightersServiceServer) SearchFighters(context.Context, *FightersRequest) (*FightersResponse, error)
func (UnimplementedFightersServiceServer) SearchFightersCount ¶
func (UnimplementedFightersServiceServer) SearchFightersCount(context.Context, *FightersRequest) (*FightersCountResponse, error)
type UnsafeAuthServiceServer ¶
type UnsafeAuthServiceServer interface {
// contains filtered or unexported methods
}
UnsafeAuthServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AuthServiceServer will result in compilation errors.
type UnsafeEventServiceServer ¶
type UnsafeEventServiceServer interface {
// contains filtered or unexported methods
}
UnsafeEventServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to EventServiceServer will result in compilation errors.
type UnsafeFightersServiceServer ¶
type UnsafeFightersServiceServer interface {
// contains filtered or unexported methods
}
UnsafeFightersServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to FightersServiceServer will result in compilation errors.
type User ¶
type User struct { UserId int32 `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` Rank string `protobuf:"bytes,4,opt,name=rank,proto3" json:"rank,omitempty"` Claim string `protobuf:"bytes,5,opt,name=claim,proto3" json:"claim,omitempty"` Roles uint64 `protobuf:"varint,6,opt,name=roles,proto3" json:"roles,omitempty"` Flags uint64 `protobuf:"varint,7,opt,name=flags,proto3" json:"flags,omitempty"` CreatedAt int64 `protobuf:"varint,8,opt,name=createdAt,proto3" json:"createdAt,omitempty"` UpdatedAt int64 `protobuf:"varint,9,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"` // contains filtered or unexported fields }
func (*User) Descriptor
deprecated
func (*User) GetCreatedAt ¶
func (*User) GetUpdatedAt ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message