Documentation ¶
Overview ¶
Package v1beta is a generated protocol buffer package.
It is generated from these files:
league.proto
It has these top-level messages:
Discipline Level League GetLeaguesRequest GetLeaguesResponse CreateLeagueResponse CreateLeagueRequest GetLeagueRequest GetLeagueResponse Team Group Round Tournament GetTournamentsRequest GetTournamentsResponse GetTournamentRequest GetTournamentResponse CreateTournamentRequest CreateTournamentResponse
Package v1beta is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- func RegisterLeagueServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterLeagueServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterLeagueServiceServer(s *grpc.Server, srv LeagueServiceServer)
- func RegisterTournamentServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterTournamentServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterTournamentServiceServer(s *grpc.Server, srv TournamentServiceServer)
- type CreateLeagueRequest
- type CreateLeagueResponse
- type CreateTournamentRequest
- func (*CreateTournamentRequest) Descriptor() ([]byte, []int)
- func (m *CreateTournamentRequest) GetGroups() []*Group
- func (m *CreateTournamentRequest) GetName() string
- func (*CreateTournamentRequest) ProtoMessage()
- func (m *CreateTournamentRequest) Reset()
- func (m *CreateTournamentRequest) String() string
- type CreateTournamentResponse
- type Discipline
- type GetLeagueRequest
- type GetLeagueResponse
- type GetLeaguesRequest
- type GetLeaguesResponse
- type GetTournamentRequest
- type GetTournamentResponse
- type GetTournamentsRequest
- type GetTournamentsResponse
- type Group
- type League
- type LeagueServiceClient
- type LeagueServiceServer
- type Level
- type Round
- type Team
- type Tournament
- type TournamentServiceClient
- type TournamentServiceServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterLeagueServiceHandler ¶
func RegisterLeagueServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterLeagueServiceHandler registers the http handlers for service LeagueService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterLeagueServiceHandlerFromEndpoint ¶
func RegisterLeagueServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterLeagueServiceHandlerFromEndpoint is same as RegisterLeagueServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterLeagueServiceServer ¶
func RegisterLeagueServiceServer(s *grpc.Server, srv LeagueServiceServer)
func RegisterTournamentServiceHandler ¶
func RegisterTournamentServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterTournamentServiceHandler registers the http handlers for service TournamentService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterTournamentServiceHandlerFromEndpoint ¶
func RegisterTournamentServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterTournamentServiceHandlerFromEndpoint is same as RegisterTournamentServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterTournamentServiceServer ¶
func RegisterTournamentServiceServer(s *grpc.Server, srv TournamentServiceServer)
Types ¶
type CreateLeagueRequest ¶
type CreateLeagueRequest struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Website string `protobuf:"bytes,2,opt,name=website" json:"website,omitempty"` }
func (*CreateLeagueRequest) Descriptor ¶
func (*CreateLeagueRequest) Descriptor() ([]byte, []int)
func (*CreateLeagueRequest) GetName ¶
func (m *CreateLeagueRequest) GetName() string
func (*CreateLeagueRequest) GetWebsite ¶
func (m *CreateLeagueRequest) GetWebsite() string
func (*CreateLeagueRequest) ProtoMessage ¶
func (*CreateLeagueRequest) ProtoMessage()
func (*CreateLeagueRequest) Reset ¶
func (m *CreateLeagueRequest) Reset()
func (*CreateLeagueRequest) String ¶
func (m *CreateLeagueRequest) String() string
type CreateLeagueResponse ¶
type CreateLeagueResponse struct { Code int32 `protobuf:"varint,1,opt,name=code" json:"code,omitempty"` League *League `protobuf:"bytes,2,opt,name=league" json:"league,omitempty"` }
func (*CreateLeagueResponse) Descriptor ¶
func (*CreateLeagueResponse) Descriptor() ([]byte, []int)
func (*CreateLeagueResponse) GetCode ¶
func (m *CreateLeagueResponse) GetCode() int32
func (*CreateLeagueResponse) GetLeague ¶
func (m *CreateLeagueResponse) GetLeague() *League
func (*CreateLeagueResponse) ProtoMessage ¶
func (*CreateLeagueResponse) ProtoMessage()
func (*CreateLeagueResponse) Reset ¶
func (m *CreateLeagueResponse) Reset()
func (*CreateLeagueResponse) String ¶
func (m *CreateLeagueResponse) String() string
type CreateTournamentRequest ¶
type CreateTournamentRequest struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Groups []*Group `protobuf:"bytes,2,rep,name=groups" json:"groups,omitempty"` }
func (*CreateTournamentRequest) Descriptor ¶
func (*CreateTournamentRequest) Descriptor() ([]byte, []int)
func (*CreateTournamentRequest) GetGroups ¶
func (m *CreateTournamentRequest) GetGroups() []*Group
func (*CreateTournamentRequest) GetName ¶
func (m *CreateTournamentRequest) GetName() string
func (*CreateTournamentRequest) ProtoMessage ¶
func (*CreateTournamentRequest) ProtoMessage()
func (*CreateTournamentRequest) Reset ¶
func (m *CreateTournamentRequest) Reset()
func (*CreateTournamentRequest) String ¶
func (m *CreateTournamentRequest) String() string
type CreateTournamentResponse ¶
type CreateTournamentResponse struct {
Tournament *Tournament `protobuf:"bytes,1,opt,name=tournament" json:"tournament,omitempty"`
}
func (*CreateTournamentResponse) Descriptor ¶
func (*CreateTournamentResponse) Descriptor() ([]byte, []int)
func (*CreateTournamentResponse) GetTournament ¶
func (m *CreateTournamentResponse) GetTournament() *Tournament
func (*CreateTournamentResponse) ProtoMessage ¶
func (*CreateTournamentResponse) ProtoMessage()
func (*CreateTournamentResponse) Reset ¶
func (m *CreateTournamentResponse) Reset()
func (*CreateTournamentResponse) String ¶
func (m *CreateTournamentResponse) String() string
type Discipline ¶
type Discipline struct { Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` Title string `protobuf:"bytes,2,opt,name=title" json:"title,omitempty"` }
func (*Discipline) Descriptor ¶
func (*Discipline) Descriptor() ([]byte, []int)
func (*Discipline) GetId ¶
func (m *Discipline) GetId() string
func (*Discipline) GetTitle ¶
func (m *Discipline) GetTitle() string
func (*Discipline) ProtoMessage ¶
func (*Discipline) ProtoMessage()
func (*Discipline) Reset ¶
func (m *Discipline) Reset()
func (*Discipline) String ¶
func (m *Discipline) String() string
type GetLeagueRequest ¶
type GetLeagueRequest struct {
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}
func (*GetLeagueRequest) Descriptor ¶
func (*GetLeagueRequest) Descriptor() ([]byte, []int)
func (*GetLeagueRequest) GetName ¶
func (m *GetLeagueRequest) GetName() string
func (*GetLeagueRequest) ProtoMessage ¶
func (*GetLeagueRequest) ProtoMessage()
func (*GetLeagueRequest) Reset ¶
func (m *GetLeagueRequest) Reset()
func (*GetLeagueRequest) String ¶
func (m *GetLeagueRequest) String() string
type GetLeagueResponse ¶
type GetLeagueResponse struct {
League *League `protobuf:"bytes,1,opt,name=league" json:"league,omitempty"`
}
func (*GetLeagueResponse) Descriptor ¶
func (*GetLeagueResponse) Descriptor() ([]byte, []int)
func (*GetLeagueResponse) GetLeague ¶
func (m *GetLeagueResponse) GetLeague() *League
func (*GetLeagueResponse) ProtoMessage ¶
func (*GetLeagueResponse) ProtoMessage()
func (*GetLeagueResponse) Reset ¶
func (m *GetLeagueResponse) Reset()
func (*GetLeagueResponse) String ¶
func (m *GetLeagueResponse) String() string
type GetLeaguesRequest ¶
type GetLeaguesRequest struct {
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}
func (*GetLeaguesRequest) Descriptor ¶
func (*GetLeaguesRequest) Descriptor() ([]byte, []int)
func (*GetLeaguesRequest) GetName ¶
func (m *GetLeaguesRequest) GetName() string
func (*GetLeaguesRequest) ProtoMessage ¶
func (*GetLeaguesRequest) ProtoMessage()
func (*GetLeaguesRequest) Reset ¶
func (m *GetLeaguesRequest) Reset()
func (*GetLeaguesRequest) String ¶
func (m *GetLeaguesRequest) String() string
type GetLeaguesResponse ¶
type GetLeaguesResponse struct {
Leagues []*League `protobuf:"bytes,1,rep,name=leagues" json:"leagues,omitempty"`
}
func (*GetLeaguesResponse) Descriptor ¶
func (*GetLeaguesResponse) Descriptor() ([]byte, []int)
func (*GetLeaguesResponse) GetLeagues ¶
func (m *GetLeaguesResponse) GetLeagues() []*League
func (*GetLeaguesResponse) ProtoMessage ¶
func (*GetLeaguesResponse) ProtoMessage()
func (*GetLeaguesResponse) Reset ¶
func (m *GetLeaguesResponse) Reset()
func (*GetLeaguesResponse) String ¶
func (m *GetLeaguesResponse) String() string
type GetTournamentRequest ¶
type GetTournamentRequest struct {
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}
func (*GetTournamentRequest) Descriptor ¶
func (*GetTournamentRequest) Descriptor() ([]byte, []int)
func (*GetTournamentRequest) GetName ¶
func (m *GetTournamentRequest) GetName() string
func (*GetTournamentRequest) ProtoMessage ¶
func (*GetTournamentRequest) ProtoMessage()
func (*GetTournamentRequest) Reset ¶
func (m *GetTournamentRequest) Reset()
func (*GetTournamentRequest) String ¶
func (m *GetTournamentRequest) String() string
type GetTournamentResponse ¶
type GetTournamentResponse struct {
Tournament *Tournament `protobuf:"bytes,1,opt,name=tournament" json:"tournament,omitempty"`
}
func (*GetTournamentResponse) Descriptor ¶
func (*GetTournamentResponse) Descriptor() ([]byte, []int)
func (*GetTournamentResponse) GetTournament ¶
func (m *GetTournamentResponse) GetTournament() *Tournament
func (*GetTournamentResponse) ProtoMessage ¶
func (*GetTournamentResponse) ProtoMessage()
func (*GetTournamentResponse) Reset ¶
func (m *GetTournamentResponse) Reset()
func (*GetTournamentResponse) String ¶
func (m *GetTournamentResponse) String() string
type GetTournamentsRequest ¶
type GetTournamentsRequest struct { }
func (*GetTournamentsRequest) Descriptor ¶
func (*GetTournamentsRequest) Descriptor() ([]byte, []int)
func (*GetTournamentsRequest) ProtoMessage ¶
func (*GetTournamentsRequest) ProtoMessage()
func (*GetTournamentsRequest) Reset ¶
func (m *GetTournamentsRequest) Reset()
func (*GetTournamentsRequest) String ¶
func (m *GetTournamentsRequest) String() string
type GetTournamentsResponse ¶
type GetTournamentsResponse struct {
Tournaments []*Tournament `protobuf:"bytes,1,rep,name=tournaments" json:"tournaments,omitempty"`
}
func (*GetTournamentsResponse) Descriptor ¶
func (*GetTournamentsResponse) Descriptor() ([]byte, []int)
func (*GetTournamentsResponse) GetTournaments ¶
func (m *GetTournamentsResponse) GetTournaments() []*Tournament
func (*GetTournamentsResponse) ProtoMessage ¶
func (*GetTournamentsResponse) ProtoMessage()
func (*GetTournamentsResponse) Reset ¶
func (m *GetTournamentsResponse) Reset()
func (*GetTournamentsResponse) String ¶
func (m *GetTournamentsResponse) String() string
type Group ¶
type Group struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Team []*Team `protobuf:"bytes,3,rep,name=team" json:"team,omitempty"` }
func (*Group) Descriptor ¶
func (*Group) ProtoMessage ¶
func (*Group) ProtoMessage()
type League ¶
type League struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Details map[string]string `` /* 134-byte string literal not displayed */ Levels []*Level `protobuf:"bytes,3,rep,name=levels" json:"levels,omitempty"` Disciplines []*Discipline `protobuf:"bytes,4,rep,name=disciplines" json:"disciplines,omitempty"` }
League define a pelota league
func (*League) Descriptor ¶
func (*League) GetDetails ¶
func (*League) GetDisciplines ¶
func (m *League) GetDisciplines() []*Discipline
func (*League) ProtoMessage ¶
func (*League) ProtoMessage()
type LeagueServiceClient ¶
type LeagueServiceClient interface { // List returns all available League List(ctx context.Context, in *GetLeaguesRequest, opts ...grpc.CallOption) (*GetLeaguesResponse, error) // Create creates a new league Create(ctx context.Context, in *CreateLeagueRequest, opts ...grpc.CallOption) (*CreateLeagueResponse, error) // Get return a league Get(ctx context.Context, in *GetLeagueRequest, opts ...grpc.CallOption) (*GetLeagueResponse, error) }
func NewLeagueServiceClient ¶
func NewLeagueServiceClient(cc *grpc.ClientConn) LeagueServiceClient
type LeagueServiceServer ¶
type LeagueServiceServer interface { // List returns all available League List(context.Context, *GetLeaguesRequest) (*GetLeaguesResponse, error) // Create creates a new league Create(context.Context, *CreateLeagueRequest) (*CreateLeagueResponse, error) // Get return a league Get(context.Context, *GetLeagueRequest) (*GetLeagueResponse, error) }
type Level ¶
type Level struct { Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` Title string `protobuf:"bytes,2,opt,name=title" json:"title,omitempty"` }
func (*Level) Descriptor ¶
func (*Level) ProtoMessage ¶
func (*Level) ProtoMessage()
type Round ¶
type Round struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` First *Team `protobuf:"bytes,2,opt,name=first" json:"first,omitempty"` Second *Team `protobuf:"bytes,3,opt,name=second" json:"second,omitempty"` Score string `protobuf:"bytes,4,opt,name=score" json:"score,omitempty"` }
func (*Round) Descriptor ¶
func (*Round) ProtoMessage ¶
func (*Round) ProtoMessage()
type Team ¶
type Team struct {
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}
func (*Team) Descriptor ¶
func (*Team) ProtoMessage ¶
func (*Team) ProtoMessage()
type Tournament ¶
type Tournament struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Groups map[string]*Group `` /* 132-byte string literal not displayed */ Rounds []*Round `protobuf:"bytes,3,rep,name=rounds" json:"rounds,omitempty"` }
Tournament define a pelota league
func (*Tournament) Descriptor ¶
func (*Tournament) Descriptor() ([]byte, []int)
func (*Tournament) GetGroups ¶
func (m *Tournament) GetGroups() map[string]*Group
func (*Tournament) GetName ¶
func (m *Tournament) GetName() string
func (*Tournament) GetRounds ¶
func (m *Tournament) GetRounds() []*Round
func (*Tournament) ProtoMessage ¶
func (*Tournament) ProtoMessage()
func (*Tournament) Reset ¶
func (m *Tournament) Reset()
func (*Tournament) String ¶
func (m *Tournament) String() string
type TournamentServiceClient ¶
type TournamentServiceClient interface { // List returns all available Tournament List(ctx context.Context, in *GetTournamentsRequest, opts ...grpc.CallOption) (*GetTournamentsResponse, error) // Create creates a new tournament Create(ctx context.Context, in *CreateTournamentRequest, opts ...grpc.CallOption) (*CreateTournamentResponse, error) // Get return a tournament Get(ctx context.Context, in *GetTournamentRequest, opts ...grpc.CallOption) (*GetTournamentResponse, error) }
func NewTournamentServiceClient ¶
func NewTournamentServiceClient(cc *grpc.ClientConn) TournamentServiceClient
type TournamentServiceServer ¶
type TournamentServiceServer interface { // List returns all available Tournament List(context.Context, *GetTournamentsRequest) (*GetTournamentsResponse, error) // Create creates a new tournament Create(context.Context, *CreateTournamentRequest) (*CreateTournamentResponse, error) // Get return a tournament Get(context.Context, *GetTournamentRequest) (*GetTournamentResponse, error) }