schema

package
v0.11.15 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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)

View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Anime.ProtoReflect.Descriptor instead.

func (*Anime) GetAlternativeTitles

func (x *Anime) GetAlternativeTitles() *AlternativeTitles

func (*Anime) GetBackground

func (x *Anime) GetBackground() string

func (*Anime) GetBroadcast

func (x *Anime) GetBroadcast() *Broadcast

func (*Anime) GetEndDate

func (x *Anime) GetEndDate() *Date

func (*Anime) GetGenres

func (x *Anime) GetGenres() []*Genre

func (*Anime) GetId

func (x *Anime) GetId() int64

func (*Anime) GetMean

func (x *Anime) GetMean() float64

func (*Anime) GetMember

func (x *Anime) GetMember() int32

func (*Anime) GetNsfw

func (x *Anime) GetNsfw() bool

func (*Anime) GetPicture

func (x *Anime) GetPicture() string

func (*Anime) GetPictures

func (x *Anime) GetPictures() []string

func (*Anime) GetPopularity

func (x *Anime) GetPopularity() int32

func (*Anime) GetRank

func (x *Anime) GetRank() int32

func (*Anime) GetRating

func (x *Anime) GetRating() string

func (*Anime) GetRelated

func (x *Anime) GetRelated() []*Related

func (*Anime) GetSeason

func (x *Anime) GetSeason() *Season

func (*Anime) GetSource

func (x *Anime) GetSource() string

func (*Anime) GetStartDate

func (x *Anime) GetStartDate() *Date

func (*Anime) GetStats

func (x *Anime) GetStats() *Stats

func (*Anime) GetStatus

func (x *Anime) GetStatus() string

func (*Anime) GetStudios

func (x *Anime) GetStudios() []*Studio

func (*Anime) GetSynopsis

func (x *Anime) GetSynopsis() string

func (*Anime) GetTitle

func (x *Anime) GetTitle() string

func (*Anime) GetType

func (x *Anime) GetType() string

func (*Anime) GetUpdatedAt

func (x *Anime) GetUpdatedAt() *timestamp.Timestamp

func (*Anime) GetVoter

func (x *Anime) GetVoter() int32

func (*Anime) ProtoMessage

func (*Anime) ProtoMessage()

func (*Anime) ProtoReflect

func (x *Anime) ProtoReflect() protoreflect.Message

func (*Anime) Reset

func (x *Anime) Reset()

func (*Anime) String

func (x *Anime) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Broadcast.ProtoReflect.Descriptor instead.

func (*Broadcast) GetDay

func (x *Broadcast) GetDay() *Date

func (*Broadcast) GetTime

func (x *Broadcast) GetTime() string

func (*Broadcast) ProtoMessage

func (*Broadcast) ProtoMessage()

func (*Broadcast) ProtoReflect

func (x *Broadcast) ProtoReflect() protoreflect.Message

func (*Broadcast) Reset

func (x *Broadcast) Reset()

func (*Broadcast) String

func (x *Broadcast) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Date.ProtoReflect.Descriptor instead.

func (*Date) GetDay

func (x *Date) GetDay() int32

func (*Date) GetMonth

func (x *Date) GetMonth() int32

func (*Date) GetYear

func (x *Date) GetYear() int32

func (*Date) ProtoMessage

func (*Date) ProtoMessage()

func (*Date) ProtoReflect

func (x *Date) ProtoReflect() protoreflect.Message

func (*Date) Reset

func (x *Date) Reset()

func (*Date) String

func (x *Date) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Episode.ProtoReflect.Descriptor instead.

func (*Episode) GetCount

func (x *Episode) GetCount() int32

func (*Episode) GetDuration

func (x *Episode) GetDuration() int32

func (*Episode) ProtoMessage

func (*Episode) ProtoMessage()

func (*Episode) ProtoReflect

func (x *Episode) ProtoReflect() protoreflect.Message

func (*Episode) Reset

func (x *Episode) Reset()

func (*Episode) String

func (x *Episode) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Genre.ProtoReflect.Descriptor instead.

func (*Genre) GetId

func (x *Genre) GetId() int64

func (*Genre) GetName

func (x *Genre) GetName() string

func (*Genre) ProtoMessage

func (*Genre) ProtoMessage()

func (*Genre) ProtoReflect

func (x *Genre) ProtoReflect() protoreflect.Message

func (*Genre) Reset

func (x *Genre) Reset()

func (*Genre) String

func (x *Genre) String() string

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 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) Descriptor() ([]byte, []int)

Deprecated: Use Related.ProtoReflect.Descriptor instead.

func (*Related) GetId

func (x *Related) GetId() int64

func (*Related) GetPicture

func (x *Related) GetPicture() string

func (*Related) GetRelation

func (x *Related) GetRelation() string

func (*Related) GetTitle

func (x *Related) GetTitle() string

func (*Related) ProtoMessage

func (*Related) ProtoMessage()

func (*Related) ProtoReflect

func (x *Related) ProtoReflect() protoreflect.Message

func (*Related) Reset

func (x *Related) Reset()

func (*Related) String

func (x *Related) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Season.ProtoReflect.Descriptor instead.

func (*Season) GetSeason

func (x *Season) GetSeason() string

func (*Season) GetYear

func (x *Season) GetYear() int32

func (*Season) ProtoMessage

func (*Season) ProtoMessage()

func (*Season) ProtoReflect

func (x *Season) ProtoReflect() protoreflect.Message

func (*Season) Reset

func (x *Season) Reset()

func (*Season) String

func (x *Season) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Stats.ProtoReflect.Descriptor instead.

func (*Stats) GetStatus

func (x *Stats) GetStatus() *StatsStatus

func (*Stats) ProtoMessage

func (*Stats) ProtoMessage()

func (*Stats) ProtoReflect

func (x *Stats) ProtoReflect() protoreflect.Message

func (*Stats) Reset

func (x *Stats) Reset()

func (*Stats) String

func (x *Stats) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Studio.ProtoReflect.Descriptor instead.

func (*Studio) GetId

func (x *Studio) GetId() int64

func (*Studio) GetName

func (x *Studio) GetName() string

func (*Studio) ProtoMessage

func (*Studio) ProtoMessage()

func (*Studio) ProtoReflect

func (x *Studio) ProtoReflect() protoreflect.Message

func (*Studio) Reset

func (x *Studio) Reset()

func (*Studio) String

func (x *Studio) String() string

type UnimplementedAPIServer

type UnimplementedAPIServer struct {
}

UnimplementedAPIServer must be embedded to have forward compatible implementations.

func (UnimplementedAPIServer) GetAnimeByID

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.

Jump to

Keyboard shortcuts

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