Documentation ¶
Overview ¶
Package cataloger is a generated protocol buffer package.
It is generated from these files:
api.proto
It has these top-level messages:
Title TitleStats Subtitle AddTitleRequest AddTitleResponse DeleteTitleRequest DeleteTitleResponse GetTitleRequest GetTitleResponse GetTitlesRequest GetTitlesResponse UpdateTitleRequest UpdateTitleResponse GetTitleStatsRequest GetTitleStatsResponse AddSubtitlesRequest AddSubtitlesResponse DeleteSubtitlesRequest DeleteSubtitlesResponse GetSubtitlesRequest GetSubtitlesResponse
Index ¶
- func RegisterAPIServer(s *grpc.Server, srv APIServer)
- type APIClient
- type APIServer
- type AddSubtitlesRequest
- type AddSubtitlesResponse
- type AddTitleRequest
- type AddTitleResponse
- type DeleteSubtitlesRequest
- type DeleteSubtitlesResponse
- type DeleteTitleRequest
- type DeleteTitleResponse
- type GetSubtitlesRequest
- type GetSubtitlesResponse
- type GetTitleRequest
- type GetTitleResponse
- type GetTitleStatsRequest
- type GetTitleStatsResponse
- type GetTitlesRequest
- type GetTitlesResponse
- type Subtitle
- type Title
- type TitleStats
- type UpdateTitleRequest
- type UpdateTitleResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterAPIServer ¶
Types ¶
type APIClient ¶
type APIClient interface { AddTitle(ctx context.Context, in *AddTitleRequest, opts ...grpc.CallOption) (*AddTitleResponse, error) DeleteTitle(ctx context.Context, in *DeleteTitleRequest, opts ...grpc.CallOption) (*DeleteTitleResponse, error) GetTitle(ctx context.Context, in *GetTitleRequest, opts ...grpc.CallOption) (*GetTitleResponse, error) GetTitles(ctx context.Context, in *GetTitlesRequest, opts ...grpc.CallOption) (*GetTitlesResponse, error) UpdateTitle(ctx context.Context, in *UpdateTitleRequest, opts ...grpc.CallOption) (*UpdateTitleResponse, error) AddSubtitles(ctx context.Context, in *AddSubtitlesRequest, opts ...grpc.CallOption) (*AddSubtitlesResponse, error) DeleteSubtitles(ctx context.Context, in *DeleteSubtitlesRequest, opts ...grpc.CallOption) (*DeleteSubtitlesResponse, error) GetSubtitles(ctx context.Context, in *GetSubtitlesRequest, opts ...grpc.CallOption) (*GetSubtitlesResponse, error) GetTitleStats(ctx context.Context, in *GetTitleStatsRequest, opts ...grpc.CallOption) (*GetTitleStatsResponse, error) }
func NewAPIClient ¶
func NewAPIClient(cc *grpc.ClientConn) APIClient
type APIServer ¶
type APIServer interface { AddTitle(context.Context, *AddTitleRequest) (*AddTitleResponse, error) DeleteTitle(context.Context, *DeleteTitleRequest) (*DeleteTitleResponse, error) GetTitle(context.Context, *GetTitleRequest) (*GetTitleResponse, error) GetTitles(context.Context, *GetTitlesRequest) (*GetTitlesResponse, error) UpdateTitle(context.Context, *UpdateTitleRequest) (*UpdateTitleResponse, error) AddSubtitles(context.Context, *AddSubtitlesRequest) (*AddSubtitlesResponse, error) DeleteSubtitles(context.Context, *DeleteSubtitlesRequest) (*DeleteSubtitlesResponse, error) GetSubtitles(context.Context, *GetSubtitlesRequest) (*GetSubtitlesResponse, error) GetTitleStats(context.Context, *GetTitleStatsRequest) (*GetTitleStatsResponse, error) }
type AddSubtitlesRequest ¶
type AddSubtitlesRequest struct {
Subtitles []*Subtitle `protobuf:"bytes,1,rep,name=subtitles" json:"subtitles,omitempty"`
}
func (*AddSubtitlesRequest) Descriptor ¶
func (*AddSubtitlesRequest) Descriptor() ([]byte, []int)
func (*AddSubtitlesRequest) GetSubtitles ¶
func (m *AddSubtitlesRequest) GetSubtitles() []*Subtitle
func (*AddSubtitlesRequest) ProtoMessage ¶
func (*AddSubtitlesRequest) ProtoMessage()
func (*AddSubtitlesRequest) Reset ¶
func (m *AddSubtitlesRequest) Reset()
func (*AddSubtitlesRequest) String ¶
func (m *AddSubtitlesRequest) String() string
type AddSubtitlesResponse ¶
type AddSubtitlesResponse struct { }
func (*AddSubtitlesResponse) Descriptor ¶
func (*AddSubtitlesResponse) Descriptor() ([]byte, []int)
func (*AddSubtitlesResponse) ProtoMessage ¶
func (*AddSubtitlesResponse) ProtoMessage()
func (*AddSubtitlesResponse) Reset ¶
func (m *AddSubtitlesResponse) Reset()
func (*AddSubtitlesResponse) String ¶
func (m *AddSubtitlesResponse) String() string
type AddTitleRequest ¶
type AddTitleRequest struct {
Title *Title `protobuf:"bytes,1,opt,name=title" json:"title,omitempty"`
}
func (*AddTitleRequest) Descriptor ¶
func (*AddTitleRequest) Descriptor() ([]byte, []int)
func (*AddTitleRequest) GetTitle ¶
func (m *AddTitleRequest) GetTitle() *Title
func (*AddTitleRequest) ProtoMessage ¶
func (*AddTitleRequest) ProtoMessage()
func (*AddTitleRequest) Reset ¶
func (m *AddTitleRequest) Reset()
func (*AddTitleRequest) String ¶
func (m *AddTitleRequest) String() string
type AddTitleResponse ¶
type AddTitleResponse struct {
Title *Title `protobuf:"bytes,1,opt,name=title" json:"title,omitempty"`
}
func (*AddTitleResponse) Descriptor ¶
func (*AddTitleResponse) Descriptor() ([]byte, []int)
func (*AddTitleResponse) GetTitle ¶
func (m *AddTitleResponse) GetTitle() *Title
func (*AddTitleResponse) ProtoMessage ¶
func (*AddTitleResponse) ProtoMessage()
func (*AddTitleResponse) Reset ¶
func (m *AddTitleResponse) Reset()
func (*AddTitleResponse) String ¶
func (m *AddTitleResponse) String() string
type DeleteSubtitlesRequest ¶
type DeleteSubtitlesRequest struct { TitleId int64 `protobuf:"varint,1,opt,name=title_id,json=titleId" json:"title_id,omitempty"` LanguageId string `protobuf:"bytes,2,opt,name=language_id,json=languageId" json:"language_id,omitempty"` }
func (*DeleteSubtitlesRequest) Descriptor ¶
func (*DeleteSubtitlesRequest) Descriptor() ([]byte, []int)
func (*DeleteSubtitlesRequest) ProtoMessage ¶
func (*DeleteSubtitlesRequest) ProtoMessage()
func (*DeleteSubtitlesRequest) Reset ¶
func (m *DeleteSubtitlesRequest) Reset()
func (*DeleteSubtitlesRequest) String ¶
func (m *DeleteSubtitlesRequest) String() string
type DeleteSubtitlesResponse ¶
type DeleteSubtitlesResponse struct { }
func (*DeleteSubtitlesResponse) Descriptor ¶
func (*DeleteSubtitlesResponse) Descriptor() ([]byte, []int)
func (*DeleteSubtitlesResponse) ProtoMessage ¶
func (*DeleteSubtitlesResponse) ProtoMessage()
func (*DeleteSubtitlesResponse) Reset ¶
func (m *DeleteSubtitlesResponse) Reset()
func (*DeleteSubtitlesResponse) String ¶
func (m *DeleteSubtitlesResponse) String() string
type DeleteTitleRequest ¶
type DeleteTitleRequest struct {
TitleId int64 `protobuf:"varint,1,opt,name=title_id,json=titleId" json:"title_id,omitempty"`
}
func (*DeleteTitleRequest) Descriptor ¶
func (*DeleteTitleRequest) Descriptor() ([]byte, []int)
func (*DeleteTitleRequest) ProtoMessage ¶
func (*DeleteTitleRequest) ProtoMessage()
func (*DeleteTitleRequest) Reset ¶
func (m *DeleteTitleRequest) Reset()
func (*DeleteTitleRequest) String ¶
func (m *DeleteTitleRequest) String() string
type DeleteTitleResponse ¶
type DeleteTitleResponse struct { }
func (*DeleteTitleResponse) Descriptor ¶
func (*DeleteTitleResponse) Descriptor() ([]byte, []int)
func (*DeleteTitleResponse) ProtoMessage ¶
func (*DeleteTitleResponse) ProtoMessage()
func (*DeleteTitleResponse) Reset ¶
func (m *DeleteTitleResponse) Reset()
func (*DeleteTitleResponse) String ¶
func (m *DeleteTitleResponse) String() string
type GetSubtitlesRequest ¶
type GetSubtitlesRequest struct { TitleId int64 `protobuf:"varint,1,opt,name=title_id,json=titleId" json:"title_id,omitempty"` Languages []string `protobuf:"bytes,2,rep,name=languages" json:"languages,omitempty"` }
func (*GetSubtitlesRequest) Descriptor ¶
func (*GetSubtitlesRequest) Descriptor() ([]byte, []int)
func (*GetSubtitlesRequest) ProtoMessage ¶
func (*GetSubtitlesRequest) ProtoMessage()
func (*GetSubtitlesRequest) Reset ¶
func (m *GetSubtitlesRequest) Reset()
func (*GetSubtitlesRequest) String ¶
func (m *GetSubtitlesRequest) String() string
type GetSubtitlesResponse ¶
type GetSubtitlesResponse struct {
Subtitles []*Subtitle `protobuf:"bytes,2,rep,name=subtitles" json:"subtitles,omitempty"`
}
func (*GetSubtitlesResponse) Descriptor ¶
func (*GetSubtitlesResponse) Descriptor() ([]byte, []int)
func (*GetSubtitlesResponse) GetSubtitles ¶
func (m *GetSubtitlesResponse) GetSubtitles() []*Subtitle
func (*GetSubtitlesResponse) ProtoMessage ¶
func (*GetSubtitlesResponse) ProtoMessage()
func (*GetSubtitlesResponse) Reset ¶
func (m *GetSubtitlesResponse) Reset()
func (*GetSubtitlesResponse) String ¶
func (m *GetSubtitlesResponse) String() string
type GetTitleRequest ¶
type GetTitleRequest struct {
TitleId int64 `protobuf:"varint,1,opt,name=title_id,json=titleId" json:"title_id,omitempty"`
}
func (*GetTitleRequest) Descriptor ¶
func (*GetTitleRequest) Descriptor() ([]byte, []int)
func (*GetTitleRequest) ProtoMessage ¶
func (*GetTitleRequest) ProtoMessage()
func (*GetTitleRequest) Reset ¶
func (m *GetTitleRequest) Reset()
func (*GetTitleRequest) String ¶
func (m *GetTitleRequest) String() string
type GetTitleResponse ¶
type GetTitleResponse struct {
Title *Title `protobuf:"bytes,1,opt,name=title" json:"title,omitempty"`
}
func (*GetTitleResponse) Descriptor ¶
func (*GetTitleResponse) Descriptor() ([]byte, []int)
func (*GetTitleResponse) GetTitle ¶
func (m *GetTitleResponse) GetTitle() *Title
func (*GetTitleResponse) ProtoMessage ¶
func (*GetTitleResponse) ProtoMessage()
func (*GetTitleResponse) Reset ¶
func (m *GetTitleResponse) Reset()
func (*GetTitleResponse) String ¶
func (m *GetTitleResponse) String() string
type GetTitleStatsRequest ¶
type GetTitleStatsRequest struct { TitleId int64 `protobuf:"varint,1,opt,name=title_id,json=titleId" json:"title_id,omitempty"` LanguageId string `protobuf:"bytes,2,opt,name=language_id,json=languageId" json:"language_id,omitempty"` }
func (*GetTitleStatsRequest) Descriptor ¶
func (*GetTitleStatsRequest) Descriptor() ([]byte, []int)
func (*GetTitleStatsRequest) ProtoMessage ¶
func (*GetTitleStatsRequest) ProtoMessage()
func (*GetTitleStatsRequest) Reset ¶
func (m *GetTitleStatsRequest) Reset()
func (*GetTitleStatsRequest) String ¶
func (m *GetTitleStatsRequest) String() string
type GetTitleStatsResponse ¶
type GetTitleStatsResponse struct {
Stats *TitleStats `protobuf:"bytes,1,opt,name=stats" json:"stats,omitempty"`
}
func (*GetTitleStatsResponse) Descriptor ¶
func (*GetTitleStatsResponse) Descriptor() ([]byte, []int)
func (*GetTitleStatsResponse) GetStats ¶
func (m *GetTitleStatsResponse) GetStats() *TitleStats
func (*GetTitleStatsResponse) ProtoMessage ¶
func (*GetTitleStatsResponse) ProtoMessage()
func (*GetTitleStatsResponse) Reset ¶
func (m *GetTitleStatsResponse) Reset()
func (*GetTitleStatsResponse) String ¶
func (m *GetTitleStatsResponse) String() string
type GetTitlesRequest ¶
type GetTitlesRequest struct { }
func (*GetTitlesRequest) Descriptor ¶
func (*GetTitlesRequest) Descriptor() ([]byte, []int)
func (*GetTitlesRequest) ProtoMessage ¶
func (*GetTitlesRequest) ProtoMessage()
func (*GetTitlesRequest) Reset ¶
func (m *GetTitlesRequest) Reset()
func (*GetTitlesRequest) String ¶
func (m *GetTitlesRequest) String() string
type GetTitlesResponse ¶
type GetTitlesResponse struct {
Titles []*Title `protobuf:"bytes,1,rep,name=titles" json:"titles,omitempty"`
}
func (*GetTitlesResponse) Descriptor ¶
func (*GetTitlesResponse) Descriptor() ([]byte, []int)
func (*GetTitlesResponse) GetTitles ¶
func (m *GetTitlesResponse) GetTitles() []*Title
func (*GetTitlesResponse) ProtoMessage ¶
func (*GetTitlesResponse) ProtoMessage()
func (*GetTitlesResponse) Reset ¶
func (m *GetTitlesResponse) Reset()
func (*GetTitlesResponse) String ¶
func (m *GetTitlesResponse) String() string
type Subtitle ¶
type Subtitle struct { TitleId int64 `protobuf:"varint,1,opt,name=title_id,json=titleId" json:"title_id,omitempty"` LanguageId string `protobuf:"bytes,2,opt,name=language_id,json=languageId" json:"language_id,omitempty"` Start int32 `protobuf:"varint,3,opt,name=start" json:"start,omitempty"` End int32 `protobuf:"varint,4,opt,name=end" json:"end,omitempty"` Text string `protobuf:"bytes,5,opt,name=text" json:"text,omitempty"` UserId int64 `protobuf:"varint,6,opt,name=user_id,json=userId" json:"user_id,omitempty"` VotesUp int32 `protobuf:"varint,7,opt,name=votes_up,json=votesUp" json:"votes_up,omitempty"` VotesDown int32 `protobuf:"varint,8,opt,name=votes_down,json=votesDown" json:"votes_down,omitempty"` PlayCount int32 `protobuf:"varint,9,opt,name=play_count,json=playCount" json:"play_count,omitempty"` RevisionCount int32 `protobuf:"varint,10,opt,name=revision_count,json=revisionCount" json:"revision_count,omitempty"` CreatedAt int64 `protobuf:"varint,11,opt,name=created_at,json=createdAt" json:"created_at,omitempty"` }
func (*Subtitle) Descriptor ¶
func (*Subtitle) ProtoMessage ¶
func (*Subtitle) ProtoMessage()
type Title ¶
type Title struct { Id int64 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` Translations []string `protobuf:"bytes,3,rep,name=translations" json:"translations,omitempty"` CreatedAt int64 `protobuf:"varint,4,opt,name=created_at,json=createdAt" json:"created_at,omitempty"` }
func (*Title) Descriptor ¶
func (*Title) ProtoMessage ¶
func (*Title) ProtoMessage()
type TitleStats ¶
type TitleStats struct { TitleId int64 `protobuf:"varint,1,opt,name=title_id,json=titleId" json:"title_id,omitempty"` LanguageId string `protobuf:"bytes,2,opt,name=language_id,json=languageId" json:"language_id,omitempty"` SubtitlesCount int32 `protobuf:"varint,3,opt,name=subtitles_count,json=subtitlesCount" json:"subtitles_count,omitempty"` RevisionsCount int32 `protobuf:"varint,4,opt,name=revisions_count,json=revisionsCount" json:"revisions_count,omitempty"` }
func (*TitleStats) Descriptor ¶
func (*TitleStats) Descriptor() ([]byte, []int)
func (*TitleStats) ProtoMessage ¶
func (*TitleStats) ProtoMessage()
func (*TitleStats) Reset ¶
func (m *TitleStats) Reset()
func (*TitleStats) String ¶
func (m *TitleStats) String() string
type UpdateTitleRequest ¶
type UpdateTitleRequest struct {
Title *Title `protobuf:"bytes,1,opt,name=title" json:"title,omitempty"`
}
func (*UpdateTitleRequest) Descriptor ¶
func (*UpdateTitleRequest) Descriptor() ([]byte, []int)
func (*UpdateTitleRequest) GetTitle ¶
func (m *UpdateTitleRequest) GetTitle() *Title
func (*UpdateTitleRequest) ProtoMessage ¶
func (*UpdateTitleRequest) ProtoMessage()
func (*UpdateTitleRequest) Reset ¶
func (m *UpdateTitleRequest) Reset()
func (*UpdateTitleRequest) String ¶
func (m *UpdateTitleRequest) String() string
type UpdateTitleResponse ¶
type UpdateTitleResponse struct { }
func (*UpdateTitleResponse) Descriptor ¶
func (*UpdateTitleResponse) Descriptor() ([]byte, []int)
func (*UpdateTitleResponse) ProtoMessage ¶
func (*UpdateTitleResponse) ProtoMessage()
func (*UpdateTitleResponse) Reset ¶
func (m *UpdateTitleResponse) Reset()
func (*UpdateTitleResponse) String ¶
func (m *UpdateTitleResponse) String() string
Click to show internal directories.
Click to hide internal directories.