service

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_service_proto protoreflect.FileDescriptor

Functions

func RegisterServicesServer

func RegisterServicesServer(s *grpc.Server, srv ServicesServer)

Types

type DataDetailMovie

type DataDetailMovie struct {
	Title      string     `protobuf:"bytes,1,opt,name=Title,proto3" json:"Title,omitempty"`
	Year       string     `protobuf:"bytes,2,opt,name=Year,proto3" json:"Year,omitempty"`
	Rated      string     `protobuf:"bytes,3,opt,name=Rated,proto3" json:"Rated,omitempty"`
	Released   string     `protobuf:"bytes,4,opt,name=Released,proto3" json:"Released,omitempty"`
	Runtime    string     `protobuf:"bytes,5,opt,name=Runtime,proto3" json:"Runtime,omitempty"`
	Genre      string     `protobuf:"bytes,6,opt,name=Genre,proto3" json:"Genre,omitempty"`
	Director   string     `protobuf:"bytes,7,opt,name=Director,proto3" json:"Director,omitempty"`
	Writer     string     `protobuf:"bytes,8,opt,name=Writer,proto3" json:"Writer,omitempty"`
	Actors     string     `protobuf:"bytes,9,opt,name=Actors,proto3" json:"Actors,omitempty"`
	Plot       string     `protobuf:"bytes,10,opt,name=Plot,proto3" json:"Plot,omitempty"`
	Language   string     `protobuf:"bytes,11,opt,name=Language,proto3" json:"Language,omitempty"`
	Country    string     `protobuf:"bytes,12,opt,name=Country,proto3" json:"Country,omitempty"`
	Awards     string     `protobuf:"bytes,13,opt,name=Awards,proto3" json:"Awards,omitempty"`
	Poster     string     `protobuf:"bytes,14,opt,name=Poster,proto3" json:"Poster,omitempty"`
	Ratings    []*Ratings `protobuf:"bytes,15,rep,name=Ratings,proto3" json:"Ratings,omitempty"`
	MetaScore  string     `protobuf:"bytes,16,opt,name=MetaScore,proto3" json:"MetaScore,omitempty"`
	ImdbRating string     `protobuf:"bytes,17,opt,name=ImdbRating,proto3" json:"ImdbRating,omitempty"`
	ImdbVotes  string     `protobuf:"bytes,18,opt,name=ImdbVotes,proto3" json:"ImdbVotes,omitempty"`
	ImdbID     string     `protobuf:"bytes,19,opt,name=ImdbID,proto3" json:"ImdbID,omitempty"`
	Type       string     `protobuf:"bytes,20,opt,name=Type,proto3" json:"Type,omitempty"`
	DVD        string     `protobuf:"bytes,21,opt,name=DVD,proto3" json:"DVD,omitempty"`
	BoxOffice  string     `protobuf:"bytes,22,opt,name=BoxOffice,proto3" json:"BoxOffice,omitempty"`
	Production string     `protobuf:"bytes,23,opt,name=Production,proto3" json:"Production,omitempty"`
	Website    string     `protobuf:"bytes,24,opt,name=Website,proto3" json:"Website,omitempty"`
	// contains filtered or unexported fields
}

func (*DataDetailMovie) Descriptor deprecated

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

Deprecated: Use DataDetailMovie.ProtoReflect.Descriptor instead.

func (*DataDetailMovie) GetActors

func (x *DataDetailMovie) GetActors() string

func (*DataDetailMovie) GetAwards

func (x *DataDetailMovie) GetAwards() string

func (*DataDetailMovie) GetBoxOffice

func (x *DataDetailMovie) GetBoxOffice() string

func (*DataDetailMovie) GetCountry

func (x *DataDetailMovie) GetCountry() string

func (*DataDetailMovie) GetDVD

func (x *DataDetailMovie) GetDVD() string

func (*DataDetailMovie) GetDirector

func (x *DataDetailMovie) GetDirector() string

func (*DataDetailMovie) GetGenre

func (x *DataDetailMovie) GetGenre() string

func (*DataDetailMovie) GetImdbID

func (x *DataDetailMovie) GetImdbID() string

func (*DataDetailMovie) GetImdbRating

func (x *DataDetailMovie) GetImdbRating() string

func (*DataDetailMovie) GetImdbVotes

func (x *DataDetailMovie) GetImdbVotes() string

func (*DataDetailMovie) GetLanguage

func (x *DataDetailMovie) GetLanguage() string

func (*DataDetailMovie) GetMetaScore

func (x *DataDetailMovie) GetMetaScore() string

func (*DataDetailMovie) GetPlot

func (x *DataDetailMovie) GetPlot() string

func (*DataDetailMovie) GetPoster

func (x *DataDetailMovie) GetPoster() string

func (*DataDetailMovie) GetProduction

func (x *DataDetailMovie) GetProduction() string

func (*DataDetailMovie) GetRated

func (x *DataDetailMovie) GetRated() string

func (*DataDetailMovie) GetRatings

func (x *DataDetailMovie) GetRatings() []*Ratings

func (*DataDetailMovie) GetReleased

