golpje

package
v62.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package golpje is a generated protocol buffer package.

It is generated from these files:

golpje.proto

It has these top-level messages:

Empty
ProtoShow
ProtoEpisode
ProtoShows
ProtoEpisodes
ShowRequest
AddShowResponse
EpisodeRequest
AddEpisodeResponse
SyncShowResponse
SyncShowRequest

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterGolpjeServer

func RegisterGolpjeServer(s *grpc.Server, srv GolpjeServer)

Types

type AddEpisodeResponse

type AddEpisodeResponse struct {
	Episode *ProtoEpisode `protobuf:"bytes,1,opt,name=Episode" json:"Episode,omitempty"`
	Success bool          `protobuf:"varint,2,opt,name=Success" json:"Success,omitempty"`
	Error   string        `protobuf:"bytes,3,opt,name=Error" json:"Error,omitempty"`
}

func (*AddEpisodeResponse) Descriptor

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

func (*AddEpisodeResponse) GetEpisode

func (m *AddEpisodeResponse) GetEpisode() *ProtoEpisode

func (*AddEpisodeResponse) GetError

func (m *AddEpisodeResponse) GetError() string

func (*AddEpisodeResponse) GetSuccess

func (m *AddEpisodeResponse) GetSuccess() bool

func (*AddEpisodeResponse) ProtoMessage

func (*AddEpisodeResponse) ProtoMessage()

func (*AddEpisodeResponse) Reset

func (m *AddEpisodeResponse) Reset()

func (*AddEpisodeResponse) String

func (m *AddEpisodeResponse) String() string

type AddShowResponse

type AddShowResponse struct {
	Show    *ProtoShow `protobuf:"bytes,1,opt,name=Show" json:"Show,omitempty"`
	Success bool       `protobuf:"varint,2,opt,name=Success" json:"Success,omitempty"`
	Error   string     `protobuf:"bytes,3,opt,name=Error" json:"Error,omitempty"`
}

func (*AddShowResponse) Descriptor

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

func (*AddShowResponse) GetError

func (m *AddShowResponse) GetError() string

func (*AddShowResponse) GetShow

func (m *AddShowResponse) GetShow() *ProtoShow

func (*AddShowResponse) GetSuccess

func (m *AddShowResponse) GetSuccess() bool

func (*AddShowResponse) ProtoMessage

func (*AddShowResponse) ProtoMessage()

func (*AddShowResponse) Reset

func (m *AddShowResponse) Reset()

func (*AddShowResponse) String

func (m *AddShowResponse) String() string

type Empty

type Empty struct {
}

func (*Empty) Descriptor

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

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) Reset

func (m *Empty) Reset()

func (*Empty) String

func (m *Empty) String() string

type EpisodeRequest

type EpisodeRequest struct {
	Showid string `protobuf:"bytes,1,opt,name=Showid" json:"Showid,omitempty"`
	Season uint32 `protobuf:"varint,2,opt,name=Season" json:"Season,omitempty"`
}

func (*EpisodeRequest) Descriptor

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

func (*EpisodeRequest) GetSeason

func (m *EpisodeRequest) GetSeason() uint32

func (*EpisodeRequest) GetShowid

func (m *EpisodeRequest) GetShowid() string

func (*EpisodeRequest) ProtoMessage

func (*EpisodeRequest) ProtoMessage()

func (*EpisodeRequest) Reset

func (m *EpisodeRequest) Reset()

func (*EpisodeRequest) String

func (m *EpisodeRequest) String() string

type GolpjeClient

