lol

package
v0.0.0-...-b544bf9 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
var File_lol_battle_field_proto protoreflect.FileDescriptor
View Source
var File_lol_champion_proto protoreflect.FileDescriptor
View Source
var File_lol_lol_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Champion.ProtoReflect.Descriptor instead.

func (*Champion) GetChampionId

func (x *Champion) GetChampionId() int32

func (*Champion) GetMessage

func (x *Champion) GetMessage() string

func (*Champion) GetName

func (x *Champion) GetName() string

func (*Champion) GetType

func (x *Champion) GetType() Champion_ChampionType

func (*Champion) ProtoMessage

func (*Champion) ProtoMessage()

func (*Champion) ProtoReflect

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

func (*Champion) Reset

func (x *Champion) Reset()

func (*Champion) String

func (x *Champion) String() string

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

func (Champion_ChampionType) EnumDescriptor deprecated

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

Deprecated: Use Champion_ChampionType.Descriptor instead.

func (Champion_ChampionType) Number

func (Champion_ChampionType) String

func (x Champion_ChampionType) String() string

func (Champion_ChampionType) Type

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.

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

func (UnimplementedLeagueOfLegendsServer) ListChampions

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.

Jump to

Keyboard shortcuts

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