func (x *DataDetailMovie) GetReleased() string

func (*DataDetailMovie) GetRuntime

func (x *DataDetailMovie) GetRuntime() string

func (*DataDetailMovie) GetTitle

func (x *DataDetailMovie) GetTitle() string

func (*DataDetailMovie) GetType

func (x *DataDetailMovie) GetType() string

func (*DataDetailMovie) GetWebsite

func (x *DataDetailMovie) GetWebsite() string

func (*DataDetailMovie) GetWriter

func (x *DataDetailMovie) GetWriter() string

func (*DataDetailMovie) GetYear

func (x *DataDetailMovie) GetYear() string

func (*DataDetailMovie) ProtoMessage

func (*DataDetailMovie) ProtoMessage()

func (*DataDetailMovie) ProtoReflect

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

func (*DataDetailMovie) Reset

func (x *DataDetailMovie) Reset()

func (*DataDetailMovie) String

func (x *DataDetailMovie) String() string

type DataListMovie

type DataListMovie struct {
	Items []*ItemsMovie `protobuf:"bytes,1,rep,name=Items,proto3" json:"Items,omitempty"`
	Total int64         `protobuf:"varint,2,opt,name=Total,proto3" json:"Total,omitempty"`
	// contains filtered or unexported fields
}

func (*DataListMovie) Descriptor deprecated

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

Deprecated: Use DataListMovie.ProtoReflect.Descriptor instead.

func (*DataListMovie) GetItems

func (x *DataListMovie) GetItems() []*ItemsMovie

func (*DataListMovie) GetTotal

func (x *DataListMovie) GetTotal() int64

func (*DataListMovie) ProtoMessage

func (*DataListMovie) ProtoMessage()

func (*DataListMovie) ProtoReflect

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

func (*DataListMovie) Reset

func (x *DataListMovie) Reset()

func (*DataListMovie) String

func (x *DataListMovie) String() string

type GetDetailMovieReq

type GetDetailMovieReq struct {
	MovieID string `protobuf:"bytes,1,opt,name=MovieID,proto3" json:"MovieID,omitempty"`
	// contains filtered or unexported fields
}

func (*GetDetailMovieReq) Descriptor deprecated

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

Deprecated: Use GetDetailMovieReq.ProtoReflect.Descriptor instead.

func (*GetDetailMovieReq) GetMovieID

func (x *GetDetailMovieReq) GetMovieID() string

func (*GetDetailMovieReq) ProtoMessage

func (*GetDetailMovieReq) ProtoMessage()

func (*GetDetailMovieReq) ProtoReflect

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

func (*GetDetailMovieReq) Reset

func (x *GetDetailMovieReq) Reset()

func (*GetDetailMovieReq) String

func (x *GetDetailMovieReq) String() string

type GetDetailMovieResp

type GetDetailMovieResp struct {
	Status *RPCStatus       `protobuf:"bytes,1,opt,name=Status,proto3" json:"Status,omitempty"`
	Data   *DataDetailMovie `protobuf:"bytes,2,opt,name=Data,proto3" json:"Data,omitempty"`
	// contains filtered or unexported fields
}

func (*GetDetailMovieResp) Descriptor deprecated

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

Deprecated: Use GetDetailMovieResp.ProtoReflect.Descriptor instead.

func (*GetDetailMovieResp) GetData

func (x *GetDetailMovieResp) GetData() *DataDetailMovie

func (*GetDetailMovieResp) GetStatus

func (x *GetDetailMovieResp) GetStatus() *RPCStatus

func (*GetDetailMovieResp) ProtoMessage

func (*GetDetailMovieResp) ProtoMessage()

func (*GetDetailMovieResp) ProtoReflect

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

func (*GetDetailMovieResp) Reset

func (x *GetDetailMovieResp) Reset()

func (*GetDetailMovieResp) String

func (x *GetDetailMovieResp) String() string

type GetListMovieReq

type GetListMovieReq struct {
	Search string `protobuf:"bytes,1,opt,name=Search,proto3" json:"Search,omitempty"`
	Page   int64  `protobuf:"varint,2,opt,name=Page,proto3" json:"Page,omitempty"`
	// contains filtered or unexported fields
}

func (*GetListMovieReq) Descriptor deprecated

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

Deprecated: Use GetListMovieReq.ProtoReflect.Descriptor instead.

func (*GetListMovieReq) GetPage

func (x *GetListMovieReq) GetPage() int64

func (*GetListMovieReq) GetSearch

func (x *GetListMovieReq) GetSearch() string

func (*GetListMovieReq) ProtoMessage

func (*GetListMovieReq) ProtoMessage()

func (*GetListMovieReq) ProtoReflect

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

func (*GetListMovieReq) Reset

func (x *GetListMovieReq) Reset()

func (*GetListMovieReq) String

func (x *GetListMovieReq) String() string

type GetListMovieResp

type GetListMovieResp struct {
	Status *RPCStatus     `protobuf:"bytes,1,opt,name=Status,proto3" json:"Status,omitempty"`
	Data   *DataListMovie `protobuf:"bytes,2,opt,name=Data,proto3" json:"Data,omitempty"`
	// contains filtered or unexported fields
}

