rs3

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2020 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Skill_name = map[int32]string{
		0:  "ATTACK",
		1:  "DEFENCE",
		2:  "STRENGTH",
		3:  "CONSTITUTION",
		4:  "RANGED",
		5:  "PRAYER",
		6:  "MAGIC",
		7:  "COOKING",
		8:  "WOODCUTTING",
		9:  "FLETCHING",
		10: "FISHING",
		11: "FIREMAKING",
		12: "CRAFTING",
		13: "SMITHING",
		14: "MINING",
		15: "HERBLORE",
		16: "AGILITY",
		17: "THIEVING",
		18: "SLAYER",
		19: "FARMING",
		20: "RUNECRAFTING",
		21: "HUNTER",
		22: "CONSTRUCTION",
		23: "SUMMONING",
		24: "DUNGEONEERING",
		25: "DIVINATION",
		26: "INVENTION",
		27: "ARCHAEOLOGY",
	}
	Skill_value = map[string]int32{
		"ATTACK":        0,
		"DEFENCE":       1,
		"STRENGTH":      2,
		"CONSTITUTION":  3,
		"RANGED":        4,
		"PRAYER":        5,
		"MAGIC":         6,
		"COOKING":       7,
		"WOODCUTTING":   8,
		"FLETCHING":     9,
		"FISHING":       10,
		"FIREMAKING":    11,
		"CRAFTING":      12,
		"SMITHING":      13,
		"MINING":        14,
		"HERBLORE":      15,
		"AGILITY":       16,
		"THIEVING":      17,
		"SLAYER":        18,
		"FARMING":       19,
		"RUNECRAFTING":  20,
		"HUNTER":        21,
		"CONSTRUCTION":  22,
		"SUMMONING":     23,
		"DUNGEONEERING": 24,
		"DIVINATION":    25,
		"INVENTION":     26,
		"ARCHAEOLOGY":   27,
	}
)

Enum value maps for Skill.

Functions

func RegisterRunescapeServer

func RegisterRunescapeServer(s grpc.ServiceRegistrar, srv RunescapeServer)

Types

type GetPlayerProfileRequest

type GetPlayerProfileRequest struct {
	Name          string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	ActivityCount int32  `protobuf:"varint,2,opt,name=activity_count,json=activityCount,proto3" json:"activity_count,omitempty"`
	// contains filtered or unexported fields
}

func (*GetPlayerProfileRequest) Descriptor deprecated

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

Deprecated: Use GetPlayerProfileRequest.ProtoReflect.Descriptor instead.

func (*GetPlayerProfileRequest) GetActivityCount

func (x *GetPlayerProfileRequest) GetActivityCount() int32

func (*GetPlayerProfileRequest) GetName

func (x *GetPlayerProfileRequest) GetName() string

func (*GetPlayerProfileRequest) ProtoMessage

func (*GetPlayerProfileRequest) ProtoMessage()

func (*GetPlayerProfileRequest) ProtoReflect

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

func (*GetPlayerProfileRequest) Reset

func (x *GetPlayerProfileRequest) Reset()

func (*GetPlayerProfileRequest) String

func (x *GetPlayerProfileRequest) String() string

type PlayerActivityItem