type GolpjeClient interface {
	GetShows(ctx context.Context, in *ShowRequest, opts ...grpc.CallOption) (*ProtoShows, error)
	AddShow(ctx context.Context, in *ProtoShow, opts ...grpc.CallOption) (*AddShowResponse, error)
	DelShow(ctx context.Context, in *ProtoShow, opts ...grpc.CallOption) (*AddShowResponse, error)
	SyncShow(ctx context.Context, in *SyncShowRequest, opts ...grpc.CallOption) (*SyncShowResponse, error)
	GetEpisodes(ctx context.Context, in *EpisodeRequest, opts ...grpc.CallOption) (*ProtoEpisodes, error)
	AddEpisode(ctx context.Context, in *ProtoEpisode, opts ...grpc.CallOption) (*AddEpisodeResponse, error)
}

func NewGolpjeClient

func NewGolpjeClient(cc *grpc.ClientConn) GolpjeClient

type ProtoEpisode

type ProtoEpisode struct {
	ID          string `protobuf:"bytes,1,opt,name=ID" json:"ID,omitempty"`
	Title       string `protobuf:"bytes,2,opt,name=Title" json:"Title,omitempty"`
	Showid      string `protobuf:"bytes,3,opt,name=Showid" json:"Showid,omitempty"`
	Added       int64  `protobuf:"varint,4,opt,name=Added" json:"Added,omitempty"`
	Magnetlink  string `protobuf:"bytes,5,opt,name=Magnetlink" json:"Magnetlink,omitempty"`
	Episodeid   string `protobuf:"bytes,6,opt,name=Episodeid" json:"Episodeid,omitempty"`
	Downloaded  bool   `protobuf:"varint,7,opt,name=Downloaded" json:"Downloaded,omitempty"`
	Downloading bool   `protobuf:"varint,8,opt,name=Downloading" json:"Downloading,omitempty"`
}

func (*ProtoEpisode) Descriptor

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

func (*ProtoEpisode) GetAdded

func (m *ProtoEpisode) GetAdded() int64

func (*ProtoEpisode) GetDownloaded

func (m *ProtoEpisode) GetDownloaded() bool

func (*ProtoEpisode) GetDownloading

func (m *ProtoEpisode) GetDownloading() bool

func (*ProtoEpisode) GetEpisodeid

func (m *ProtoEpisode) GetEpisodeid() string

func (*ProtoEpisode) GetID

func (m *ProtoEpisode) GetID() string
func (m *ProtoEpisode) GetMagnetlink() string

func (*ProtoEpisode) GetShowid

func (m *ProtoEpisode) GetShowid() string

func (*ProtoEpisode) GetTitle

func (m *ProtoEpisode) GetTitle() string

func (*ProtoEpisode) ProtoMessage

func (*ProtoEpisode) ProtoMessage()

func (*ProtoEpisode) Reset

func (m *ProtoEpisode) Reset()

func (*ProtoEpisode) String

func (m *ProtoEpisode) String() string

type ProtoEpisodes

type ProtoEpisodes struct {
	Episodes []*ProtoEpisode `protobuf:"bytes,1,rep,name=Episodes" json:"Episodes,omitempty"`
}

func (*ProtoEpisodes) Descriptor

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

func (*ProtoEpisodes) GetEpisodes

func (m *ProtoEpisodes) GetEpisodes() []*ProtoEpisode

func (*ProtoEpisodes) ProtoMessage

func (*ProtoEpisodes) ProtoMessage()

func (*ProtoEpisodes) Reset

func (m *ProtoEpisodes) Reset()

func (*ProtoEpisodes) String

func (m *ProtoEpisodes) String() string

type ProtoShow

type ProtoShow struct {
	ID       string `protobuf:"bytes,1,opt,name=ID" json:"ID,omitempty"`
	Name     string `protobuf:"bytes,2,opt,name=Name" json:"Name,omitempty"`
	Regexp   string `protobuf:"bytes,3,opt,name=Regexp" json:"Regexp,omitempty"`
	Active   bool   `protobuf:"varint,4,opt,name=Active" json:"Active,omitempty"`
	Seasonal bool   `protobuf:"varint,5,opt,name=Seasonal" json:"Seasonal,omitempty"`
	Minimal  int64  `protobuf:"varint,6,opt,name=Minimal" json:"Minimal,omitempty"`
}

