anime

package
v0.0.0-...-b829c5b Latest Latest
Warning

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

Go to latest
Published: May 27, 2020 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterAnimeServiceHandler

func RegisterAnimeServiceHandler(s server.Server, hdlr AnimeServiceHandler, opts ...server.HandlerOption) error

Types

type Anime

type Anime struct {
	Id                   string   `protobuf:"bytes,1,opt,name=Id,proto3" json:"Id,omitempty"`
	Sources              []string `protobuf:"bytes,2,rep,name=sources,proto3" json:"sources,omitempty"`
	Title                string   `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"`
	Type                 string   `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"`
	Episodes             int32    `protobuf:"varint,5,opt,name=episodes,proto3" json:"episodes,omitempty"`
	Status               string   `protobuf:"bytes,6,opt,name=status,proto3" json:"status,omitempty"`
	Picture              string   `protobuf:"bytes,7,opt,name=picture,proto3" json:"picture,omitempty"`
	Thumbnail            string   `protobuf:"bytes,8,opt,name=thumbnail,proto3" json:"thumbnail,omitempty"`
	Synonyms             []string `protobuf:"bytes,9,rep,name=synonyms,proto3" json:"synonyms,omitempty"`
	Relations            []string `protobuf:"bytes,10,rep,name=relations,proto3" json:"relations,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Anime) Descriptor

func (*Anime) Descriptor() ([]byte, []int)

func (*Anime) GetEpisodes

func (m *Anime) GetEpisodes() int32

func (*Anime) GetId

func (m *Anime) GetId() string

func (*Anime) GetPicture

func (m *Anime) GetPicture() string

func (*Anime) GetRelations

func (m *Anime) GetRelations() []string

func (*Anime) GetSources

func (m *Anime) GetSources() []string

func (*Anime) GetStatus

func (m *Anime) GetStatus() string

func (*Anime) GetSynonyms

func (m *Anime) GetSynonyms() []string

func (*Anime) GetThumbnail

func (m *Anime) GetThumbnail() string

func (*Anime) GetTitle

func (m *Anime) GetTitle() string

func (*Anime) GetType

func (m *Anime) GetType() string

func (*Anime) ProtoMessage

func (*Anime) ProtoMessage()

func (*Anime) Reset

func (m *Anime) Reset()

func (*Anime) String

func (m *Anime) String() string

func (*Anime) XXX_DiscardUnknown

func (m *Anime) XXX_DiscardUnknown()

func (*Anime) XXX_Marshal

func (m *Anime) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Anime) XXX_Merge

func (m *Anime) XXX_Merge(src proto.Message)

func (*Anime) XXX_Size

func (m *Anime) XXX_Size() int

func (*Anime) XXX_Unmarshal

func (m *Anime) XXX_Unmarshal(b []byte) error

type AnimeService

type AnimeService interface {
	GetAnimes(ctx context.Context, in *Request, opts ...client.CallOption) (*Results, error)
	GetAll(ctx context.Context, in *Request, opts ...client.CallOption) (*Results, error)
}

func NewAnimeService

func NewAnimeService(name string, c client.Client) AnimeService

type AnimeServiceHandler

type AnimeServiceHandler interface {
	GetAnimes(context.Context, *Request, *Results) error
	GetAll(context.Context, *Request, *Results) error
}

type Request

type Request struct {
	AnimeId              string   `protobuf:"bytes,1,opt,name=animeId,proto3" json:"animeId,omitempty"`
	Title                string   `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	Type                 string   `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Request) Descriptor

func (*Request) Descriptor() ([]byte, []int)

func (*Request) GetAnimeId

func (m *Request) GetAnimeId() string

func (*Request) GetTitle

func (m *Request) GetTitle() string

func (*Request) GetType

func (m *Request) GetType() string

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) Reset

func (m *Request) Reset()

func (*Request) String

func (m *Request) String() string

func (*Request) XXX_DiscardUnknown

func (m *Request) XXX_DiscardUnknown()

func (*Request) XXX_Marshal

func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Request) XXX_Merge

func (m *Request) XXX_Merge(src proto.Message)

func (*Request) XXX_Size

func (m *Request) XXX_Size() int

func (*Request) XXX_Unmarshal

func (m *Request) XXX_Unmarshal(b []byte) error

type Results

type Results struct {
	Animes               []*Anime `protobuf:"bytes,1,rep,name=animes,proto3" json:"animes,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Results) Descriptor

func (*Results) Descriptor() ([]byte, []int)

func (*Results) GetAnimes

func (m *Results) GetAnimes() []*Anime

func (*Results) ProtoMessage

func (*Results) ProtoMessage()

func (*Results) Reset

func (m *Results) Reset()

func (*Results) String

func (m *Results) String() string

func (*Results) XXX_DiscardUnknown

func (m *Results) XXX_DiscardUnknown()

func (*Results) XXX_Marshal

func (m *Results) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Results) XXX_Merge

func (m *Results) XXX_Merge(src proto.Message)

func (*Results) XXX_Size

func (m *Results) XXX_Size() int

func (*Results) XXX_Unmarshal

func (m *Results) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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