type PlayerActivityItem struct {
	Timestamp int64  `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	Long      string `protobuf:"bytes,2,opt,name=long,proto3" json:"long,omitempty"`
	Short     string `protobuf:"bytes,3,opt,name=short,proto3" json:"short,omitempty"`
	// contains filtered or unexported fields
}

func (*PlayerActivityItem) Descriptor deprecated

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

Deprecated: Use PlayerActivityItem.ProtoReflect.Descriptor instead.

func (*PlayerActivityItem) GetLong

func (x *PlayerActivityItem) GetLong() string

func (*PlayerActivityItem) GetShort

func (x *PlayerActivityItem) GetShort() string

func (*PlayerActivityItem) GetTimestamp

func (x *PlayerActivityItem) GetTimestamp() int64

func (*PlayerActivityItem) ProtoMessage

func (*PlayerActivityItem) ProtoMessage()

func (*PlayerActivityItem) ProtoReflect

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

func (*PlayerActivityItem) Reset

func (x *PlayerActivityItem) Reset()

func (*PlayerActivityItem) String

func (x *PlayerActivityItem) String() string

type PlayerProfile

type PlayerProfile struct {
	Name        string                `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Rank        int32                 `protobuf:"varint,2,opt,name=rank,proto3" json:"rank,omitempty"`
	TotalLevel  int32                 `protobuf:"varint,3,opt,name=total_level,json=totalLevel,proto3" json:"total_level,omitempty"`
	TotalXp     int64                 `protobuf:"varint,4,opt,name=total_xp,json=totalXp,proto3" json:"total_xp,omitempty"`
	CombatLevel *int32                `protobuf:"varint,5,opt,name=combat_level,json=combatLevel,proto3,oneof" json:"combat_level,omitempty"` // Only available form RuneMetrics data source
	QuestInfo   *QuestData            `protobuf:"bytes,6,opt,name=quest_info,json=questInfo,proto3,oneof" json:"quest_info,omitempty"`        // Only available from RuneMetrics data source
	Skills      []*SkillData          `protobuf:"bytes,7,rep,name=skills,proto3" json:"skills,omitempty"`
	Activity    []*PlayerActivityItem `protobuf:"bytes,8,rep,name=activity,proto3" json:"activity,omitempty"` // Only available from RuneMetrics data source
	// contains filtered or unexported fields
}

func (*PlayerProfile) Descriptor deprecated

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

Deprecated: Use PlayerProfile.ProtoReflect.Descriptor instead.

func (*PlayerProfile) GetActivity

func (x *PlayerProfile) GetActivity() []*PlayerActivityItem

func (*PlayerProfile) GetCombatLevel

func (x *PlayerProfile) GetCombatLevel() int32

func (*PlayerProfile) GetName

func (x *PlayerProfile) GetName() string

func (*PlayerProfile) GetQuestInfo

func (x *PlayerProfile) GetQuestInfo() *QuestData

func (*PlayerProfile) GetRank

func (x *PlayerProfile) GetRank() int32

func (*PlayerProfile) GetSkills

func (x *PlayerProfile) GetSkills() []*SkillData

func (*PlayerProfile) GetTotalLevel

func (x *PlayerProfile) GetTotalLevel() int32

func (*PlayerProfile) GetTotalXp

func (x *PlayerProfile) GetTotalXp() int64

func (*PlayerProfile) ProtoMessage

func (*PlayerProfile) ProtoMessage()

func (*PlayerProfile) ProtoReflect

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

func (*PlayerProfile) Reset

func (x *PlayerProfile) Reset()

func (*PlayerProfile) String

func (x *PlayerProfile) String() string

type QuestData

type QuestData struct {
	Completed  int32 `protobuf:"varint,1,opt,name=completed,proto3" json:"completed,omitempty"`
	Started    int32 `protobuf:"varint,2,opt,name=started,proto3" json:"started,omitempty"`
	NotStarted int32 `protobuf:"varint,3,opt,name=not_started,json=notStarted,proto3" json:"not_started,omitempty"`
	// contains filtered or unexported fields
}

func (*QuestData) Descriptor deprecated

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

Deprecated: Use QuestData.ProtoReflect.Descriptor instead.

func (*QuestData) GetCompleted

func (x *QuestData) GetCompleted() int32

func (*QuestData) GetNotStarted

func (x *QuestData) GetNotStarted() int32

func (*QuestData) GetStarted

func (x *QuestData) GetStarted() int32

func (*QuestData) ProtoMessage

func (*QuestData) ProtoMessage()

func (*QuestData) ProtoReflect

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

func (*QuestData) Reset

func (x *QuestData) Reset()

func (*QuestData) String

func (x *QuestData) String() string

type RunescapeClient

type RunescapeClient interface {
	GetPlayerProfile(ctx context.Context, in *GetPlayerProfileRequest, opts ...grpc.CallOption) (*PlayerProfile, error)
}

RunescapeClient is the client API for Runescape 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 NewRunescapeClient

func NewRunescapeClient(cc grpc.ClientConnInterface) RunescapeClient