func (*GetListMovieResp) Descriptor deprecated

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

Deprecated: Use GetListMovieResp.ProtoReflect.Descriptor instead.

func (*GetListMovieResp) GetData

func (x *GetListMovieResp) GetData() *DataListMovie

func (*GetListMovieResp) GetStatus

func (x *GetListMovieResp) GetStatus() *RPCStatus

func (*GetListMovieResp) ProtoMessage

func (*GetListMovieResp) ProtoMessage()

func (*GetListMovieResp) ProtoReflect

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

func (*GetListMovieResp) Reset

func (x *GetListMovieResp) Reset()

func (*GetListMovieResp) String

func (x *GetListMovieResp) String() string

type ItemsMovie

type ItemsMovie struct {
	Title   string `protobuf:"bytes,1,opt,name=Title,proto3" json:"Title,omitempty"`
	Year    string `protobuf:"bytes,2,opt,name=Year,proto3" json:"Year,omitempty"`
	MovieID string `protobuf:"bytes,3,opt,name=MovieID,proto3" json:"MovieID,omitempty"`
	Types   string `protobuf:"bytes,4,opt,name=Types,proto3" json:"Types,omitempty"`
	Poster  string `protobuf:"bytes,5,opt,name=Poster,proto3" json:"Poster,omitempty"`
	// contains filtered or unexported fields
}

func (*ItemsMovie) Descriptor deprecated

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

Deprecated: Use ItemsMovie.ProtoReflect.Descriptor instead.

func (*ItemsMovie) GetMovieID

func (x *ItemsMovie) GetMovieID() string

func (*ItemsMovie) GetPoster

func (x *ItemsMovie) GetPoster() string

func (*ItemsMovie) GetTitle

func (x *ItemsMovie) GetTitle() string

func (*ItemsMovie) GetTypes

func (x *ItemsMovie) GetTypes() string

func (*ItemsMovie) GetYear

func (x *ItemsMovie) GetYear() string

func (*ItemsMovie) ProtoMessage

func (*ItemsMovie) ProtoMessage()

func (*ItemsMovie) ProtoReflect

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

func (*ItemsMovie) Reset

func (x *ItemsMovie) Reset()

func (*ItemsMovie) String

func (x *ItemsMovie) String() string

type RPCStatus

type RPCStatus struct {
	Code    string `protobuf:"bytes,1,opt,name=Code,proto3" json:"Code,omitempty"`
	Message string `protobuf:"bytes,2,opt,name=Message,proto3" json:"Message,omitempty"`
	// contains filtered or unexported fields
}

func (*RPCStatus) Descriptor deprecated

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

Deprecated: Use RPCStatus.ProtoReflect.Descriptor instead.

func (*RPCStatus) GetCode

func (x *RPCStatus) GetCode() string

func (*RPCStatus) GetMessage

func (x *RPCStatus) GetMessage() string

func (*RPCStatus) ProtoMessage

func (*RPCStatus) ProtoMessage()

func (*RPCStatus) ProtoReflect

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

func (*RPCStatus) Reset

func (x *RPCStatus) Reset()

func (*RPCStatus) String

func (x *RPCStatus) String() string

type Ratings

type Ratings struct {
	Source string `protobuf:"bytes,1,opt,name=Source,proto3" json:"Source,omitempty"`
	Value  string `protobuf:"bytes,2,opt,name=Value,proto3" json:"Value,omitempty"`
	// contains filtered or unexported fields
}

func (*Ratings) Descriptor deprecated

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

Deprecated: Use Ratings.ProtoReflect.Descriptor instead.

func (*Ratings) GetSource

func (x *Ratings) GetSource() string

func (*Ratings) GetValue

func (x *Ratings) GetValue() string

func (*Ratings) ProtoMessage

func (*Ratings) ProtoMessage()

func (*Ratings) ProtoReflect

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

func (*Ratings) Reset

func (x *Ratings) Reset()

func (*Ratings) String

func (x *Ratings) String() string

type ServicesClient

type ServicesClient interface {
	GetListMovie(ctx context.Context, in *GetListMovieReq, opts ...grpc.CallOption) (*GetListMovieResp, error)
	GetDetailMovie(ctx context.Context, in *GetDetailMovieReq, opts ...grpc.CallOption) (*GetDetailMovieResp, error)
}

ServicesClient is the client API for Services service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewServicesClient

func NewServicesClient(cc grpc.ClientConnInterface) ServicesClient

type ServicesServer

type ServicesServer interface {
	GetListMovie(context.Context, *GetListMovieReq) (*GetListMovieResp, error)
	GetDetailMovie(context.Context, *GetDetailMovieReq) (*GetDetailMovieResp, error)
}

ServicesServer is the server API for Services service.

type UnimplementedServicesServer

type UnimplementedServicesServer struct {
}

UnimplementedServicesServer can be embedded to have forward compatible implementations.

func (*UnimplementedServicesServer) GetDetailMovie

func (*UnimplementedServicesServer) GetListMovie

Jump to

Keyboard shortcuts

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