pb

package
v0.0.0-...-ed93953 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterStatsServiceServer

func RegisterStatsServiceServer(s *grpc.Server, srv StatsServiceServer)

Types

type Player

type Player struct {
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Team                 string   `protobuf:"bytes,2,opt,name=team,proto3" json:"team,omitempty"`
	Nationality          string   `protobuf:"bytes,3,opt,name=nationality,proto3" json:"nationality,omitempty"`
	Position             string   `protobuf:"bytes,4,opt,name=position,proto3" json:"position,omitempty"`
	Appearences          int32    `protobuf:"varint,5,opt,name=appearences,proto3" json:"appearences,omitempty"`
	Goals                int32    `protobuf:"varint,6,opt,name=goals,proto3" json:"goals,omitempty"`
	Assists              int32    `protobuf:"varint,7,opt,name=assists,proto3" json:"assists,omitempty"`
	Passes               int32    `protobuf:"varint,8,opt,name=passes,proto3" json:"passes,omitempty"`
	Interceptions        int32    `protobuf:"varint,9,opt,name=interceptions,proto3" json:"interceptions,omitempty"`
	Tackles              int32    `protobuf:"varint,10,opt,name=tackles,proto3" json:"tackles,omitempty"`
	Fouls                int32    `protobuf:"varint,11,opt,name=fouls,proto3" json:"fouls,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Player) Descriptor

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

func (*Player) GetAppearences

func (m *Player) GetAppearences() int32

func (*Player) GetAssists

func (m *Player) GetAssists() int32

func (*Player) GetFouls

func (m *Player) GetFouls() int32

func (*Player) GetGoals

func (m *Player) GetGoals() int32

func (*Player) GetInterceptions

func (m *Player) GetInterceptions() int32

func (*Player) GetName

func (m *Player) GetName() string

func (*Player) GetNationality

func (m *Player) GetNationality() string

func (*Player) GetPasses

func (m *Player) GetPasses() int32

func (*Player) GetPosition

func (m *Player) GetPosition() string

func (*Player) GetTackles

func (m *Player) GetTackles() int32

func (*Player) GetTeam

func (m *Player) GetTeam() string

func (*Player) ProtoMessage

func (*Player) ProtoMessage()

func (*Player) Reset

func (m *Player) Reset()

func (*Player) String

func (m *Player) String() string

func (*Player) XXX_DiscardUnknown

func (m *Player) XXX_DiscardUnknown()

func (*Player) XXX_Marshal

func (m *Player) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Player) XXX_Merge

func (m *Player) XXX_Merge(src proto.Message)

func (*Player) XXX_Size

func (m *Player) XXX_Size() int

func (*Player) XXX_Unmarshal

func (m *Player) XXX_Unmarshal(b []byte) error

type PositionReply

type PositionReply struct {
	Players              []*Player `protobuf:"bytes,1,rep,name=players,proto3" json:"players,omitempty"`
	Err                  string    `protobuf:"bytes,2,opt,name=err,proto3" json:"err,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (*PositionReply) Descriptor

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

func (*PositionReply) GetErr

func (m *PositionReply) GetErr() string

func (*PositionReply) GetPlayers

func (m *PositionReply) GetPlayers() []*Player

func (*PositionReply) ProtoMessage

func (*PositionReply) ProtoMessage()

func (*PositionReply) Reset

func (m *PositionReply) Reset()

func (*PositionReply) String

func (m *PositionReply) String() string

func (*PositionReply) XXX_DiscardUnknown

func (m *PositionReply) XXX_DiscardUnknown()

func (*PositionReply) XXX_Marshal

func (m *PositionReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PositionReply) XXX_Merge

func (m *PositionReply) XXX_Merge(src proto.Message)

func (*PositionReply) XXX_Size

func (m *PositionReply) XXX_Size() int

func (*PositionReply) XXX_Unmarshal

func (m *PositionReply) XXX_Unmarshal(b []byte) error

type PositionRequest

type PositionRequest struct {
	Position             string   `protobuf:"bytes,1,opt,name=position,proto3" json:"position,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PositionRequest) Descriptor

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

func (*PositionRequest) GetPosition

func (m *PositionRequest) GetPosition() string

func (*PositionRequest) ProtoMessage

func (*PositionRequest) ProtoMessage()

func (*PositionRequest) Reset

func (m *PositionRequest) Reset()

func (*PositionRequest) String

func (m *PositionRequest) String() string

func (*PositionRequest) XXX_DiscardUnknown

func (m *PositionRequest) XXX_DiscardUnknown()

func (*PositionRequest) XXX_Marshal

func (m *PositionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PositionRequest) XXX_Merge

func (m *PositionRequest) XXX_Merge(src proto.Message)

func (*PositionRequest) XXX_Size

func (m *PositionRequest) XXX_Size() int

func (*PositionRequest) XXX_Unmarshal

func (m *PositionRequest) XXX_Unmarshal(b []byte) error

type StatsServiceClient

type StatsServiceClient interface {
	ListTable(ctx context.Context, in *TableRequest, opts ...grpc.CallOption) (*TableReply, error)
	ListTeamPlayers(ctx context.Context, in *TeamRequest, opts ...grpc.CallOption) (*TeamReply, error)
	ListPositionPlayers(ctx context.Context, in *PositionRequest, opts ...grpc.CallOption) (*PositionReply, error)
}

StatsServiceClient is the client API for StatsService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewStatsServiceClient

func NewStatsServiceClient(cc *grpc.ClientConn) StatsServiceClient

type StatsServiceServer

type StatsServiceServer interface {
	ListTable(context.Context, *TableRequest) (*TableReply, error)
	ListTeamPlayers(context.Context, *TeamRequest) (*TeamReply, error)
	ListPositionPlayers(context.Context, *PositionRequest) (*PositionReply, error)
}

StatsServiceServer is the server API for StatsService service.

type Table

type Table struct {
	TeamName             string   `protobuf:"bytes,1,opt,name=teamName,proto3" json:"teamName,omitempty"`
	TeamPlayed           int32    `protobuf:"varint,2,opt,name=teamPlayed,proto3" json:"teamPlayed,omitempty"`
	TeamWon              int32    `protobuf:"varint,3,opt,name=teamWon,proto3" json:"teamWon,omitempty"`
	TeamDrawn            int32    `protobuf:"varint,4,opt,name=teamDrawn,proto3" json:"teamDrawn,omitempty"`
	TeamLost             int32    `protobuf:"varint,5,opt,name=teamLost,proto3" json:"teamLost,omitempty"`
	TeamGF               int32    `protobuf:"varint,6,opt,name=teamGF,proto3" json:"teamGF,omitempty"`
	TeamGA               int32    `protobuf:"varint,7,opt,name=teamGA,proto3" json:"teamGA,omitempty"`
	TeamGD               int32    `protobuf:"varint,8,opt,name=teamGD,proto3" json:"teamGD,omitempty"`
	TeamPoints           int32    `protobuf:"varint,9,opt,name=teamPoints,proto3" json:"teamPoints,omitempty"`
	TeamCapital          int32    `protobuf:"varint,10,opt,name=teamCapital,proto3" json:"teamCapital,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Table) Descriptor

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

func (*Table) GetTeamCapital

func (m *Table) GetTeamCapital() int32

func (*Table) GetTeamDrawn

func (m *Table) GetTeamDrawn() int32

func (*Table) GetTeamGA

func (m *Table) GetTeamGA() int32

func (*Table) GetTeamGD

func (m *Table) GetTeamGD() int32

func (*Table) GetTeamGF

func (m *Table) GetTeamGF() int32

func (*Table) GetTeamLost

func (m *Table) GetTeamLost() int32

func (*Table) GetTeamName

func (m *Table) GetTeamName() string

func (*Table) GetTeamPlayed

func (m *Table) GetTeamPlayed() int32

func (*Table) GetTeamPoints

func (m *Table) GetTeamPoints() int32

func (*Table) GetTeamWon

func (m *Table) GetTeamWon() int32

func (*Table) ProtoMessage

func (*Table) ProtoMessage()

func (*Table) Reset

func (m *Table) Reset()

func (*Table) String

func (m *Table) String() string

func (*Table) XXX_DiscardUnknown

func (m *Table) XXX_DiscardUnknown()

func (*Table) XXX_Marshal

func (m *Table) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Table) XXX_Merge

func (m *Table) XXX_Merge(src proto.Message)

func (*Table) XXX_Size

func (m *Table) XXX_Size() int

func (*Table) XXX_Unmarshal

func (m *Table) XXX_Unmarshal(b []byte) error

type TableReply

type TableReply struct {
	Teams                []*Table `protobuf:"bytes,1,rep,name=teams,proto3" json:"teams,omitempty"`
	Err                  string   `protobuf:"bytes,2,opt,name=err,proto3" json:"err,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*TableReply) Descriptor

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

func (*TableReply) GetErr

func (m *TableReply) GetErr() string

func (*TableReply) GetTeams

func (m *TableReply) GetTeams() []*Table

func (*TableReply) ProtoMessage

func (*TableReply) ProtoMessage()

func (*TableReply) Reset

func (m *TableReply) Reset()

func (*TableReply) String

func (m *TableReply) String() string

func (*TableReply) XXX_DiscardUnknown

func (m *TableReply) XXX_DiscardUnknown()

func (*TableReply) XXX_Marshal

func (m *TableReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TableReply) XXX_Merge

func (m *TableReply) XXX_Merge(src proto.Message)

func (*TableReply) XXX_Size

func (m *TableReply) XXX_Size() int

func (*TableReply) XXX_Unmarshal

func (m *TableReply) XXX_Unmarshal(b []byte) error

type TableRequest

type TableRequest struct {
	TableName            string   `protobuf:"bytes,1,opt,name=tableName,proto3" json:"tableName,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*TableRequest) Descriptor

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

func (*TableRequest) GetTableName

func (m *TableRequest) GetTableName() string

func (*TableRequest) ProtoMessage

func (*TableRequest) ProtoMessage()

func (*TableRequest) Reset

func (m *TableRequest) Reset()

func (*TableRequest) String

func (m *TableRequest) String() string

func (*TableRequest) XXX_DiscardUnknown

func (m *TableRequest) XXX_DiscardUnknown()

func (*TableRequest) XXX_Marshal

func (m *TableRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TableRequest) XXX_Merge

func (m *TableRequest) XXX_Merge(src proto.Message)

func (*TableRequest) XXX_Size

func (m *TableRequest) XXX_Size() int

func (*TableRequest) XXX_Unmarshal

func (m *TableRequest) XXX_Unmarshal(b []byte) error

type TeamReply

type TeamReply struct {
	Players              []*Player `protobuf:"bytes,1,rep,name=players,proto3" json:"players,omitempty"`
	Err                  string    `protobuf:"bytes,2,opt,name=err,proto3" json:"err,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (*TeamReply) Descriptor

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

func (*TeamReply) GetErr

func (m *TeamReply) GetErr() string

func (*TeamReply) GetPlayers

func (m *TeamReply) GetPlayers() []*Player

func (*TeamReply) ProtoMessage

func (*TeamReply) ProtoMessage()

func (*TeamReply) Reset

func (m *TeamReply) Reset()

func (*TeamReply) String

func (m *TeamReply) String() string

func (*TeamReply) XXX_DiscardUnknown

func (m *TeamReply) XXX_DiscardUnknown()

func (*TeamReply) XXX_Marshal

func (m *TeamReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TeamReply) XXX_Merge

func (m *TeamReply) XXX_Merge(src proto.Message)

func (*TeamReply) XXX_Size

func (m *TeamReply) XXX_Size() int

func (*TeamReply) XXX_Unmarshal

func (m *TeamReply) XXX_Unmarshal(b []byte) error

type TeamRequest

type TeamRequest struct {
	TeamName             string   `protobuf:"bytes,1,opt,name=teamName,proto3" json:"teamName,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*TeamRequest) Descriptor

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

func (*TeamRequest) GetTeamName

func (m *TeamRequest) GetTeamName() string

func (*TeamRequest) ProtoMessage

func (*TeamRequest) ProtoMessage()

func (*TeamRequest) Reset

func (m *TeamRequest) Reset()

func (*TeamRequest) String

func (m *TeamRequest) String() string

func (*TeamRequest) XXX_DiscardUnknown

func (m *TeamRequest) XXX_DiscardUnknown()

func (*TeamRequest) XXX_Marshal

func (m *TeamRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TeamRequest) XXX_Merge

func (m *TeamRequest) XXX_Merge(src proto.Message)

func (*TeamRequest) XXX_Size

func (m *TeamRequest) XXX_Size() int

func (*TeamRequest) XXX_Unmarshal

func (m *TeamRequest) XXX_Unmarshal(b []byte) error

type UnimplementedStatsServiceServer

type UnimplementedStatsServiceServer struct {
}

UnimplementedStatsServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedStatsServiceServer) ListPositionPlayers

func (*UnimplementedStatsServiceServer) ListTable

func (*UnimplementedStatsServiceServer) ListTeamPlayers

Jump to

Keyboard shortcuts

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