type RunescapeServer

type RunescapeServer interface {
	GetPlayerProfile(context.Context, *GetPlayerProfileRequest) (*PlayerProfile, error)
	// contains filtered or unexported methods
}

RunescapeServer is the server API for Runescape service. All implementations must embed UnimplementedRunescapeServer for forward compatibility

type Skill

type Skill int32
const (
	Skill_ATTACK        Skill = 0
	Skill_DEFENCE       Skill = 1
	Skill_STRENGTH      Skill = 2
	Skill_CONSTITUTION  Skill = 3
	Skill_RANGED        Skill = 4
	Skill_PRAYER        Skill = 5
	Skill_MAGIC         Skill = 6
	Skill_COOKING       Skill = 7
	Skill_WOODCUTTING   Skill = 8
	Skill_FLETCHING     Skill = 9
	Skill_FISHING       Skill = 10
	Skill_FIREMAKING    Skill = 11
	Skill_CRAFTING      Skill = 12
	Skill_SMITHING      Skill = 13
	Skill_MINING        Skill = 14
	Skill_HERBLORE      Skill = 15
	Skill_AGILITY       Skill = 16
	Skill_THIEVING      Skill = 17
	Skill_SLAYER        Skill = 18
	Skill_FARMING       Skill = 19
	Skill_RUNECRAFTING  Skill = 20
	Skill_HUNTER        Skill = 21
	Skill_CONSTRUCTION  Skill = 22
	Skill_SUMMONING     Skill = 23
	Skill_DUNGEONEERING Skill = 24
	Skill_DIVINATION    Skill = 25
	Skill_INVENTION     Skill = 26
	Skill_ARCHAEOLOGY   Skill = 27
)

func (Skill) Descriptor

func (Skill) Descriptor() protoreflect.EnumDescriptor

func (Skill) Enum

func (x Skill) Enum() *Skill

func (Skill) EnumDescriptor deprecated

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

Deprecated: Use Skill.Descriptor instead.

func (Skill) Number

func (x Skill) Number() protoreflect.EnumNumber

func (Skill) String

func (x Skill) String() string

func (Skill) Type

func (Skill) Type() protoreflect.EnumType

type SkillData

type SkillData struct {
	Skill        Skill `protobuf:"varint,1,opt,name=skill,proto3,enum=rs3.Skill" json:"skill,omitempty"`
	Rank         int32 `protobuf:"varint,2,opt,name=rank,proto3" json:"rank,omitempty"`
	Level        int32 `protobuf:"varint,3,opt,name=level,proto3" json:"level,omitempty"`
	VirtualLevel int32 `protobuf:"varint,4,opt,name=virtual_level,json=virtualLevel,proto3" json:"virtual_level,omitempty"`
	Xp           int64 `protobuf:"varint,5,opt,name=xp,proto3" json:"xp,omitempty"`
	// contains filtered or unexported fields
}

func (*SkillData) Descriptor deprecated

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

Deprecated: Use SkillData.ProtoReflect.Descriptor instead.

func (*SkillData) GetLevel

func (x *SkillData) GetLevel() int32

func (*SkillData) GetRank

func (x *SkillData) GetRank() int32

func (*SkillData) GetSkill

func (x *SkillData) GetSkill() Skill

func (*SkillData) GetVirtualLevel

func (x *SkillData) GetVirtualLevel() int32

func (*SkillData) GetXp

func (x *SkillData) GetXp() int64

func (*SkillData) ProtoMessage

func (*SkillData) ProtoMessage()

func (*SkillData) ProtoReflect

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

func (*SkillData) Reset

func (x *SkillData) Reset()

func (*SkillData) String

func (x *SkillData) String() string

type UnimplementedRunescapeServer

type UnimplementedRunescapeServer struct {
}

UnimplementedRunescapeServer must be embedded to have forward compatible implementations.

func (UnimplementedRunescapeServer) GetPlayerProfile

type UnsafeRunescapeServer

type UnsafeRunescapeServer interface {
	// contains filtered or unexported methods
}

UnsafeRunescapeServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to RunescapeServer will result in compilation errors.

Jump to

Keyboard shortcuts

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