func (*ProtoShow) Descriptor

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

func (*ProtoShow) GetActive

func (m *ProtoShow) GetActive() bool

func (*ProtoShow) GetID

func (m *ProtoShow) GetID() string

func (*ProtoShow) GetMinimal

func (m *ProtoShow) GetMinimal() int64

func (*ProtoShow) GetName

func (m *ProtoShow) GetName() string

func (*ProtoShow) GetRegexp

func (m *ProtoShow) GetRegexp() string

func (*ProtoShow) GetSeasonal

func (m *ProtoShow) GetSeasonal() bool

func (*ProtoShow) ProtoMessage

func (*ProtoShow) ProtoMessage()

func (*ProtoShow) Reset

func (m *ProtoShow) Reset()

func (*ProtoShow) String

func (m *ProtoShow) String() string

type ProtoShows

type ProtoShows struct {
	Shows []*ProtoShow `protobuf:"bytes,1,rep,name=Shows" json:"Shows,omitempty"`
}

func (*ProtoShows) Descriptor

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

func (*ProtoShows) GetShows

func (m *ProtoShows) GetShows() []*ProtoShow

func (*ProtoShows) ProtoMessage

func (*ProtoShows) ProtoMessage()

func (*ProtoShows) Reset

func (m *ProtoShows) Reset()

func (*ProtoShows) String

func (m *ProtoShows) String() string

type ShowRequest

type ShowRequest struct {
	Onlyactive bool   `protobuf:"varint,1,opt,name=Onlyactive" json:"Onlyactive,omitempty"`
	Name       string `protobuf:"bytes,2,opt,name=Name" json:"Name,omitempty"`
}

func (*ShowRequest) Descriptor

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

func (*ShowRequest) GetName

func (m *ShowRequest) GetName() string

func (*ShowRequest) GetOnlyactive

func (m *ShowRequest) GetOnlyactive() bool

func (*ShowRequest) ProtoMessage

func (*ShowRequest) ProtoMessage()

func (*ShowRequest) Reset

func (m *ShowRequest) Reset()

func (*ShowRequest) String

func (m *ShowRequest) String() string

type SyncShowRequest

type SyncShowRequest struct {
	ShowID string `protobuf:"bytes,1,opt,name=ShowID" json:"ShowID,omitempty"`
}

func (*SyncShowRequest) Descriptor

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

func (*SyncShowRequest) GetShowID

func (m *SyncShowRequest) GetShowID() string

func (*SyncShowRequest) ProtoMessage

func (*SyncShowRequest) ProtoMessage()

func (*SyncShowRequest) Reset

func (m *SyncShowRequest) Reset()

func (*SyncShowRequest) String

func (m *SyncShowRequest) String() string

type SyncShowResponse

type SyncShowResponse struct {
	FoundEpisodes int64  `protobuf:"varint,1,opt,name=FoundEpisodes" json:"FoundEpisodes,omitempty"`
	Success       bool   `protobuf:"varint,2,opt,name=Success" json:"Success,omitempty"`
	Error         string `protobuf:"bytes,3,opt,name=Error" json:"Error,omitempty"`
}

func (*SyncShowResponse) Descriptor

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

func (*SyncShowResponse) GetError

func (m *SyncShowResponse) GetError() string

func (*SyncShowResponse) GetFoundEpisodes

func (m *SyncShowResponse) GetFoundEpisodes() int64

func (*SyncShowResponse) GetSuccess

func (m *SyncShowResponse) GetSuccess() bool

func (*SyncShowResponse) ProtoMessage

func (*SyncShowResponse) ProtoMessage()

func (*SyncShowResponse) Reset

func (m *SyncShowResponse) Reset()

func (*SyncShowResponse) String

func (m *SyncShowResponse) String() string

Jump to

Keyboard shortcuts

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