Documentation ¶
Index ¶
- Variables
- func RegisterLeagueOfLegendsServer(s grpc.ServiceRegistrar, srv LeagueOfLegendsServer)
- type BattleField
- func (*BattleField) Descriptor() ([]byte, []int)deprecated
- func (x *BattleField) GetBattleFieldId() int32
- func (x *BattleField) GetDescription() string
- func (x *BattleField) GetName() string
- func (*BattleField) ProtoMessage()
- func (x *BattleField) ProtoReflect() protoreflect.Message
- func (x *BattleField) Reset()
- func (x *BattleField) String() string
- type Champion
- func (*Champion) Descriptor() ([]byte, []int)deprecated
- func (x *Champion) GetChampionId() int32
- func (x *Champion) GetMessage() string
- func (x *Champion) GetName() string
- func (x *Champion) GetType() Champion_ChampionType
- func (*Champion) ProtoMessage()
- func (x *Champion) ProtoReflect() protoreflect.Message
- func (x *Champion) Reset()
- func (x *Champion) String() string
- type Champion_ChampionType
- func (Champion_ChampionType) Descriptor() protoreflect.EnumDescriptor
- func (x Champion_ChampionType) Enum() *Champion_ChampionType
- func (Champion_ChampionType) EnumDescriptor() ([]byte, []int)deprecated
- func (x Champion_ChampionType) Number() protoreflect.EnumNumber
- func (x Champion_ChampionType) String() string
- func (Champion_ChampionType) Type() protoreflect.EnumType
- type GetBattleFieldRequest
- type GetBattleFieldResponse
- func (*GetBattleFieldResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetBattleFieldResponse) GetBattleField() *BattleField
- func (*GetBattleFieldResponse) ProtoMessage()
- func (x *GetBattleFieldResponse) ProtoReflect() protoreflect.Message
- func (x *GetBattleFieldResponse) Reset()
- func (x *GetBattleFieldResponse) String() string
- type GetChampionRequest
- func (*GetChampionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetChampionRequest) GetChampionId() int32
- func (*GetChampionRequest) ProtoMessage()
- func (x *GetChampionRequest) ProtoReflect() protoreflect.Message
- func (x *GetChampionRequest) Reset()
- func (x *GetChampionRequest) String() string
- type GetChampionResponse
- func (*GetChampionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetChampionResponse) GetChampion() *Champion
- func (*GetChampionResponse) ProtoMessage()
- func (x *GetChampionResponse) ProtoReflect() protoreflect.Message
- func (x *GetChampionResponse) Reset()
- func (x *GetChampionResponse) String() string
- type LeagueOfLegendsClient
- type LeagueOfLegendsServer
- type ListChampionsRequest
- type ListChampionsResponse
- func (*ListChampionsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListChampionsResponse) GetChampions() []*Champion
- func (*ListChampionsResponse) ProtoMessage()
- func (x *ListChampionsResponse) ProtoReflect() protoreflect.Message
- func (x *ListChampionsResponse) Reset()
- func (x *ListChampionsResponse) String() string
- type UnimplementedLeagueOfLegendsServer
- func (UnimplementedLeagueOfLegendsServer) GetBattleField(context.Context, *GetBattleFieldRequest) (*GetBattleFieldResponse, error)
- func (UnimplementedLeagueOfLegendsServer) GetChampion(context.Context, *GetChampionRequest) (*GetChampionResponse, error)
- func (UnimplementedLeagueOfLegendsServer) ListChampions(context.Context, *ListChampionsRequest) (*ListChampionsResponse, error)
- type UnsafeLeagueOfLegendsServer
Constants ¶
This section is empty.
Variables ¶
var ( Champion_ChampionType_name = map[int32]string{ 0: "UNKNOWN", 1: "MARKSMAN", 2: "MAGE", 3: "ASSASSIN", 4: "TANK", 5: "FIGHTER", 6: "SUPPORT", } Champion_ChampionType_value = map[string]int32{ "UNKNOWN": 0, "MARKSMAN": 1, "MAGE": 2, "ASSASSIN": 3, "TANK": 4, "FIGHTER": 5, "SUPPORT": 6, } )
Enum value maps for Champion_ChampionType.
var File_lol_battle_field_proto protoreflect.FileDescriptor
var File_lol_champion_proto protoreflect.FileDescriptor
var File_lol_lol_proto protoreflect.FileDescriptor
var LeagueOfLegends_ServiceDesc = grpc.ServiceDesc{ ServiceName: "lol.LeagueOfLegends", HandlerType: (*LeagueOfLegendsServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetChampion", Handler: _LeagueOfLegends_GetChampion_Handler, }, { MethodName: "ListChampions", Handler: _LeagueOfLegends_ListChampions_Handler, }, { MethodName: "GetBattleField", Handler: _LeagueOfLegends_GetBattleField_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "lol/lol.proto", }
LeagueOfLegends_ServiceDesc is the grpc.ServiceDesc for LeagueOfLegends service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterLeagueOfLegendsServer ¶
func RegisterLeagueOfLegendsServer(s grpc.ServiceRegistrar, srv LeagueOfLegendsServer)
Types ¶
type BattleField ¶
type BattleField struct { BattleFieldId int32 `protobuf:"varint,1,opt,name=battle_field_id,json=battleFieldId,proto3" json:"battle_field_id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // contains filtered or unexported fields }
func (*BattleField) Descriptor
deprecated
func (*BattleField) Descriptor() ([]byte, []int)
Deprecated: Use BattleField.ProtoReflect.Descriptor instead.
func (*BattleField) GetBattleFieldId ¶
func (x *BattleField) GetBattleFieldId() int32
func (*BattleField) GetDescription ¶
func (x *BattleField) GetDescription() string
func (*BattleField) GetName ¶
func (x *BattleField) GetName() string
func (*BattleField) ProtoMessage ¶
func (*BattleField) ProtoMessage()
func (*BattleField) ProtoReflect ¶
func (x *BattleField) ProtoReflect() protoreflect.Message
func (*BattleField) Reset ¶
func (x *BattleField) Reset()
func (*BattleField) String ¶
func (x *BattleField) String() string
type Champion ¶
type Champion struct { ChampionId int32 `protobuf:"varint,1,opt,name=champion_id,json=championId,proto3" json:"champion_id,omitempty"` Type Champion_ChampionType `protobuf:"varint,2,opt,name=type,proto3,enum=champion.Champion_ChampionType" json:"type,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Message string `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*Champion) Descriptor
deprecated
func (*Champion) GetChampionId ¶
func (*Champion) GetMessage ¶
func (*Champion) GetType ¶
func (x *Champion) GetType() Champion_ChampionType
func (*Champion) ProtoMessage ¶
func (*Champion) ProtoMessage()
func (*Champion) ProtoReflect ¶
func (x *Champion) ProtoReflect() protoreflect.Message
type Champion_ChampionType ¶
type Champion_ChampionType int32
const ( Champion_UNKNOWN Champion_ChampionType = 0 Champion_MARKSMAN Champion_ChampionType = 1 Champion_MAGE Champion_ChampionType = 2 Champion_ASSASSIN Champion_ChampionType = 3 Champion_TANK Champion_ChampionType = 4 Champion_FIGHTER Champion_ChampionType = 5 Champion_SUPPORT Champion_ChampionType = 6 )
func (Champion_ChampionType) Descriptor ¶
func (Champion_ChampionType) Descriptor() protoreflect.EnumDescriptor
func (Champion_ChampionType) Enum ¶
func (x Champion_ChampionType) Enum() *Champion_ChampionType
func (Champion_ChampionType) EnumDescriptor
deprecated
func (Champion_ChampionType) EnumDescriptor() ([]byte, []int)
Deprecated: Use Champion_ChampionType.Descriptor instead.
func (Champion_ChampionType) Number ¶
func (x Champion_ChampionType) Number() protoreflect.EnumNumber
func (Champion_ChampionType) String ¶
func (x Champion_ChampionType) String() string
func (Champion_ChampionType) Type ¶
func (Champion_ChampionType) Type() protoreflect.EnumType
type GetBattleFieldRequest ¶
type GetBattleFieldRequest struct {
// contains filtered or unexported fields
}
func (*GetBattleFieldRequest) Descriptor
deprecated
func (*GetBattleFieldRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetBattleFieldRequest.ProtoReflect.Descriptor instead.
func (*GetBattleFieldRequest) ProtoMessage ¶
func (*GetBattleFieldRequest) ProtoMessage()
func (*GetBattleFieldRequest) ProtoReflect ¶
func (x *GetBattleFieldRequest) ProtoReflect() protoreflect.Message
func (*GetBattleFieldRequest) Reset ¶
func (x *GetBattleFieldRequest) Reset()
func (*GetBattleFieldRequest) String ¶
func (x *GetBattleFieldRequest) String() string
type GetBattleFieldResponse ¶
type GetBattleFieldResponse struct { BattleField *BattleField `protobuf:"bytes,1,opt,name=battle_field,json=battleField,proto3" json:"battle_field,omitempty"` // contains filtered or unexported fields }
func (*GetBattleFieldResponse) Descriptor
deprecated
func (*GetBattleFieldResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetBattleFieldResponse.ProtoReflect.Descriptor instead.
func (*GetBattleFieldResponse) GetBattleField ¶
func (x *GetBattleFieldResponse) GetBattleField() *BattleField
func (*GetBattleFieldResponse) ProtoMessage ¶
func (*GetBattleFieldResponse) ProtoMessage()
func (*GetBattleFieldResponse) ProtoReflect ¶
func (x *GetBattleFieldResponse) ProtoReflect() protoreflect.Message
func (*GetBattleFieldResponse) Reset ¶
func (x *GetBattleFieldResponse) Reset()
func (*GetBattleFieldResponse) String ¶
func (x *GetBattleFieldResponse) String() string
type GetChampionRequest ¶
type GetChampionRequest struct { ChampionId int32 `protobuf:"varint,1,opt,name=champion_id,json=championId,proto3" json:"champion_id,omitempty"` // contains filtered or unexported fields }
func (*GetChampionRequest) Descriptor
deprecated
func (*GetChampionRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetChampionRequest.ProtoReflect.Descriptor instead.
func (*GetChampionRequest) GetChampionId ¶
func (x *GetChampionRequest) GetChampionId() int32
func (*GetChampionRequest) ProtoMessage ¶
func (*GetChampionRequest) ProtoMessage()
func (*GetChampionRequest) ProtoReflect ¶
func (x *GetChampionRequest) ProtoReflect() protoreflect.Message
func (*GetChampionRequest) Reset ¶
func (x *GetChampionRequest) Reset()
func (*GetChampionRequest) String ¶
func (x *GetChampionRequest) String() string
type GetChampionResponse ¶
type GetChampionResponse struct { Champion *Champion `protobuf:"bytes,1,opt,name=champion,proto3" json:"champion,omitempty"` // contains filtered or unexported fields }
func (*GetChampionResponse) Descriptor
deprecated
func (*GetChampionResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetChampionResponse.ProtoReflect.Descriptor instead.
func (*GetChampionResponse) GetChampion ¶
func (x *GetChampionResponse) GetChampion() *Champion
func (*GetChampionResponse) ProtoMessage ¶
func (*GetChampionResponse) ProtoMessage()
func (*GetChampionResponse) ProtoReflect ¶
func (x *GetChampionResponse) ProtoReflect() protoreflect.Message
func (*GetChampionResponse) Reset ¶
func (x *GetChampionResponse) Reset()
func (*GetChampionResponse) String ¶
func (x *GetChampionResponse) String() string
type LeagueOfLegendsClient ¶
type LeagueOfLegendsClient interface { GetChampion(ctx context.Context, in *GetChampionRequest, opts ...grpc.CallOption) (*GetChampionResponse, error) ListChampions(ctx context.Context, in *ListChampionsRequest, opts ...grpc.CallOption) (*ListChampionsResponse, error) GetBattleField(ctx context.Context, in *GetBattleFieldRequest, opts ...grpc.CallOption) (*GetBattleFieldResponse, error) }
LeagueOfLegendsClient is the client API for LeagueOfLegends 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 NewLeagueOfLegendsClient ¶
func NewLeagueOfLegendsClient(cc grpc.ClientConnInterface) LeagueOfLegendsClient
type LeagueOfLegendsServer ¶
type LeagueOfLegendsServer interface { GetChampion(context.Context, *GetChampionRequest) (*GetChampionResponse, error) ListChampions(context.Context, *ListChampionsRequest) (*ListChampionsResponse, error) GetBattleField(context.Context, *GetBattleFieldRequest) (*GetBattleFieldResponse, error) // contains filtered or unexported methods }
LeagueOfLegendsServer is the server API for LeagueOfLegends service. All implementations must embed UnimplementedLeagueOfLegendsServer for forward compatibility
type ListChampionsRequest ¶
type ListChampionsRequest struct {
// contains filtered or unexported fields
}
func (*ListChampionsRequest) Descriptor
deprecated
func (*ListChampionsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListChampionsRequest.ProtoReflect.Descriptor instead.
func (*ListChampionsRequest) ProtoMessage ¶
func (*ListChampionsRequest) ProtoMessage()
func (*ListChampionsRequest) ProtoReflect ¶
func (x *ListChampionsRequest) ProtoReflect() protoreflect.Message
func (*ListChampionsRequest) Reset ¶
func (x *ListChampionsRequest) Reset()
func (*ListChampionsRequest) String ¶
func (x *ListChampionsRequest) String() string
type ListChampionsResponse ¶
type ListChampionsResponse struct { Champions []*Champion `protobuf:"bytes,1,rep,name=champions,proto3" json:"champions,omitempty"` // contains filtered or unexported fields }
func (*ListChampionsResponse) Descriptor
deprecated
func (*ListChampionsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListChampionsResponse.ProtoReflect.Descriptor instead.
func (*ListChampionsResponse) GetChampions ¶
func (x *ListChampionsResponse) GetChampions() []*Champion
func (*ListChampionsResponse) ProtoMessage ¶
func (*ListChampionsResponse) ProtoMessage()
func (*ListChampionsResponse) ProtoReflect ¶
func (x *ListChampionsResponse) ProtoReflect() protoreflect.Message
func (*ListChampionsResponse) Reset ¶
func (x *ListChampionsResponse) Reset()
func (*ListChampionsResponse) String ¶
func (x *ListChampionsResponse) String() string
type UnimplementedLeagueOfLegendsServer ¶
type UnimplementedLeagueOfLegendsServer struct { }
UnimplementedLeagueOfLegendsServer must be embedded to have forward compatible implementations.
func (UnimplementedLeagueOfLegendsServer) GetBattleField ¶
func (UnimplementedLeagueOfLegendsServer) GetBattleField(context.Context, *GetBattleFieldRequest) (*GetBattleFieldResponse, error)
func (UnimplementedLeagueOfLegendsServer) GetChampion ¶
func (UnimplementedLeagueOfLegendsServer) GetChampion(context.Context, *GetChampionRequest) (*GetChampionResponse, error)
func (UnimplementedLeagueOfLegendsServer) ListChampions ¶
func (UnimplementedLeagueOfLegendsServer) ListChampions(context.Context, *ListChampionsRequest) (*ListChampionsResponse, error)
type UnsafeLeagueOfLegendsServer ¶
type UnsafeLeagueOfLegendsServer interface {
// contains filtered or unexported methods
}
UnsafeLeagueOfLegendsServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to LeagueOfLegendsServer will result in compilation errors.