Documentation ¶
Index ¶
- Variables
- func RegisterAPIServer(s grpc.ServiceRegistrar, srv APIServer)
- type APIClient
- type APIServer
- type AlternativeTitles
- func (*AlternativeTitles) Descriptor() ([]byte, []int)deprecated
- func (x *AlternativeTitles) GetEnglish() string
- func (x *AlternativeTitles) GetJapanese() string
- func (x *AlternativeTitles) GetSynonyms() []string
- func (*AlternativeTitles) ProtoMessage()
- func (x *AlternativeTitles) ProtoReflect() protoreflect.Message
- func (x *AlternativeTitles) Reset()
- func (x *AlternativeTitles) String() string
- type Anime
- func (*Anime) Descriptor() ([]byte, []int)deprecated
- func (x *Anime) GetAlternativeTitles() *AlternativeTitles
- func (x *Anime) GetBackground() string
- func (x *Anime) GetBroadcast() *Broadcast
- func (x *Anime) GetEndDate() *Date
- func (x *Anime) GetGenres() []*Genre
- func (x *Anime) GetId() int64
- func (x *Anime) GetMean() float64
- func (x *Anime) GetMember() int32
- func (x *Anime) GetNsfw() bool
- func (x *Anime) GetPicture() string
- func (x *Anime) GetPictures() []string
- func (x *Anime) GetPopularity() int32
- func (x *Anime) GetRank() int32
- func (x *Anime) GetRating() string
- func (x *Anime) GetRelated() []*Related
- func (x *Anime) GetSeason() *Season
- func (x *Anime) GetSource() string
- func (x *Anime) GetStartDate() *Date
- func (x *Anime) GetStats() *Stats
- func (x *Anime) GetStatus() string
- func (x *Anime) GetStudios() []*Studio
- func (x *Anime) GetSynopsis() string
- func (x *Anime) GetTitle() string
- func (x *Anime) GetType() string
- func (x *Anime) GetUpdatedAt() *timestamp.Timestamp
- func (x *Anime) GetVoter() int32
- func (*Anime) ProtoMessage()
- func (x *Anime) ProtoReflect() protoreflect.Message
- func (x *Anime) Reset()
- func (x *Anime) String() string
- type Broadcast
- type Date
- type Episode
- type Genre
- type GetAnimeByIDRequest
- func (*GetAnimeByIDRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetAnimeByIDRequest) GetId() int64
- func (*GetAnimeByIDRequest) ProtoMessage()
- func (x *GetAnimeByIDRequest) ProtoReflect() protoreflect.Message
- func (x *GetAnimeByIDRequest) Reset()
- func (x *GetAnimeByIDRequest) String() string
- type Related
- func (*Related) Descriptor() ([]byte, []int)deprecated
- func (x *Related) GetId() int64
- func (x *Related) GetPicture() string
- func (x *Related) GetRelation() string
- func (x *Related) GetTitle() string
- func (*Related) ProtoMessage()
- func (x *Related) ProtoReflect() protoreflect.Message
- func (x *Related) Reset()
- func (x *Related) String() string
- type Season
- type Stats
- type StatsStatus
- func (*StatsStatus) Descriptor() ([]byte, []int)deprecated
- func (x *StatsStatus) GetCompleted() int32
- func (x *StatsStatus) GetDropped() int32
- func (x *StatsStatus) GetOnHold() int32
- func (x *StatsStatus) GetPlanned() int32
- func (x *StatsStatus) GetWatching() int32
- func (*StatsStatus) ProtoMessage()
- func (x *StatsStatus) ProtoReflect() protoreflect.Message
- func (x *StatsStatus) Reset()
- func (x *StatsStatus) String() string
- type Studio
- type UnimplementedAPIServer
- type UnsafeAPIServer
Constants ¶
This section is empty.
Variables ¶
var API_ServiceDesc = grpc.ServiceDesc{ ServiceName: "API", HandlerType: (*APIServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetAnimeByID", Handler: _API_GetAnimeByID_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "internal/delivery/grpc/schema/api.proto", }
API_ServiceDesc is the grpc.ServiceDesc for API service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_internal_delivery_grpc_schema_api_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAPIServer ¶
func RegisterAPIServer(s grpc.ServiceRegistrar, srv APIServer)
Types ¶
type APIClient ¶
type APIClient interface {
GetAnimeByID(ctx context.Context, in *GetAnimeByIDRequest, opts ...grpc.CallOption) (*Anime, error)
}
APIClient is the client API for API 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 NewAPIClient ¶
func NewAPIClient(cc grpc.ClientConnInterface) APIClient
type APIServer ¶
type APIServer interface { GetAnimeByID(context.Context, *GetAnimeByIDRequest) (*Anime, error) // contains filtered or unexported methods }
APIServer is the server API for API service. All implementations must embed UnimplementedAPIServer for forward compatibility
type AlternativeTitles ¶
type AlternativeTitles struct { Synonyms []string `protobuf:"bytes,1,rep,name=synonyms,proto3" json:"synonyms,omitempty"` English string `protobuf:"bytes,2,opt,name=english,proto3" json:"english,omitempty"` Japanese string `protobuf:"bytes,3,opt,name=japanese,proto3" json:"japanese,omitempty"` // contains filtered or unexported fields }
func (*AlternativeTitles) Descriptor
deprecated
func (*AlternativeTitles) Descriptor() ([]byte, []int)
Deprecated: Use AlternativeTitles.ProtoReflect.Descriptor instead.
func (*AlternativeTitles) GetEnglish ¶
func (x *AlternativeTitles) GetEnglish() string
func (*AlternativeTitles) GetJapanese ¶
func (x *AlternativeTitles) GetJapanese() string
func (*AlternativeTitles) GetSynonyms ¶
func (x *AlternativeTitles) GetSynonyms() []string
func (*AlternativeTitles) ProtoMessage ¶
func (*AlternativeTitles) ProtoMessage()
func (*AlternativeTitles) ProtoReflect ¶
func (x *AlternativeTitles) ProtoReflect() protoreflect.Message
func (*AlternativeTitles) Reset ¶
func (x *AlternativeTitles) Reset()
func (*AlternativeTitles) String ¶
func (x *AlternativeTitles) String() string
type Anime ¶
type Anime struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` AlternativeTitles *AlternativeTitles `protobuf:"bytes,3,opt,name=alternative_titles,json=alternativeTitles,proto3" json:"alternative_titles,omitempty"` Picture string `protobuf:"bytes,4,opt,name=picture,proto3" json:"picture,omitempty"` StartDate *Date `protobuf:"bytes,5,opt,name=start_date,json=startDate,proto3" json:"start_date,omitempty"` EndDate *Date `protobuf:"bytes,6,opt,name=end_date,json=endDate,proto3" json:"end_date,omitempty"` Synopsis string `protobuf:"bytes,7,opt,name=synopsis,proto3" json:"synopsis,omitempty"` Background string `protobuf:"bytes,8,opt,name=background,proto3" json:"background,omitempty"` Nsfw bool `protobuf:"varint,9,opt,name=nsfw,proto3" json:"nsfw,omitempty"` Type string `protobuf:"bytes,10,opt,name=type,proto3" json:"type,omitempty"` Status string `protobuf:"bytes,11,opt,name=status,proto3" json:"status,omitempty"` Season *Season `protobuf:"bytes,12,opt,name=season,proto3" json:"season,omitempty"` Broadcast *Broadcast `protobuf:"bytes,13,opt,name=broadcast,proto3" json:"broadcast,omitempty"` Source string `protobuf:"bytes,14,opt,name=source,proto3" json:"source,omitempty"` Rating string `protobuf:"bytes,15,opt,name=rating,proto3" json:"rating,omitempty"` Mean float64 `protobuf:"fixed64,16,opt,name=mean,proto3" json:"mean,omitempty"` Rank int32 `protobuf:"varint,17,opt,name=rank,proto3" json:"rank,omitempty"` Popularity int32 `protobuf:"varint,18,opt,name=popularity,proto3" json:"popularity,omitempty"` Member int32 `protobuf:"varint,19,opt,name=member,proto3" json:"member,omitempty"` Voter int32 `protobuf:"varint,20,opt,name=voter,proto3" json:"voter,omitempty"` Stats *Stats `protobuf:"bytes,21,opt,name=stats,proto3" json:"stats,omitempty"` Genres []*Genre `protobuf:"bytes,22,rep,name=genres,proto3" json:"genres,omitempty"` Pictures []string `protobuf:"bytes,23,rep,name=pictures,proto3" json:"pictures,omitempty"` Related []*Related `protobuf:"bytes,24,rep,name=related,proto3" json:"related,omitempty"` Studios []*Studio `protobuf:"bytes,25,rep,name=studios,proto3" json:"studios,omitempty"` UpdatedAt *timestamp.Timestamp `protobuf:"bytes,26,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // contains filtered or unexported fields }
func (*Anime) Descriptor
deprecated
func (*Anime) GetAlternativeTitles ¶
func (x *Anime) GetAlternativeTitles() *AlternativeTitles
func (*Anime) GetBackground ¶
func (*Anime) GetBroadcast ¶
func (*Anime) GetEndDate ¶
func (*Anime) GetPicture ¶
func (*Anime) GetPictures ¶
func (*Anime) GetPopularity ¶
func (*Anime) GetRelated ¶
func (*Anime) GetStartDate ¶
func (*Anime) GetStudios ¶
func (*Anime) GetSynopsis ¶
func (*Anime) GetUpdatedAt ¶
func (*Anime) ProtoMessage ¶
func (*Anime) ProtoMessage()
func (*Anime) ProtoReflect ¶
func (x *Anime) ProtoReflect() protoreflect.Message
type Broadcast ¶
type Broadcast struct { Day *Date `protobuf:"bytes,1,opt,name=day,proto3" json:"day,omitempty"` Time string `protobuf:"bytes,2,opt,name=time,proto3" json:"time,omitempty"` // contains filtered or unexported fields }
func (*Broadcast) Descriptor
deprecated
func (*Broadcast) ProtoMessage ¶
func (*Broadcast) ProtoMessage()
func (*Broadcast) ProtoReflect ¶
func (x *Broadcast) ProtoReflect() protoreflect.Message
type Date ¶
type Date struct { Year int32 `protobuf:"varint,1,opt,name=year,proto3" json:"year,omitempty"` Month int32 `protobuf:"varint,2,opt,name=month,proto3" json:"month,omitempty"` Day int32 `protobuf:"varint,3,opt,name=day,proto3" json:"day,omitempty"` // contains filtered or unexported fields }
func (*Date) Descriptor
deprecated
func (*Date) ProtoMessage ¶
func (*Date) ProtoMessage()
func (*Date) ProtoReflect ¶
func (x *Date) ProtoReflect() protoreflect.Message
type Episode ¶
type Episode struct { Count int32 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` Duration int32 `protobuf:"varint,2,opt,name=duration,proto3" json:"duration,omitempty"` // contains filtered or unexported fields }
func (*Episode) Descriptor
deprecated
func (*Episode) GetDuration ¶
func (*Episode) ProtoMessage ¶
func (*Episode) ProtoMessage()
func (*Episode) ProtoReflect ¶
func (x *Episode) ProtoReflect() protoreflect.Message
type Genre ¶
type Genre struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*Genre) Descriptor
deprecated
func (*Genre) ProtoMessage ¶
func (*Genre) ProtoMessage()
func (*Genre) ProtoReflect ¶
func (x *Genre) ProtoReflect() protoreflect.Message
type GetAnimeByIDRequest ¶
type GetAnimeByIDRequest struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetAnimeByIDRequest) Descriptor
deprecated
func (*GetAnimeByIDRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAnimeByIDRequest.ProtoReflect.Descriptor instead.
func (*GetAnimeByIDRequest) GetId ¶
func (x *GetAnimeByIDRequest) GetId() int64
func (*GetAnimeByIDRequest) ProtoMessage ¶
func (*GetAnimeByIDRequest) ProtoMessage()
func (*GetAnimeByIDRequest) ProtoReflect ¶
func (x *GetAnimeByIDRequest) ProtoReflect() protoreflect.Message
func (*GetAnimeByIDRequest) Reset ¶
func (x *GetAnimeByIDRequest) Reset()
func (*GetAnimeByIDRequest) String ¶
func (x *GetAnimeByIDRequest) String() string
type Related ¶
type Related struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` Picture string `protobuf:"bytes,3,opt,name=picture,proto3" json:"picture,omitempty"` Relation string `protobuf:"bytes,4,opt,name=relation,proto3" json:"relation,omitempty"` // contains filtered or unexported fields }
func (*Related) Descriptor
deprecated
func (*Related) GetPicture ¶
func (*Related) GetRelation ¶
func (*Related) ProtoMessage ¶
func (*Related) ProtoMessage()
func (*Related) ProtoReflect ¶
func (x *Related) ProtoReflect() protoreflect.Message
type Season ¶
type Season struct { Season string `protobuf:"bytes,1,opt,name=season,proto3" json:"season,omitempty"` Year int32 `protobuf:"varint,2,opt,name=year,proto3" json:"year,omitempty"` // contains filtered or unexported fields }
func (*Season) Descriptor
deprecated
func (*Season) ProtoMessage ¶
func (*Season) ProtoMessage()
func (*Season) ProtoReflect ¶
func (x *Season) ProtoReflect() protoreflect.Message
type Stats ¶
type Stats struct { Status *StatsStatus `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` // contains filtered or unexported fields }
func (*Stats) Descriptor
deprecated
func (*Stats) GetStatus ¶
func (x *Stats) GetStatus() *StatsStatus
func (*Stats) ProtoMessage ¶
func (*Stats) ProtoMessage()
func (*Stats) ProtoReflect ¶
func (x *Stats) ProtoReflect() protoreflect.Message
type StatsStatus ¶
type StatsStatus struct { Watching int32 `protobuf:"varint,1,opt,name=watching,proto3" json:"watching,omitempty"` Completed int32 `protobuf:"varint,2,opt,name=completed,proto3" json:"completed,omitempty"` OnHold int32 `protobuf:"varint,3,opt,name=on_hold,json=onHold,proto3" json:"on_hold,omitempty"` Dropped int32 `protobuf:"varint,4,opt,name=dropped,proto3" json:"dropped,omitempty"` Planned int32 `protobuf:"varint,5,opt,name=planned,proto3" json:"planned,omitempty"` // contains filtered or unexported fields }
func (*StatsStatus) Descriptor
deprecated
func (*StatsStatus) Descriptor() ([]byte, []int)
Deprecated: Use StatsStatus.ProtoReflect.Descriptor instead.
func (*StatsStatus) GetCompleted ¶
func (x *StatsStatus) GetCompleted() int32
func (*StatsStatus) GetDropped ¶
func (x *StatsStatus) GetDropped() int32
func (*StatsStatus) GetOnHold ¶
func (x *StatsStatus) GetOnHold() int32
func (*StatsStatus) GetPlanned ¶
func (x *StatsStatus) GetPlanned() int32
func (*StatsStatus) GetWatching ¶
func (x *StatsStatus) GetWatching() int32
func (*StatsStatus) ProtoMessage ¶
func (*StatsStatus) ProtoMessage()
func (*StatsStatus) ProtoReflect ¶
func (x *StatsStatus) ProtoReflect() protoreflect.Message
func (*StatsStatus) Reset ¶
func (x *StatsStatus) Reset()
func (*StatsStatus) String ¶
func (x *StatsStatus) String() string
type Studio ¶
type Studio struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*Studio) Descriptor
deprecated
func (*Studio) ProtoMessage ¶
func (*Studio) ProtoMessage()
func (*Studio) ProtoReflect ¶
func (x *Studio) ProtoReflect() protoreflect.Message
type UnimplementedAPIServer ¶
type UnimplementedAPIServer struct { }
UnimplementedAPIServer must be embedded to have forward compatible implementations.
func (UnimplementedAPIServer) GetAnimeByID ¶
func (UnimplementedAPIServer) GetAnimeByID(context.Context, *GetAnimeByIDRequest) (*Anime, error)
type UnsafeAPIServer ¶
type UnsafeAPIServer interface {
// contains filtered or unexported methods
}
UnsafeAPIServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to APIServer will result in compilation errors.