Documentation ¶
Index ¶
- func RegisterStatsServiceServer(s *grpc.Server, srv StatsServiceServer)
- type Player
- func (*Player) Descriptor() ([]byte, []int)
- func (m *Player) GetAppearences() int32
- func (m *Player) GetAssists() int32
- func (m *Player) GetFouls() int32
- func (m *Player) GetGoals() int32
- func (m *Player) GetInterceptions() int32
- func (m *Player) GetName() string
- func (m *Player) GetNationality() string
- func (m *Player) GetPasses() int32
- func (m *Player) GetPosition() string
- func (m *Player) GetTackles() int32
- func (m *Player) GetTeam() string
- func (*Player) ProtoMessage()
- func (m *Player) Reset()
- func (m *Player) String() string
- func (m *Player) XXX_DiscardUnknown()
- func (m *Player) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Player) XXX_Merge(src proto.Message)
- func (m *Player) XXX_Size() int
- func (m *Player) XXX_Unmarshal(b []byte) error
- type PositionReply
- func (*PositionReply) Descriptor() ([]byte, []int)
- func (m *PositionReply) GetErr() string
- func (m *PositionReply) GetPlayers() []*Player
- func (*PositionReply) ProtoMessage()
- func (m *PositionReply) Reset()
- func (m *PositionReply) String() string
- func (m *PositionReply) XXX_DiscardUnknown()
- func (m *PositionReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PositionReply) XXX_Merge(src proto.Message)
- func (m *PositionReply) XXX_Size() int
- func (m *PositionReply) XXX_Unmarshal(b []byte) error
- type PositionRequest
- func (*PositionRequest) Descriptor() ([]byte, []int)
- func (m *PositionRequest) GetPosition() string
- func (*PositionRequest) ProtoMessage()
- func (m *PositionRequest) Reset()
- func (m *PositionRequest) String() string
- func (m *PositionRequest) XXX_DiscardUnknown()
- func (m *PositionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PositionRequest) XXX_Merge(src proto.Message)
- func (m *PositionRequest) XXX_Size() int
- func (m *PositionRequest) XXX_Unmarshal(b []byte) error
- type StatsServiceClient
- type StatsServiceServer
- type Table
- func (*Table) Descriptor() ([]byte, []int)
- func (m *Table) GetTeamCapital() int32
- func (m *Table) GetTeamDrawn() int32
- func (m *Table) GetTeamGA() int32
- func (m *Table) GetTeamGD() int32
- func (m *Table) GetTeamGF() int32
- func (m *Table) GetTeamLost() int32
- func (m *Table) GetTeamName() string
- func (m *Table) GetTeamPlayed() int32
- func (m *Table) GetTeamPoints() int32
- func (m *Table) GetTeamWon() int32
- func (*Table) ProtoMessage()
- func (m *Table) Reset()
- func (m *Table) String() string
- func (m *Table) XXX_DiscardUnknown()
- func (m *Table) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Table) XXX_Merge(src proto.Message)
- func (m *Table) XXX_Size() int
- func (m *Table) XXX_Unmarshal(b []byte) error
- type TableReply
- func (*TableReply) Descriptor() ([]byte, []int)
- func (m *TableReply) GetErr() string
- func (m *TableReply) GetTeams() []*Table
- func (*TableReply) ProtoMessage()
- func (m *TableReply) Reset()
- func (m *TableReply) String() string
- func (m *TableReply) XXX_DiscardUnknown()
- func (m *TableReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TableReply) XXX_Merge(src proto.Message)
- func (m *TableReply) XXX_Size() int
- func (m *TableReply) XXX_Unmarshal(b []byte) error
- type TableRequest
- func (*TableRequest) Descriptor() ([]byte, []int)
- func (m *TableRequest) GetTableName() string
- func (*TableRequest) ProtoMessage()
- func (m *TableRequest) Reset()
- func (m *TableRequest) String() string
- func (m *TableRequest) XXX_DiscardUnknown()
- func (m *TableRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TableRequest) XXX_Merge(src proto.Message)
- func (m *TableRequest) XXX_Size() int
- func (m *TableRequest) XXX_Unmarshal(b []byte) error
- type TeamReply
- func (*TeamReply) Descriptor() ([]byte, []int)
- func (m *TeamReply) GetErr() string
- func (m *TeamReply) GetPlayers() []*Player
- func (*TeamReply) ProtoMessage()
- func (m *TeamReply) Reset()
- func (m *TeamReply) String() string
- func (m *TeamReply) XXX_DiscardUnknown()
- func (m *TeamReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TeamReply) XXX_Merge(src proto.Message)
- func (m *TeamReply) XXX_Size() int
- func (m *TeamReply) XXX_Unmarshal(b []byte) error
- type TeamRequest
- func (*TeamRequest) Descriptor() ([]byte, []int)
- func (m *TeamRequest) GetTeamName() string
- func (*TeamRequest) ProtoMessage()
- func (m *TeamRequest) Reset()
- func (m *TeamRequest) String() string
- func (m *TeamRequest) XXX_DiscardUnknown()
- func (m *TeamRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TeamRequest) XXX_Merge(src proto.Message)
- func (m *TeamRequest) XXX_Size() int
- func (m *TeamRequest) XXX_Unmarshal(b []byte) error
- type UnimplementedStatsServiceServer
- func (*UnimplementedStatsServiceServer) ListPositionPlayers(ctx context.Context, req *PositionRequest) (*PositionReply, error)
- func (*UnimplementedStatsServiceServer) ListTable(ctx context.Context, req *TableRequest) (*TableReply, error)
- func (*UnimplementedStatsServiceServer) ListTeamPlayers(ctx context.Context, req *TeamRequest) (*TeamReply, error)
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) GetAppearences ¶
func (*Player) GetAssists ¶
func (*Player) GetInterceptions ¶
func (*Player) GetNationality ¶
func (*Player) GetPosition ¶
func (*Player) GetTackles ¶
func (*Player) ProtoMessage ¶
func (*Player) ProtoMessage()
func (*Player) XXX_DiscardUnknown ¶
func (m *Player) XXX_DiscardUnknown()
func (*Player) XXX_Marshal ¶
func (*Player) XXX_Unmarshal ¶
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) GetTeamCapital ¶
func (*Table) GetTeamDrawn ¶
func (*Table) GetTeamLost ¶
func (*Table) GetTeamName ¶
func (*Table) GetTeamPlayed ¶
func (*Table) GetTeamPoints ¶
func (*Table) GetTeamWon ¶
func (*Table) ProtoMessage ¶
func (*Table) ProtoMessage()
func (*Table) XXX_DiscardUnknown ¶
func (m *Table) XXX_DiscardUnknown()
func (*Table) XXX_Marshal ¶
func (*Table) XXX_Unmarshal ¶
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) GetPlayers ¶
func (*TeamReply) ProtoMessage ¶
func (*TeamReply) ProtoMessage()
func (*TeamReply) XXX_DiscardUnknown ¶
func (m *TeamReply) XXX_DiscardUnknown()
func (*TeamReply) XXX_Marshal ¶
func (*TeamReply) XXX_Unmarshal ¶
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) ListPositionPlayers(ctx context.Context, req *PositionRequest) (*PositionReply, error)
func (*UnimplementedStatsServiceServer) ListTable ¶
func (*UnimplementedStatsServiceServer) ListTable(ctx context.Context, req *TableRequest) (*TableReply, error)
func (*UnimplementedStatsServiceServer) ListTeamPlayers ¶
func (*UnimplementedStatsServiceServer) ListTeamPlayers(ctx context.Context, req *TeamRequest) (*TeamReply, error)
Click to show internal directories.
Click to hide internal directories.