Documentation ¶
Index ¶
- Variables
- func RegisterMikaServer(s grpc.ServiceRegistrar, srv MikaServer)
- type ConfigAllResponse
- func (*ConfigAllResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ConfigAllResponse) GetGeneral() *ConfigGeneral
- func (x *ConfigAllResponse) GetGeodb() *ConfigGeoDB
- func (x *ConfigAllResponse) GetRpc() *ConfigRPC
- func (x *ConfigAllResponse) GetStore() *ConfigStore
- func (x *ConfigAllResponse) GetTracker() *ConfigTracker
- func (*ConfigAllResponse) ProtoMessage()
- func (x *ConfigAllResponse) ProtoReflect() protoreflect.Message
- func (x *ConfigAllResponse) Reset()
- func (x *ConfigAllResponse) String() string
- type ConfigGeneral
- func (*ConfigGeneral) Descriptor() ([]byte, []int)deprecated
- func (x *ConfigGeneral) GetLogColour() bool
- func (x *ConfigGeneral) GetLogLevel() string
- func (x *ConfigGeneral) GetRunMode() string
- func (*ConfigGeneral) ProtoMessage()
- func (x *ConfigGeneral) ProtoReflect() protoreflect.Message
- func (x *ConfigGeneral) Reset()
- func (x *ConfigGeneral) String() string
- type ConfigGeoDB
- func (*ConfigGeoDB) Descriptor() ([]byte, []int)deprecated
- func (x *ConfigGeoDB) GetApiKey() string
- func (x *ConfigGeoDB) GetEnabled() bool
- func (x *ConfigGeoDB) GetPath() string
- func (*ConfigGeoDB) ProtoMessage()
- func (x *ConfigGeoDB) ProtoReflect() protoreflect.Message
- func (x *ConfigGeoDB) Reset()
- func (x *ConfigGeoDB) String() string
- type ConfigRPC
- func (*ConfigRPC) Descriptor() ([]byte, []int)deprecated
- func (x *ConfigRPC) GetKey() bool
- func (x *ConfigRPC) GetListen() string
- func (x *ConfigRPC) GetTls() bool
- func (*ConfigRPC) ProtoMessage()
- func (x *ConfigRPC) ProtoReflect() protoreflect.Message
- func (x *ConfigRPC) Reset()
- func (x *ConfigRPC) String() string
- type ConfigSaveParams
- func (*ConfigSaveParams) Descriptor() ([]byte, []int)deprecated
- func (x *ConfigSaveParams) GetGeodbEnabled() bool
- func (x *ConfigSaveParams) GetTrackerAnnounceInterval() int32
- func (x *ConfigSaveParams) GetTrackerAnnounceIntervalMin() int32
- func (x *ConfigSaveParams) GetTrackerBatchUpdateInterval() int32
- func (x *ConfigSaveParams) GetTrackerMaxPeers() int32
- func (x *ConfigSaveParams) GetTrackerReaperInterval() int32
- func (*ConfigSaveParams) ProtoMessage()
- func (x *ConfigSaveParams) ProtoReflect() protoreflect.Message
- func (x *ConfigSaveParams) Reset()
- func (x *ConfigSaveParams) String() string
- type ConfigStore
- func (*ConfigStore) Descriptor() ([]byte, []int)deprecated
- func (x *ConfigStore) GetDatabase() string
- func (x *ConfigStore) GetHost() string
- func (x *ConfigStore) GetPassword() string
- func (x *ConfigStore) GetPort() uint32
- func (x *ConfigStore) GetProperties() string
- func (x *ConfigStore) GetType() string
- func (x *ConfigStore) GetUser() string
- func (*ConfigStore) ProtoMessage()
- func (x *ConfigStore) ProtoReflect() protoreflect.Message
- func (x *ConfigStore) Reset()
- func (x *ConfigStore) String() string
- type ConfigTracker
- func (*ConfigTracker) Descriptor() ([]byte, []int)deprecated
- func (x *ConfigTracker) GetAllowClientIp() bool
- func (x *ConfigTracker) GetAllowNonRoutable() bool
- func (x *ConfigTracker) GetAnnounceInterval() string
- func (x *ConfigTracker) GetAnnounceIntervalMin() string
- func (x *ConfigTracker) GetAutoRegister() bool
- func (x *ConfigTracker) GetHnrThreshold() string
- func (x *ConfigTracker) GetIpv6() bool
- func (x *ConfigTracker) GetIpv6Only() bool
- func (x *ConfigTracker) GetListen() string
- func (x *ConfigTracker) GetMaxPeers() uint32
- func (x *ConfigTracker) GetPublic() bool
- func (x *ConfigTracker) GetReaperInterval() string
- func (x *ConfigTracker) GetTls() bool
- func (*ConfigTracker) ProtoMessage()
- func (x *ConfigTracker) ProtoReflect() protoreflect.Message
- func (x *ConfigTracker) Reset()
- func (x *ConfigTracker) String() string
- type InfoHashParam
- func (*InfoHashParam) Descriptor() ([]byte, []int)deprecated
- func (x *InfoHashParam) GetInfoHash() []byte
- func (x *InfoHashParam) GetInfoHashHex() string
- func (*InfoHashParam) ProtoMessage()
- func (x *InfoHashParam) ProtoReflect() protoreflect.Message
- func (x *InfoHashParam) Reset()
- func (x *InfoHashParam) String() string
- type MikaClient
- type MikaServer
- type Mika_RoleAllClient
- type Mika_RoleAllServer
- type Mika_TorrentAllClient
- type Mika_TorrentAllServer
- type Mika_UserAllClient
- type Mika_UserAllServer
- type Role
- func (*Role) Descriptor() ([]byte, []int)deprecated
- func (x *Role) GetDownloadEnabled() bool
- func (x *Role) GetMultiDown() float64
- func (x *Role) GetMultiUp() float64
- func (x *Role) GetPriority() int32
- func (x *Role) GetRemoteId() uint64
- func (x *Role) GetRoleId() uint32
- func (x *Role) GetRoleName() string
- func (x *Role) GetTime() *TimeMeta
- func (x *Role) GetUploadEnabled() bool
- func (*Role) ProtoMessage()
- func (x *Role) ProtoReflect() protoreflect.Message
- func (x *Role) Reset()
- func (x *Role) String() string
- type RoleAddParams
- func (*RoleAddParams) Descriptor() ([]byte, []int)deprecated
- func (x *RoleAddParams) GetDownloadEnabled() bool
- func (x *RoleAddParams) GetMultiDown() float64
- func (x *RoleAddParams) GetMultiUp() float64
- func (x *RoleAddParams) GetPriority() int32
- func (x *RoleAddParams) GetRemoteId() uint64
- func (x *RoleAddParams) GetRoleName() string
- func (x *RoleAddParams) GetUploadEnabled() bool
- func (*RoleAddParams) ProtoMessage()
- func (x *RoleAddParams) ProtoReflect() protoreflect.Message
- func (x *RoleAddParams) Reset()
- func (x *RoleAddParams) String() string
- type RoleID
- type RoleSetParams
- func (*RoleSetParams) Descriptor() ([]byte, []int)deprecated
- func (x *RoleSetParams) GetDownloadEnabled() bool
- func (x *RoleSetParams) GetMultiDown() float64
- func (x *RoleSetParams) GetMultiUp() float64
- func (x *RoleSetParams) GetPriority() int32
- func (x *RoleSetParams) GetRemoteId() uint64
- func (x *RoleSetParams) GetRoleName() string
- func (x *RoleSetParams) GetUpdatedKeys() []string
- func (x *RoleSetParams) GetUploadEnabled() bool
- func (*RoleSetParams) ProtoMessage()
- func (x *RoleSetParams) ProtoReflect() protoreflect.Message
- func (x *RoleSetParams) Reset()
- func (x *RoleSetParams) String() string
- type TimeMeta
- func (*TimeMeta) Descriptor() ([]byte, []int)deprecated
- func (x *TimeMeta) GetCreatedOn() *timestamppb.Timestamp
- func (x *TimeMeta) GetUpdatedOn() *timestamppb.Timestamp
- func (*TimeMeta) ProtoMessage()
- func (x *TimeMeta) ProtoReflect() protoreflect.Message
- func (x *TimeMeta) Reset()
- func (x *TimeMeta) String() string
- type Torrent
- func (*Torrent) Descriptor() ([]byte, []int)deprecated
- func (x *Torrent) GetAnnounces() uint64
- func (x *Torrent) GetDownloaded() uint64
- func (x *Torrent) GetInfoHash() []byte
- func (x *Torrent) GetIsDeleted() bool
- func (x *Torrent) GetIsEnabled() bool
- func (x *Torrent) GetLeechers() uint32
- func (x *Torrent) GetMultiDn() float64
- func (x *Torrent) GetMultiUp() float64
- func (x *Torrent) GetReason() string
- func (x *Torrent) GetSeeders() uint32
- func (x *Torrent) GetSnatches() uint32
- func (x *Torrent) GetTime() *TimeMeta
- func (x *Torrent) GetTitle() string
- func (x *Torrent) GetUploaded() uint64
- func (*Torrent) ProtoMessage()
- func (x *Torrent) ProtoReflect() protoreflect.Message
- func (x *Torrent) Reset()
- func (x *Torrent) String() string
- type TorrentAddParams
- func (*TorrentAddParams) Descriptor() ([]byte, []int)deprecated
- func (x *TorrentAddParams) GetInfoHash() []byte
- func (x *TorrentAddParams) GetMultiDn() float64
- func (x *TorrentAddParams) GetMultiUp() float64
- func (x *TorrentAddParams) GetTitle() string
- func (*TorrentAddParams) ProtoMessage()
- func (x *TorrentAddParams) ProtoReflect() protoreflect.Message
- func (x *TorrentAddParams) Reset()
- func (x *TorrentAddParams) String() string
- type TorrentParams
- type TorrentSet
- type TorrentTopParams
- func (*TorrentTopParams) Descriptor() ([]byte, []int)deprecated
- func (x *TorrentTopParams) GetDesc() bool
- func (x *TorrentTopParams) GetDuration() int32
- func (x *TorrentTopParams) GetLimit() int32
- func (*TorrentTopParams) ProtoMessage()
- func (x *TorrentTopParams) ProtoReflect() protoreflect.Message
- func (x *TorrentTopParams) Reset()
- func (x *TorrentTopParams) String() string
- type TorrentUpdateParams
- func (*TorrentUpdateParams) Descriptor() ([]byte, []int)deprecated
- func (x *TorrentUpdateParams) GetDeleted() bool
- func (x *TorrentUpdateParams) GetEnabled() bool
- func (x *TorrentUpdateParams) GetMultiDn() string
- func (x *TorrentUpdateParams) GetMultiUp() string
- func (x *TorrentUpdateParams) GetReason() string
- func (x *TorrentUpdateParams) GetTitle() string
- func (*TorrentUpdateParams) ProtoMessage()
- func (x *TorrentUpdateParams) ProtoReflect() protoreflect.Message
- func (x *TorrentUpdateParams) Reset()
- func (x *TorrentUpdateParams) String() string
- type UnimplementedMikaServer
- func (UnimplementedMikaServer) ConfigAll(context.Context, *emptypb.Empty) (*ConfigAllResponse, error)
- func (UnimplementedMikaServer) ConfigSave(context.Context, *ConfigSaveParams) (*emptypb.Empty, error)
- func (UnimplementedMikaServer) RoleAdd(context.Context, *RoleAddParams) (*Role, error)
- func (UnimplementedMikaServer) RoleAll(*emptypb.Empty, Mika_RoleAllServer) error
- func (UnimplementedMikaServer) RoleDelete(context.Context, *RoleID) (*emptypb.Empty, error)
- func (UnimplementedMikaServer) RoleSave(context.Context, *Role) (*emptypb.Empty, error)
- func (UnimplementedMikaServer) TorrentAdd(context.Context, *TorrentAddParams) (*Torrent, error)
- func (UnimplementedMikaServer) TorrentAll(*emptypb.Empty, Mika_TorrentAllServer) error
- func (UnimplementedMikaServer) TorrentDelete(context.Context, *InfoHashParam) (*emptypb.Empty, error)
- func (UnimplementedMikaServer) TorrentGet(context.Context, *InfoHashParam) (*Torrent, error)
- func (UnimplementedMikaServer) TorrentTop(context.Context, *TorrentTopParams) (*Torrent, error)
- func (UnimplementedMikaServer) TorrentUpdate(context.Context, *TorrentUpdateParams) (*Torrent, error)
- func (UnimplementedMikaServer) UserAdd(context.Context, *UserAddParams) (*User, error)
- func (UnimplementedMikaServer) UserAll(*emptypb.Empty, Mika_UserAllServer) error
- func (UnimplementedMikaServer) UserDelete(context.Context, *UserID) (*emptypb.Empty, error)
- func (UnimplementedMikaServer) UserGet(context.Context, *UserID) (*User, error)
- func (UnimplementedMikaServer) UserSave(context.Context, *UserUpdateParams) (*User, error)
- func (UnimplementedMikaServer) WhiteListAdd(context.Context, *WhiteList) (*emptypb.Empty, error)
- func (UnimplementedMikaServer) WhiteListAll(context.Context, *emptypb.Empty) (*WhiteListAllResponse, error)
- func (UnimplementedMikaServer) WhiteListDelete(context.Context, *WhiteListDeleteParams) (*emptypb.Empty, error)
- type UnsafeMikaServer
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) GetAnnounces() uint32
- func (x *User) GetDownloadEnabled() bool
- func (x *User) GetDownloaded() uint64
- func (x *User) GetIsDeleted() bool
- func (x *User) GetPasskey() string
- func (x *User) GetRemoteId() uint64
- func (x *User) GetRole() *Role
- func (x *User) GetRoleId() uint32
- func (x *User) GetTime() *TimeMeta
- func (x *User) GetUploaded() uint64
- func (x *User) GetUserId() uint32
- func (x *User) GetUserName() string
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) String() string
- type UserAddParams
- func (*UserAddParams) Descriptor() ([]byte, []int)deprecated
- func (x *UserAddParams) GetDownloadEnabled() bool
- func (x *UserAddParams) GetDownloaded() uint64
- func (x *UserAddParams) GetPasskey() string
- func (x *UserAddParams) GetRemoteId() uint64
- func (x *UserAddParams) GetRoleId() uint32
- func (x *UserAddParams) GetUploaded() uint64
- func (x *UserAddParams) GetUserName() string
- func (*UserAddParams) ProtoMessage()
- func (x *UserAddParams) ProtoReflect() protoreflect.Message
- func (x *UserAddParams) Reset()
- func (x *UserAddParams) String() string
- type UserID
- func (*UserID) Descriptor() ([]byte, []int)deprecated
- func (x *UserID) GetPasskey() string
- func (x *UserID) GetRemoteId() uint64
- func (x *UserID) GetUserId() uint32
- func (*UserID) ProtoMessage()
- func (x *UserID) ProtoReflect() protoreflect.Message
- func (x *UserID) Reset()
- func (x *UserID) String() string
- type UserUpdateParams
- func (*UserUpdateParams) Descriptor() ([]byte, []int)deprecated
- func (x *UserUpdateParams) GetDownloadEnabled() bool
- func (x *UserUpdateParams) GetDownloaded() uint64
- func (x *UserUpdateParams) GetPasskey() string
- func (x *UserUpdateParams) GetRemoteId() uint64
- func (x *UserUpdateParams) GetRoleId() uint32
- func (x *UserUpdateParams) GetUploaded() uint64
- func (x *UserUpdateParams) GetUserId() uint32
- func (x *UserUpdateParams) GetUserName() string
- func (*UserUpdateParams) ProtoMessage()
- func (x *UserUpdateParams) ProtoReflect() protoreflect.Message
- func (x *UserUpdateParams) Reset()
- func (x *UserUpdateParams) String() string
- type WhiteList
- type WhiteListAllResponse
- func (*WhiteListAllResponse) Descriptor() ([]byte, []int)deprecated
- func (x *WhiteListAllResponse) GetWhitelists() []*WhiteList
- func (*WhiteListAllResponse) ProtoMessage()
- func (x *WhiteListAllResponse) ProtoReflect() protoreflect.Message
- func (x *WhiteListAllResponse) Reset()
- func (x *WhiteListAllResponse) String() string
- type WhiteListDeleteParams
- func (*WhiteListDeleteParams) Descriptor() ([]byte, []int)deprecated
- func (x *WhiteListDeleteParams) GetPrefix() string
- func (*WhiteListDeleteParams) ProtoMessage()
- func (x *WhiteListDeleteParams) ProtoReflect() protoreflect.Message
- func (x *WhiteListDeleteParams) Reset()
- func (x *WhiteListDeleteParams) String() string
Constants ¶
This section is empty.
Variables ¶
var File_proto_common_proto protoreflect.FileDescriptor
var File_proto_config_proto protoreflect.FileDescriptor
var File_proto_mika_proto protoreflect.FileDescriptor
var File_proto_role_proto protoreflect.FileDescriptor
var File_proto_tracker_proto protoreflect.FileDescriptor
var File_proto_user_proto protoreflect.FileDescriptor
var Mika_ServiceDesc = grpc.ServiceDesc{ ServiceName: "mika.Mika", HandlerType: (*MikaServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ConfigAll", Handler: _Mika_ConfigAll_Handler, }, { MethodName: "ConfigSave", Handler: _Mika_ConfigSave_Handler, }, { MethodName: "WhiteListAdd", Handler: _Mika_WhiteListAdd_Handler, }, { MethodName: "WhiteListDelete", Handler: _Mika_WhiteListDelete_Handler, }, { MethodName: "WhiteListAll", Handler: _Mika_WhiteListAll_Handler, }, { MethodName: "TorrentGet", Handler: _Mika_TorrentGet_Handler, }, { MethodName: "TorrentAdd", Handler: _Mika_TorrentAdd_Handler, }, { MethodName: "TorrentDelete", Handler: _Mika_TorrentDelete_Handler, }, { MethodName: "TorrentUpdate", Handler: _Mika_TorrentUpdate_Handler, }, { MethodName: "TorrentTop", Handler: _Mika_TorrentTop_Handler, }, { MethodName: "UserGet", Handler: _Mika_UserGet_Handler, }, { MethodName: "UserSave", Handler: _Mika_UserSave_Handler, }, { MethodName: "UserDelete", Handler: _Mika_UserDelete_Handler, }, { MethodName: "UserAdd", Handler: _Mika_UserAdd_Handler, }, { MethodName: "RoleAdd", Handler: _Mika_RoleAdd_Handler, }, { MethodName: "RoleDelete", Handler: _Mika_RoleDelete_Handler, }, { MethodName: "RoleSave", Handler: _Mika_RoleSave_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "TorrentAll", Handler: _Mika_TorrentAll_Handler, ServerStreams: true, }, { StreamName: "UserAll", Handler: _Mika_UserAll_Handler, ServerStreams: true, }, { StreamName: "RoleAll", Handler: _Mika_RoleAll_Handler, ServerStreams: true, }, }, Metadata: "proto/mika.proto", }
Mika_ServiceDesc is the grpc.ServiceDesc for Mika service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterMikaServer ¶
func RegisterMikaServer(s grpc.ServiceRegistrar, srv MikaServer)
Types ¶
type ConfigAllResponse ¶
type ConfigAllResponse struct { General *ConfigGeneral `protobuf:"bytes,1,opt,name=general,proto3" json:"general,omitempty"` Tracker *ConfigTracker `protobuf:"bytes,2,opt,name=tracker,proto3" json:"tracker,omitempty"` Rpc *ConfigRPC `protobuf:"bytes,3,opt,name=rpc,proto3" json:"rpc,omitempty"` Store *ConfigStore `protobuf:"bytes,4,opt,name=store,proto3" json:"store,omitempty"` Geodb *ConfigGeoDB `protobuf:"bytes,5,opt,name=geodb,proto3" json:"geodb,omitempty"` // contains filtered or unexported fields }
func (*ConfigAllResponse) Descriptor
deprecated
func (*ConfigAllResponse) Descriptor() ([]byte, []int)
Deprecated: Use ConfigAllResponse.ProtoReflect.Descriptor instead.
func (*ConfigAllResponse) GetGeneral ¶
func (x *ConfigAllResponse) GetGeneral() *ConfigGeneral
func (*ConfigAllResponse) GetGeodb ¶
func (x *ConfigAllResponse) GetGeodb() *ConfigGeoDB
func (*ConfigAllResponse) GetRpc ¶
func (x *ConfigAllResponse) GetRpc() *ConfigRPC
func (*ConfigAllResponse) GetStore ¶
func (x *ConfigAllResponse) GetStore() *ConfigStore
func (*ConfigAllResponse) GetTracker ¶
func (x *ConfigAllResponse) GetTracker() *ConfigTracker
func (*ConfigAllResponse) ProtoMessage ¶
func (*ConfigAllResponse) ProtoMessage()
func (*ConfigAllResponse) ProtoReflect ¶
func (x *ConfigAllResponse) ProtoReflect() protoreflect.Message
func (*ConfigAllResponse) Reset ¶
func (x *ConfigAllResponse) Reset()
func (*ConfigAllResponse) String ¶
func (x *ConfigAllResponse) String() string
type ConfigGeneral ¶
type ConfigGeneral struct { RunMode string `protobuf:"bytes,1,opt,name=run_mode,json=runMode,proto3" json:"run_mode,omitempty"` LogLevel string `protobuf:"bytes,2,opt,name=log_level,json=logLevel,proto3" json:"log_level,omitempty"` LogColour bool `protobuf:"varint,3,opt,name=log_colour,json=logColour,proto3" json:"log_colour,omitempty"` // contains filtered or unexported fields }
func (*ConfigGeneral) Descriptor
deprecated
func (*ConfigGeneral) Descriptor() ([]byte, []int)
Deprecated: Use ConfigGeneral.ProtoReflect.Descriptor instead.
func (*ConfigGeneral) GetLogColour ¶
func (x *ConfigGeneral) GetLogColour() bool
func (*ConfigGeneral) GetLogLevel ¶
func (x *ConfigGeneral) GetLogLevel() string
func (*ConfigGeneral) GetRunMode ¶
func (x *ConfigGeneral) GetRunMode() string
func (*ConfigGeneral) ProtoMessage ¶
func (*ConfigGeneral) ProtoMessage()
func (*ConfigGeneral) ProtoReflect ¶
func (x *ConfigGeneral) ProtoReflect() protoreflect.Message
func (*ConfigGeneral) Reset ¶
func (x *ConfigGeneral) Reset()
func (*ConfigGeneral) String ¶
func (x *ConfigGeneral) String() string
type ConfigGeoDB ¶
type ConfigGeoDB struct { Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` ApiKey string `protobuf:"bytes,2,opt,name=api_key,json=apiKey,proto3" json:"api_key,omitempty"` Enabled bool `protobuf:"varint,3,opt,name=enabled,proto3" json:"enabled,omitempty"` // contains filtered or unexported fields }
func (*ConfigGeoDB) Descriptor
deprecated
func (*ConfigGeoDB) Descriptor() ([]byte, []int)
Deprecated: Use ConfigGeoDB.ProtoReflect.Descriptor instead.
func (*ConfigGeoDB) GetApiKey ¶
func (x *ConfigGeoDB) GetApiKey() string
func (*ConfigGeoDB) GetEnabled ¶
func (x *ConfigGeoDB) GetEnabled() bool
func (*ConfigGeoDB) GetPath ¶
func (x *ConfigGeoDB) GetPath() string
func (*ConfigGeoDB) ProtoMessage ¶
func (*ConfigGeoDB) ProtoMessage()
func (*ConfigGeoDB) ProtoReflect ¶
func (x *ConfigGeoDB) ProtoReflect() protoreflect.Message
func (*ConfigGeoDB) Reset ¶
func (x *ConfigGeoDB) Reset()
func (*ConfigGeoDB) String ¶
func (x *ConfigGeoDB) String() string
type ConfigRPC ¶
type ConfigRPC struct { Listen string `protobuf:"bytes,1,opt,name=listen,proto3" json:"listen,omitempty"` Tls bool `protobuf:"varint,2,opt,name=tls,proto3" json:"tls,omitempty"` Key bool `protobuf:"varint,3,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
func (*ConfigRPC) Descriptor
deprecated
func (*ConfigRPC) ProtoMessage ¶
func (*ConfigRPC) ProtoMessage()
func (*ConfigRPC) ProtoReflect ¶
func (x *ConfigRPC) ProtoReflect() protoreflect.Message
type ConfigSaveParams ¶
type ConfigSaveParams struct { TrackerAnnounceInterval int32 `` /* 133-byte string literal not displayed */ TrackerAnnounceIntervalMin int32 `` /* 144-byte string literal not displayed */ TrackerReaperInterval int32 `` /* 127-byte string literal not displayed */ TrackerBatchUpdateInterval int32 `` /* 144-byte string literal not displayed */ TrackerMaxPeers int32 `protobuf:"varint,5,opt,name=tracker_max_peers,json=trackerMaxPeers,proto3" json:"tracker_max_peers,omitempty"` GeodbEnabled bool `protobuf:"varint,6,opt,name=geodb_enabled,json=geodbEnabled,proto3" json:"geodb_enabled,omitempty"` // contains filtered or unexported fields }
func (*ConfigSaveParams) Descriptor
deprecated
func (*ConfigSaveParams) Descriptor() ([]byte, []int)
Deprecated: Use ConfigSaveParams.ProtoReflect.Descriptor instead.
func (*ConfigSaveParams) GetGeodbEnabled ¶
func (x *ConfigSaveParams) GetGeodbEnabled() bool
func (*ConfigSaveParams) GetTrackerAnnounceInterval ¶
func (x *ConfigSaveParams) GetTrackerAnnounceInterval() int32
func (*ConfigSaveParams) GetTrackerAnnounceIntervalMin ¶
func (x *ConfigSaveParams) GetTrackerAnnounceIntervalMin() int32
func (*ConfigSaveParams) GetTrackerBatchUpdateInterval ¶
func (x *ConfigSaveParams) GetTrackerBatchUpdateInterval() int32
func (*ConfigSaveParams) GetTrackerMaxPeers ¶
func (x *ConfigSaveParams) GetTrackerMaxPeers() int32
func (*ConfigSaveParams) GetTrackerReaperInterval ¶
func (x *ConfigSaveParams) GetTrackerReaperInterval() int32
func (*ConfigSaveParams) ProtoMessage ¶
func (*ConfigSaveParams) ProtoMessage()
func (*ConfigSaveParams) ProtoReflect ¶
func (x *ConfigSaveParams) ProtoReflect() protoreflect.Message
func (*ConfigSaveParams) Reset ¶
func (x *ConfigSaveParams) Reset()
func (*ConfigSaveParams) String ¶
func (x *ConfigSaveParams) String() string
type ConfigStore ¶
type ConfigStore struct { Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` Host string `protobuf:"bytes,2,opt,name=host,proto3" json:"host,omitempty"` Port uint32 `protobuf:"varint,3,opt,name=port,proto3" json:"port,omitempty"` User string `protobuf:"bytes,4,opt,name=user,proto3" json:"user,omitempty"` Password string `protobuf:"bytes,5,opt,name=password,proto3" json:"password,omitempty"` Database string `protobuf:"bytes,6,opt,name=database,proto3" json:"database,omitempty"` Properties string `protobuf:"bytes,7,opt,name=properties,proto3" json:"properties,omitempty"` // contains filtered or unexported fields }
func (*ConfigStore) Descriptor
deprecated
func (*ConfigStore) Descriptor() ([]byte, []int)
Deprecated: Use ConfigStore.ProtoReflect.Descriptor instead.
func (*ConfigStore) GetDatabase ¶
func (x *ConfigStore) GetDatabase() string
func (*ConfigStore) GetHost ¶
func (x *ConfigStore) GetHost() string
func (*ConfigStore) GetPassword ¶
func (x *ConfigStore) GetPassword() string
func (*ConfigStore) GetPort ¶
func (x *ConfigStore) GetPort() uint32
func (*ConfigStore) GetProperties ¶
func (x *ConfigStore) GetProperties() string
func (*ConfigStore) GetType ¶
func (x *ConfigStore) GetType() string
func (*ConfigStore) GetUser ¶
func (x *ConfigStore) GetUser() string
func (*ConfigStore) ProtoMessage ¶
func (*ConfigStore) ProtoMessage()
func (*ConfigStore) ProtoReflect ¶
func (x *ConfigStore) ProtoReflect() protoreflect.Message
func (*ConfigStore) Reset ¶
func (x *ConfigStore) Reset()
func (*ConfigStore) String ¶
func (x *ConfigStore) String() string
type ConfigTracker ¶
type ConfigTracker struct { Public bool `protobuf:"varint,1,opt,name=public,proto3" json:"public,omitempty"` Listen string `protobuf:"bytes,2,opt,name=listen,proto3" json:"listen,omitempty"` Tls bool `protobuf:"varint,3,opt,name=tls,proto3" json:"tls,omitempty"` Ipv6 bool `protobuf:"varint,4,opt,name=ipv6,proto3" json:"ipv6,omitempty"` Ipv6Only bool `protobuf:"varint,5,opt,name=ipv6_only,json=ipv6Only,proto3" json:"ipv6_only,omitempty"` AutoRegister bool `protobuf:"varint,6,opt,name=auto_register,json=autoRegister,proto3" json:"auto_register,omitempty"` ReaperInterval string `protobuf:"bytes,7,opt,name=reaper_interval,json=reaperInterval,proto3" json:"reaper_interval,omitempty"` AnnounceInterval string `protobuf:"bytes,8,opt,name=announce_interval,json=announceInterval,proto3" json:"announce_interval,omitempty"` AnnounceIntervalMin string `protobuf:"bytes,9,opt,name=announce_interval_min,json=announceIntervalMin,proto3" json:"announce_interval_min,omitempty"` HnrThreshold string `protobuf:"bytes,10,opt,name=hnr_threshold,json=hnrThreshold,proto3" json:"hnr_threshold,omitempty"` AllowNonRoutable bool `protobuf:"varint,11,opt,name=allow_non_routable,json=allowNonRoutable,proto3" json:"allow_non_routable,omitempty"` AllowClientIp bool `protobuf:"varint,12,opt,name=allow_client_ip,json=allowClientIp,proto3" json:"allow_client_ip,omitempty"` MaxPeers uint32 `protobuf:"varint,13,opt,name=max_peers,json=maxPeers,proto3" json:"max_peers,omitempty"` // contains filtered or unexported fields }
func (*ConfigTracker) Descriptor
deprecated
func (*ConfigTracker) Descriptor() ([]byte, []int)
Deprecated: Use ConfigTracker.ProtoReflect.Descriptor instead.
func (*ConfigTracker) GetAllowClientIp ¶
func (x *ConfigTracker) GetAllowClientIp() bool
func (*ConfigTracker) GetAllowNonRoutable ¶
func (x *ConfigTracker) GetAllowNonRoutable() bool
func (*ConfigTracker) GetAnnounceInterval ¶
func (x *ConfigTracker) GetAnnounceInterval() string
func (*ConfigTracker) GetAnnounceIntervalMin ¶
func (x *ConfigTracker) GetAnnounceIntervalMin() string
func (*ConfigTracker) GetAutoRegister ¶
func (x *ConfigTracker) GetAutoRegister() bool
func (*ConfigTracker) GetHnrThreshold ¶
func (x *ConfigTracker) GetHnrThreshold() string
func (*ConfigTracker) GetIpv6 ¶
func (x *ConfigTracker) GetIpv6() bool
func (*ConfigTracker) GetIpv6Only ¶
func (x *ConfigTracker) GetIpv6Only() bool
func (*ConfigTracker) GetListen ¶
func (x *ConfigTracker) GetListen() string
func (*ConfigTracker) GetMaxPeers ¶
func (x *ConfigTracker) GetMaxPeers() uint32
func (*ConfigTracker) GetPublic ¶
func (x *ConfigTracker) GetPublic() bool
func (*ConfigTracker) GetReaperInterval ¶
func (x *ConfigTracker) GetReaperInterval() string
func (*ConfigTracker) GetTls ¶
func (x *ConfigTracker) GetTls() bool
func (*ConfigTracker) ProtoMessage ¶
func (*ConfigTracker) ProtoMessage()
func (*ConfigTracker) ProtoReflect ¶
func (x *ConfigTracker) ProtoReflect() protoreflect.Message
func (*ConfigTracker) Reset ¶
func (x *ConfigTracker) Reset()
func (*ConfigTracker) String ¶
func (x *ConfigTracker) String() string
type InfoHashParam ¶
type InfoHashParam struct { InfoHash []byte `protobuf:"bytes,1,opt,name=info_hash,json=infoHash,proto3" json:"info_hash,omitempty"` InfoHashHex string `protobuf:"bytes,2,opt,name=info_hash_hex,json=infoHashHex,proto3" json:"info_hash_hex,omitempty"` // contains filtered or unexported fields }
func (*InfoHashParam) Descriptor
deprecated
func (*InfoHashParam) Descriptor() ([]byte, []int)
Deprecated: Use InfoHashParam.ProtoReflect.Descriptor instead.
func (*InfoHashParam) GetInfoHash ¶
func (x *InfoHashParam) GetInfoHash() []byte
func (*InfoHashParam) GetInfoHashHex ¶
func (x *InfoHashParam) GetInfoHashHex() string
func (*InfoHashParam) ProtoMessage ¶
func (*InfoHashParam) ProtoMessage()
func (*InfoHashParam) ProtoReflect ¶
func (x *InfoHashParam) ProtoReflect() protoreflect.Message
func (*InfoHashParam) Reset ¶
func (x *InfoHashParam) Reset()
func (*InfoHashParam) String ¶
func (x *InfoHashParam) String() string
type MikaClient ¶
type MikaClient interface { ConfigAll(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ConfigAllResponse, error) ConfigSave(ctx context.Context, in *ConfigSaveParams, opts ...grpc.CallOption) (*emptypb.Empty, error) WhiteListAdd(ctx context.Context, in *WhiteList, opts ...grpc.CallOption) (*emptypb.Empty, error) WhiteListDelete(ctx context.Context, in *WhiteListDeleteParams, opts ...grpc.CallOption) (*emptypb.Empty, error) WhiteListAll(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*WhiteListAllResponse, error) TorrentAll(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (Mika_TorrentAllClient, error) TorrentGet(ctx context.Context, in *InfoHashParam, opts ...grpc.CallOption) (*Torrent, error) TorrentAdd(ctx context.Context, in *TorrentAddParams, opts ...grpc.CallOption) (*Torrent, error) TorrentDelete(ctx context.Context, in *InfoHashParam, opts ...grpc.CallOption) (*emptypb.Empty, error) TorrentUpdate(ctx context.Context, in *TorrentUpdateParams, opts ...grpc.CallOption) (*Torrent, error) TorrentTop(ctx context.Context, in *TorrentTopParams, opts ...grpc.CallOption) (*Torrent, error) UserGet(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*User, error) UserAll(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (Mika_UserAllClient, error) UserSave(ctx context.Context, in *UserUpdateParams, opts ...grpc.CallOption) (*User, error) UserDelete(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*emptypb.Empty, error) UserAdd(ctx context.Context, in *UserAddParams, opts ...grpc.CallOption) (*User, error) RoleAll(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (Mika_RoleAllClient, error) RoleAdd(ctx context.Context, in *RoleAddParams, opts ...grpc.CallOption) (*Role, error) RoleDelete(ctx context.Context, in *RoleID, opts ...grpc.CallOption) (*emptypb.Empty, error) RoleSave(ctx context.Context, in *Role, opts ...grpc.CallOption) (*emptypb.Empty, error) }
MikaClient is the client API for Mika 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 NewMikaClient ¶
func NewMikaClient(cc grpc.ClientConnInterface) MikaClient
type MikaServer ¶
type MikaServer interface { ConfigAll(context.Context, *emptypb.Empty) (*ConfigAllResponse, error) ConfigSave(context.Context, *ConfigSaveParams) (*emptypb.Empty, error) WhiteListAdd(context.Context, *WhiteList) (*emptypb.Empty, error) WhiteListDelete(context.Context, *WhiteListDeleteParams) (*emptypb.Empty, error) WhiteListAll(context.Context, *emptypb.Empty) (*WhiteListAllResponse, error) TorrentAll(*emptypb.Empty, Mika_TorrentAllServer) error TorrentGet(context.Context, *InfoHashParam) (*Torrent, error) TorrentAdd(context.Context, *TorrentAddParams) (*Torrent, error) TorrentDelete(context.Context, *InfoHashParam) (*emptypb.Empty, error) TorrentUpdate(context.Context, *TorrentUpdateParams) (*Torrent, error) TorrentTop(context.Context, *TorrentTopParams) (*Torrent, error) UserGet(context.Context, *UserID) (*User, error) UserAll(*emptypb.Empty, Mika_UserAllServer) error UserSave(context.Context, *UserUpdateParams) (*User, error) UserDelete(context.Context, *UserID) (*emptypb.Empty, error) UserAdd(context.Context, *UserAddParams) (*User, error) RoleAll(*emptypb.Empty, Mika_RoleAllServer) error RoleAdd(context.Context, *RoleAddParams) (*Role, error) RoleDelete(context.Context, *RoleID) (*emptypb.Empty, error) RoleSave(context.Context, *Role) (*emptypb.Empty, error) // contains filtered or unexported methods }
MikaServer is the server API for Mika service. All implementations must embed UnimplementedMikaServer for forward compatibility
type Mika_RoleAllClient ¶
type Mika_RoleAllClient interface { Recv() (*Role, error) grpc.ClientStream }
type Mika_RoleAllServer ¶
type Mika_RoleAllServer interface { Send(*Role) error grpc.ServerStream }
type Mika_TorrentAllClient ¶
type Mika_TorrentAllClient interface { Recv() (*Torrent, error) grpc.ClientStream }
type Mika_TorrentAllServer ¶
type Mika_TorrentAllServer interface { Send(*Torrent) error grpc.ServerStream }
type Mika_UserAllClient ¶
type Mika_UserAllClient interface { Recv() (*User, error) grpc.ClientStream }
type Mika_UserAllServer ¶
type Mika_UserAllServer interface { Send(*User) error grpc.ServerStream }
type Role ¶
type Role struct { RoleId uint32 `protobuf:"varint,1,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"` RoleName string `protobuf:"bytes,2,opt,name=role_name,json=roleName,proto3" json:"role_name,omitempty"` RemoteId uint64 `protobuf:"varint,3,opt,name=remote_id,json=remoteId,proto3" json:"remote_id,omitempty"` Priority int32 `protobuf:"varint,4,opt,name=priority,proto3" json:"priority,omitempty"` DownloadEnabled bool `protobuf:"varint,5,opt,name=download_enabled,json=downloadEnabled,proto3" json:"download_enabled,omitempty"` UploadEnabled bool `protobuf:"varint,6,opt,name=upload_enabled,json=uploadEnabled,proto3" json:"upload_enabled,omitempty"` MultiUp float64 `protobuf:"fixed64,7,opt,name=multi_up,json=multiUp,proto3" json:"multi_up,omitempty"` MultiDown float64 `protobuf:"fixed64,8,opt,name=multi_down,json=multiDown,proto3" json:"multi_down,omitempty"` Time *TimeMeta `protobuf:"bytes,9,opt,name=time,proto3" json:"time,omitempty"` // contains filtered or unexported fields }
func (*Role) Descriptor
deprecated
func (*Role) GetDownloadEnabled ¶
func (*Role) GetMultiDown ¶
func (*Role) GetMultiUp ¶
func (*Role) GetPriority ¶
func (*Role) GetRemoteId ¶
func (*Role) GetRoleName ¶
func (*Role) GetUploadEnabled ¶
func (*Role) ProtoMessage ¶
func (*Role) ProtoMessage()
func (*Role) ProtoReflect ¶
func (x *Role) ProtoReflect() protoreflect.Message
type RoleAddParams ¶
type RoleAddParams struct { RoleName string `protobuf:"bytes,2,opt,name=role_name,json=roleName,proto3" json:"role_name,omitempty"` RemoteId uint64 `protobuf:"varint,3,opt,name=remote_id,json=remoteId,proto3" json:"remote_id,omitempty"` Priority int32 `protobuf:"varint,4,opt,name=priority,proto3" json:"priority,omitempty"` DownloadEnabled bool `protobuf:"varint,5,opt,name=download_enabled,json=downloadEnabled,proto3" json:"download_enabled,omitempty"` UploadEnabled bool `protobuf:"varint,6,opt,name=upload_enabled,json=uploadEnabled,proto3" json:"upload_enabled,omitempty"` MultiUp float64 `protobuf:"fixed64,7,opt,name=multi_up,json=multiUp,proto3" json:"multi_up,omitempty"` MultiDown float64 `protobuf:"fixed64,8,opt,name=multi_down,json=multiDown,proto3" json:"multi_down,omitempty"` // contains filtered or unexported fields }
func (*RoleAddParams) Descriptor
deprecated
func (*RoleAddParams) Descriptor() ([]byte, []int)
Deprecated: Use RoleAddParams.ProtoReflect.Descriptor instead.
func (*RoleAddParams) GetDownloadEnabled ¶
func (x *RoleAddParams) GetDownloadEnabled() bool
func (*RoleAddParams) GetMultiDown ¶
func (x *RoleAddParams) GetMultiDown() float64
func (*RoleAddParams) GetMultiUp ¶
func (x *RoleAddParams) GetMultiUp() float64
func (*RoleAddParams) GetPriority ¶
func (x *RoleAddParams) GetPriority() int32
func (*RoleAddParams) GetRemoteId ¶
func (x *RoleAddParams) GetRemoteId() uint64
func (*RoleAddParams) GetRoleName ¶
func (x *RoleAddParams) GetRoleName() string
func (*RoleAddParams) GetUploadEnabled ¶
func (x *RoleAddParams) GetUploadEnabled() bool
func (*RoleAddParams) ProtoMessage ¶
func (*RoleAddParams) ProtoMessage()
func (*RoleAddParams) ProtoReflect ¶
func (x *RoleAddParams) ProtoReflect() protoreflect.Message
func (*RoleAddParams) Reset ¶
func (x *RoleAddParams) Reset()
func (*RoleAddParams) String ¶
func (x *RoleAddParams) String() string
type RoleID ¶
type RoleID struct { RoleId uint32 `protobuf:"varint,1,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"` RoleName string `protobuf:"bytes,2,opt,name=role_name,json=roleName,proto3" json:"role_name,omitempty"` // contains filtered or unexported fields }
func (*RoleID) Descriptor
deprecated
func (*RoleID) GetRoleName ¶
func (*RoleID) ProtoMessage ¶
func (*RoleID) ProtoMessage()
func (*RoleID) ProtoReflect ¶
func (x *RoleID) ProtoReflect() protoreflect.Message
type RoleSetParams ¶
type RoleSetParams struct { UpdatedKeys []string `protobuf:"bytes,1,rep,name=updated_keys,json=updatedKeys,proto3" json:"updated_keys,omitempty"` RoleName string `protobuf:"bytes,2,opt,name=role_name,json=roleName,proto3" json:"role_name,omitempty"` RemoteId uint64 `protobuf:"varint,3,opt,name=remote_id,json=remoteId,proto3" json:"remote_id,omitempty"` Priority int32 `protobuf:"varint,4,opt,name=priority,proto3" json:"priority,omitempty"` DownloadEnabled bool `protobuf:"varint,5,opt,name=download_enabled,json=downloadEnabled,proto3" json:"download_enabled,omitempty"` UploadEnabled bool `protobuf:"varint,6,opt,name=upload_enabled,json=uploadEnabled,proto3" json:"upload_enabled,omitempty"` MultiUp float64 `protobuf:"fixed64,7,opt,name=multi_up,json=multiUp,proto3" json:"multi_up,omitempty"` MultiDown float64 `protobuf:"fixed64,8,opt,name=multi_down,json=multiDown,proto3" json:"multi_down,omitempty"` // contains filtered or unexported fields }
func (*RoleSetParams) Descriptor
deprecated
func (*RoleSetParams) Descriptor() ([]byte, []int)
Deprecated: Use RoleSetParams.ProtoReflect.Descriptor instead.
func (*RoleSetParams) GetDownloadEnabled ¶
func (x *RoleSetParams) GetDownloadEnabled() bool
func (*RoleSetParams) GetMultiDown ¶
func (x *RoleSetParams) GetMultiDown() float64
func (*RoleSetParams) GetMultiUp ¶
func (x *RoleSetParams) GetMultiUp() float64
func (*RoleSetParams) GetPriority ¶
func (x *RoleSetParams) GetPriority() int32
func (*RoleSetParams) GetRemoteId ¶
func (x *RoleSetParams) GetRemoteId() uint64
func (*RoleSetParams) GetRoleName ¶
func (x *RoleSetParams) GetRoleName() string
func (*RoleSetParams) GetUpdatedKeys ¶
func (x *RoleSetParams) GetUpdatedKeys() []string
func (*RoleSetParams) GetUploadEnabled ¶
func (x *RoleSetParams) GetUploadEnabled() bool
func (*RoleSetParams) ProtoMessage ¶
func (*RoleSetParams) ProtoMessage()
func (*RoleSetParams) ProtoReflect ¶
func (x *RoleSetParams) ProtoReflect() protoreflect.Message
func (*RoleSetParams) Reset ¶
func (x *RoleSetParams) Reset()
func (*RoleSetParams) String ¶
func (x *RoleSetParams) String() string
type TimeMeta ¶
type TimeMeta struct { CreatedOn *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=created_on,json=createdOn,proto3" json:"created_on,omitempty"` UpdatedOn *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=updated_on,json=updatedOn,proto3" json:"updated_on,omitempty"` // contains filtered or unexported fields }
func (*TimeMeta) Descriptor
deprecated
func (*TimeMeta) GetCreatedOn ¶
func (x *TimeMeta) GetCreatedOn() *timestamppb.Timestamp
func (*TimeMeta) GetUpdatedOn ¶
func (x *TimeMeta) GetUpdatedOn() *timestamppb.Timestamp
func (*TimeMeta) ProtoMessage ¶
func (*TimeMeta) ProtoMessage()
func (*TimeMeta) ProtoReflect ¶
func (x *TimeMeta) ProtoReflect() protoreflect.Message
type Torrent ¶
type Torrent struct { InfoHash []byte `protobuf:"bytes,1,opt,name=info_hash,json=infoHash,proto3" json:"info_hash,omitempty"` Snatches uint32 `protobuf:"varint,2,opt,name=snatches,proto3" json:"snatches,omitempty"` Uploaded uint64 `protobuf:"varint,3,opt,name=uploaded,proto3" json:"uploaded,omitempty"` Downloaded uint64 `protobuf:"varint,4,opt,name=downloaded,proto3" json:"downloaded,omitempty"` IsDeleted bool `protobuf:"varint,5,opt,name=is_deleted,json=isDeleted,proto3" json:"is_deleted,omitempty"` IsEnabled bool `protobuf:"varint,6,opt,name=is_enabled,json=isEnabled,proto3" json:"is_enabled,omitempty"` Reason string `protobuf:"bytes,7,opt,name=reason,proto3" json:"reason,omitempty"` MultiUp float64 `protobuf:"fixed64,8,opt,name=multi_up,json=multiUp,proto3" json:"multi_up,omitempty"` MultiDn float64 `protobuf:"fixed64,9,opt,name=multi_dn,json=multiDn,proto3" json:"multi_dn,omitempty"` Announces uint64 `protobuf:"varint,10,opt,name=announces,proto3" json:"announces,omitempty"` Seeders uint32 `protobuf:"varint,11,opt,name=seeders,proto3" json:"seeders,omitempty"` Leechers uint32 `protobuf:"varint,12,opt,name=leechers,proto3" json:"leechers,omitempty"` Title string `protobuf:"bytes,13,opt,name=title,proto3" json:"title,omitempty"` Time *TimeMeta `protobuf:"bytes,14,opt,name=time,proto3" json:"time,omitempty"` // contains filtered or unexported fields }
func (*Torrent) Descriptor
deprecated
func (*Torrent) GetAnnounces ¶
func (*Torrent) GetDownloaded ¶
func (*Torrent) GetInfoHash ¶
func (*Torrent) GetIsDeleted ¶
func (*Torrent) GetIsEnabled ¶
func (*Torrent) GetLeechers ¶
func (*Torrent) GetMultiDn ¶
func (*Torrent) GetMultiUp ¶
func (*Torrent) GetSeeders ¶
func (*Torrent) GetSnatches ¶
func (*Torrent) GetUploaded ¶
func (*Torrent) ProtoMessage ¶
func (*Torrent) ProtoMessage()
func (*Torrent) ProtoReflect ¶
func (x *Torrent) ProtoReflect() protoreflect.Message
type TorrentAddParams ¶
type TorrentAddParams struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` InfoHash []byte `protobuf:"bytes,2,opt,name=info_hash,json=infoHash,proto3" json:"info_hash,omitempty"` MultiUp float64 `protobuf:"fixed64,3,opt,name=multi_up,json=multiUp,proto3" json:"multi_up,omitempty"` MultiDn float64 `protobuf:"fixed64,4,opt,name=multi_dn,json=multiDn,proto3" json:"multi_dn,omitempty"` // contains filtered or unexported fields }
func (*TorrentAddParams) Descriptor
deprecated
func (*TorrentAddParams) Descriptor() ([]byte, []int)
Deprecated: Use TorrentAddParams.ProtoReflect.Descriptor instead.
func (*TorrentAddParams) GetInfoHash ¶
func (x *TorrentAddParams) GetInfoHash() []byte
func (*TorrentAddParams) GetMultiDn ¶
func (x *TorrentAddParams) GetMultiDn() float64
func (*TorrentAddParams) GetMultiUp ¶
func (x *TorrentAddParams) GetMultiUp() float64
func (*TorrentAddParams) GetTitle ¶
func (x *TorrentAddParams) GetTitle() string
func (*TorrentAddParams) ProtoMessage ¶
func (*TorrentAddParams) ProtoMessage()
func (*TorrentAddParams) ProtoReflect ¶
func (x *TorrentAddParams) ProtoReflect() protoreflect.Message
func (*TorrentAddParams) Reset ¶
func (x *TorrentAddParams) Reset()
func (*TorrentAddParams) String ¶
func (x *TorrentAddParams) String() string
type TorrentParams ¶
type TorrentParams struct { TorrentID int64 `protobuf:"varint,1,opt,name=torrentID,proto3" json:"torrentID,omitempty"` // contains filtered or unexported fields }
func (*TorrentParams) Descriptor
deprecated
func (*TorrentParams) Descriptor() ([]byte, []int)
Deprecated: Use TorrentParams.ProtoReflect.Descriptor instead.
func (*TorrentParams) GetTorrentID ¶
func (x *TorrentParams) GetTorrentID() int64
func (*TorrentParams) ProtoMessage ¶
func (*TorrentParams) ProtoMessage()
func (*TorrentParams) ProtoReflect ¶
func (x *TorrentParams) ProtoReflect() protoreflect.Message
func (*TorrentParams) Reset ¶
func (x *TorrentParams) Reset()
func (*TorrentParams) String ¶
func (x *TorrentParams) String() string
type TorrentSet ¶
type TorrentSet struct { Torrents []*Torrent `protobuf:"bytes,1,rep,name=torrents,proto3" json:"torrents,omitempty"` // contains filtered or unexported fields }
func (*TorrentSet) Descriptor
deprecated
func (*TorrentSet) Descriptor() ([]byte, []int)
Deprecated: Use TorrentSet.ProtoReflect.Descriptor instead.
func (*TorrentSet) GetTorrents ¶
func (x *TorrentSet) GetTorrents() []*Torrent
func (*TorrentSet) ProtoMessage ¶
func (*TorrentSet) ProtoMessage()
func (*TorrentSet) ProtoReflect ¶
func (x *TorrentSet) ProtoReflect() protoreflect.Message
func (*TorrentSet) Reset ¶
func (x *TorrentSet) Reset()
func (*TorrentSet) String ¶
func (x *TorrentSet) String() string
type TorrentTopParams ¶
type TorrentTopParams struct { Limit int32 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"` Desc bool `protobuf:"varint,2,opt,name=desc,proto3" json:"desc,omitempty"` Duration int32 `protobuf:"varint,3,opt,name=duration,proto3" json:"duration,omitempty"` // contains filtered or unexported fields }
func (*TorrentTopParams) Descriptor
deprecated
func (*TorrentTopParams) Descriptor() ([]byte, []int)
Deprecated: Use TorrentTopParams.ProtoReflect.Descriptor instead.
func (*TorrentTopParams) GetDesc ¶
func (x *TorrentTopParams) GetDesc() bool
func (*TorrentTopParams) GetDuration ¶
func (x *TorrentTopParams) GetDuration() int32
func (*TorrentTopParams) GetLimit ¶
func (x *TorrentTopParams) GetLimit() int32
func (*TorrentTopParams) ProtoMessage ¶
func (*TorrentTopParams) ProtoMessage()
func (*TorrentTopParams) ProtoReflect ¶
func (x *TorrentTopParams) ProtoReflect() protoreflect.Message
func (*TorrentTopParams) Reset ¶
func (x *TorrentTopParams) Reset()
func (*TorrentTopParams) String ¶
func (x *TorrentTopParams) String() string
type TorrentUpdateParams ¶
type TorrentUpdateParams struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Deleted bool `protobuf:"varint,2,opt,name=deleted,proto3" json:"deleted,omitempty"` Enabled bool `protobuf:"varint,3,opt,name=enabled,proto3" json:"enabled,omitempty"` Reason string `protobuf:"bytes,4,opt,name=reason,proto3" json:"reason,omitempty"` MultiUp string `protobuf:"bytes,5,opt,name=multi_up,json=multiUp,proto3" json:"multi_up,omitempty"` MultiDn string `protobuf:"bytes,6,opt,name=multi_dn,json=multiDn,proto3" json:"multi_dn,omitempty"` // contains filtered or unexported fields }
func (*TorrentUpdateParams) Descriptor
deprecated
func (*TorrentUpdateParams) Descriptor() ([]byte, []int)
Deprecated: Use TorrentUpdateParams.ProtoReflect.Descriptor instead.
func (*TorrentUpdateParams) GetDeleted ¶
func (x *TorrentUpdateParams) GetDeleted() bool
func (*TorrentUpdateParams) GetEnabled ¶
func (x *TorrentUpdateParams) GetEnabled() bool
func (*TorrentUpdateParams) GetMultiDn ¶
func (x *TorrentUpdateParams) GetMultiDn() string
func (*TorrentUpdateParams) GetMultiUp ¶
func (x *TorrentUpdateParams) GetMultiUp() string
func (*TorrentUpdateParams) GetReason ¶
func (x *TorrentUpdateParams) GetReason() string
func (*TorrentUpdateParams) GetTitle ¶
func (x *TorrentUpdateParams) GetTitle() string
func (*TorrentUpdateParams) ProtoMessage ¶
func (*TorrentUpdateParams) ProtoMessage()
func (*TorrentUpdateParams) ProtoReflect ¶
func (x *TorrentUpdateParams) ProtoReflect() protoreflect.Message
func (*TorrentUpdateParams) Reset ¶
func (x *TorrentUpdateParams) Reset()
func (*TorrentUpdateParams) String ¶
func (x *TorrentUpdateParams) String() string
type UnimplementedMikaServer ¶
type UnimplementedMikaServer struct { }
UnimplementedMikaServer must be embedded to have forward compatible implementations.
func (UnimplementedMikaServer) ConfigAll ¶
func (UnimplementedMikaServer) ConfigAll(context.Context, *emptypb.Empty) (*ConfigAllResponse, error)
func (UnimplementedMikaServer) ConfigSave ¶
func (UnimplementedMikaServer) ConfigSave(context.Context, *ConfigSaveParams) (*emptypb.Empty, error)
func (UnimplementedMikaServer) RoleAdd ¶
func (UnimplementedMikaServer) RoleAdd(context.Context, *RoleAddParams) (*Role, error)
func (UnimplementedMikaServer) RoleAll ¶
func (UnimplementedMikaServer) RoleAll(*emptypb.Empty, Mika_RoleAllServer) error
func (UnimplementedMikaServer) RoleDelete ¶
func (UnimplementedMikaServer) TorrentAdd ¶
func (UnimplementedMikaServer) TorrentAdd(context.Context, *TorrentAddParams) (*Torrent, error)
func (UnimplementedMikaServer) TorrentAll ¶
func (UnimplementedMikaServer) TorrentAll(*emptypb.Empty, Mika_TorrentAllServer) error
func (UnimplementedMikaServer) TorrentDelete ¶
func (UnimplementedMikaServer) TorrentDelete(context.Context, *InfoHashParam) (*emptypb.Empty, error)
func (UnimplementedMikaServer) TorrentGet ¶
func (UnimplementedMikaServer) TorrentGet(context.Context, *InfoHashParam) (*Torrent, error)
func (UnimplementedMikaServer) TorrentTop ¶
func (UnimplementedMikaServer) TorrentTop(context.Context, *TorrentTopParams) (*Torrent, error)
func (UnimplementedMikaServer) TorrentUpdate ¶
func (UnimplementedMikaServer) TorrentUpdate(context.Context, *TorrentUpdateParams) (*Torrent, error)
func (UnimplementedMikaServer) UserAdd ¶
func (UnimplementedMikaServer) UserAdd(context.Context, *UserAddParams) (*User, error)
func (UnimplementedMikaServer) UserAll ¶
func (UnimplementedMikaServer) UserAll(*emptypb.Empty, Mika_UserAllServer) error
func (UnimplementedMikaServer) UserDelete ¶
func (UnimplementedMikaServer) UserSave ¶
func (UnimplementedMikaServer) UserSave(context.Context, *UserUpdateParams) (*User, error)
func (UnimplementedMikaServer) WhiteListAdd ¶
func (UnimplementedMikaServer) WhiteListAll ¶
func (UnimplementedMikaServer) WhiteListAll(context.Context, *emptypb.Empty) (*WhiteListAllResponse, error)
func (UnimplementedMikaServer) WhiteListDelete ¶
func (UnimplementedMikaServer) WhiteListDelete(context.Context, *WhiteListDeleteParams) (*emptypb.Empty, error)
type UnsafeMikaServer ¶
type UnsafeMikaServer interface {
// contains filtered or unexported methods
}
UnsafeMikaServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MikaServer will result in compilation errors.
type User ¶
type User struct { UserId uint32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` RoleId uint32 `protobuf:"varint,2,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"` RemoteId uint64 `protobuf:"varint,3,opt,name=remote_id,json=remoteId,proto3" json:"remote_id,omitempty"` UserName string `protobuf:"bytes,4,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"` Downloaded uint64 `protobuf:"varint,5,opt,name=downloaded,proto3" json:"downloaded,omitempty"` Uploaded uint64 `protobuf:"varint,6,opt,name=uploaded,proto3" json:"uploaded,omitempty"` Passkey string `protobuf:"bytes,7,opt,name=passkey,proto3" json:"passkey,omitempty"` IsDeleted bool `protobuf:"varint,8,opt,name=is_deleted,json=isDeleted,proto3" json:"is_deleted,omitempty"` DownloadEnabled bool `protobuf:"varint,9,opt,name=download_enabled,json=downloadEnabled,proto3" json:"download_enabled,omitempty"` Announces uint32 `protobuf:"varint,10,opt,name=announces,proto3" json:"announces,omitempty"` Time *TimeMeta `protobuf:"bytes,11,opt,name=time,proto3" json:"time,omitempty"` Role *Role `protobuf:"bytes,12,opt,name=role,proto3" json:"role,omitempty"` // contains filtered or unexported fields }
func (*User) Descriptor
deprecated
func (*User) GetAnnounces ¶
func (*User) GetDownloadEnabled ¶
func (*User) GetDownloaded ¶
func (*User) GetIsDeleted ¶
func (*User) GetPasskey ¶
func (*User) GetRemoteId ¶
func (*User) GetUploaded ¶
func (*User) GetUserName ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
type UserAddParams ¶
type UserAddParams struct { RoleId uint32 `protobuf:"varint,1,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"` RemoteId uint64 `protobuf:"varint,2,opt,name=remote_id,json=remoteId,proto3" json:"remote_id,omitempty"` UserName string `protobuf:"bytes,3,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"` DownloadEnabled bool `protobuf:"varint,4,opt,name=download_enabled,json=downloadEnabled,proto3" json:"download_enabled,omitempty"` Downloaded uint64 `protobuf:"varint,5,opt,name=downloaded,proto3" json:"downloaded,omitempty"` Uploaded uint64 `protobuf:"varint,6,opt,name=uploaded,proto3" json:"uploaded,omitempty"` Passkey string `protobuf:"bytes,7,opt,name=passkey,proto3" json:"passkey,omitempty"` // contains filtered or unexported fields }
func (*UserAddParams) Descriptor
deprecated
func (*UserAddParams) Descriptor() ([]byte, []int)
Deprecated: Use UserAddParams.ProtoReflect.Descriptor instead.
func (*UserAddParams) GetDownloadEnabled ¶
func (x *UserAddParams) GetDownloadEnabled() bool
func (*UserAddParams) GetDownloaded ¶
func (x *UserAddParams) GetDownloaded() uint64
func (*UserAddParams) GetPasskey ¶
func (x *UserAddParams) GetPasskey() string
func (*UserAddParams) GetRemoteId ¶
func (x *UserAddParams) GetRemoteId() uint64
func (*UserAddParams) GetRoleId ¶
func (x *UserAddParams) GetRoleId() uint32
func (*UserAddParams) GetUploaded ¶
func (x *UserAddParams) GetUploaded() uint64
func (*UserAddParams) GetUserName ¶
func (x *UserAddParams) GetUserName() string
func (*UserAddParams) ProtoMessage ¶
func (*UserAddParams) ProtoMessage()
func (*UserAddParams) ProtoReflect ¶
func (x *UserAddParams) ProtoReflect() protoreflect.Message
func (*UserAddParams) Reset ¶
func (x *UserAddParams) Reset()
func (*UserAddParams) String ¶
func (x *UserAddParams) String() string
type UserID ¶
type UserID struct { UserId uint32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` RemoteId uint64 `protobuf:"varint,2,opt,name=remote_id,json=remoteId,proto3" json:"remote_id,omitempty"` Passkey string `protobuf:"bytes,3,opt,name=passkey,proto3" json:"passkey,omitempty"` // contains filtered or unexported fields }
func (*UserID) Descriptor
deprecated
func (*UserID) GetPasskey ¶
func (*UserID) GetRemoteId ¶
func (*UserID) ProtoMessage ¶
func (*UserID) ProtoMessage()
func (*UserID) ProtoReflect ¶
func (x *UserID) ProtoReflect() protoreflect.Message
type UserUpdateParams ¶
type UserUpdateParams struct { UserId uint32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` RoleId uint32 `protobuf:"varint,2,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"` RemoteId uint64 `protobuf:"varint,3,opt,name=remote_id,json=remoteId,proto3" json:"remote_id,omitempty"` UserName string `protobuf:"bytes,4,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"` DownloadEnabled bool `protobuf:"varint,5,opt,name=download_enabled,json=downloadEnabled,proto3" json:"download_enabled,omitempty"` Downloaded uint64 `protobuf:"varint,6,opt,name=downloaded,proto3" json:"downloaded,omitempty"` Uploaded uint64 `protobuf:"varint,7,opt,name=uploaded,proto3" json:"uploaded,omitempty"` Passkey string `protobuf:"bytes,8,opt,name=passkey,proto3" json:"passkey,omitempty"` // contains filtered or unexported fields }
func (*UserUpdateParams) Descriptor
deprecated
func (*UserUpdateParams) Descriptor() ([]byte, []int)
Deprecated: Use UserUpdateParams.ProtoReflect.Descriptor instead.
func (*UserUpdateParams) GetDownloadEnabled ¶
func (x *UserUpdateParams) GetDownloadEnabled() bool
func (*UserUpdateParams) GetDownloaded ¶
func (x *UserUpdateParams) GetDownloaded() uint64
func (*UserUpdateParams) GetPasskey ¶
func (x *UserUpdateParams) GetPasskey() string
func (*UserUpdateParams) GetRemoteId ¶
func (x *UserUpdateParams) GetRemoteId() uint64
func (*UserUpdateParams) GetRoleId ¶
func (x *UserUpdateParams) GetRoleId() uint32
func (*UserUpdateParams) GetUploaded ¶
func (x *UserUpdateParams) GetUploaded() uint64
func (*UserUpdateParams) GetUserId ¶
func (x *UserUpdateParams) GetUserId() uint32
func (*UserUpdateParams) GetUserName ¶
func (x *UserUpdateParams) GetUserName() string
func (*UserUpdateParams) ProtoMessage ¶
func (*UserUpdateParams) ProtoMessage()
func (*UserUpdateParams) ProtoReflect ¶
func (x *UserUpdateParams) ProtoReflect() protoreflect.Message
func (*UserUpdateParams) Reset ¶
func (x *UserUpdateParams) Reset()
func (*UserUpdateParams) String ¶
func (x *UserUpdateParams) String() string
type WhiteList ¶
type WhiteList struct { Prefix string `protobuf:"bytes,1,opt,name=prefix,proto3" json:"prefix,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*WhiteList) Descriptor
deprecated
func (*WhiteList) ProtoMessage ¶
func (*WhiteList) ProtoMessage()
func (*WhiteList) ProtoReflect ¶
func (x *WhiteList) ProtoReflect() protoreflect.Message
type WhiteListAllResponse ¶
type WhiteListAllResponse struct { Whitelists []*WhiteList `protobuf:"bytes,1,rep,name=whitelists,proto3" json:"whitelists,omitempty"` // contains filtered or unexported fields }
func (*WhiteListAllResponse) Descriptor
deprecated
func (*WhiteListAllResponse) Descriptor() ([]byte, []int)
Deprecated: Use WhiteListAllResponse.ProtoReflect.Descriptor instead.
func (*WhiteListAllResponse) GetWhitelists ¶
func (x *WhiteListAllResponse) GetWhitelists() []*WhiteList
func (*WhiteListAllResponse) ProtoMessage ¶
func (*WhiteListAllResponse) ProtoMessage()
func (*WhiteListAllResponse) ProtoReflect ¶
func (x *WhiteListAllResponse) ProtoReflect() protoreflect.Message
func (*WhiteListAllResponse) Reset ¶
func (x *WhiteListAllResponse) Reset()
func (*WhiteListAllResponse) String ¶
func (x *WhiteListAllResponse) String() string
type WhiteListDeleteParams ¶
type WhiteListDeleteParams struct { Prefix string `protobuf:"bytes,1,opt,name=prefix,proto3" json:"prefix,omitempty"` // contains filtered or unexported fields }
func (*WhiteListDeleteParams) Descriptor
deprecated
func (*WhiteListDeleteParams) Descriptor() ([]byte, []int)
Deprecated: Use WhiteListDeleteParams.ProtoReflect.Descriptor instead.
func (*WhiteListDeleteParams) GetPrefix ¶
func (x *WhiteListDeleteParams) GetPrefix() string
func (*WhiteListDeleteParams) ProtoMessage ¶
func (*WhiteListDeleteParams) ProtoMessage()
func (*WhiteListDeleteParams) ProtoReflect ¶
func (x *WhiteListDeleteParams) ProtoReflect() protoreflect.Message
func (*WhiteListDeleteParams) Reset ¶
func (x *WhiteListDeleteParams) Reset()
func (*WhiteListDeleteParams) String ¶
func (x *WhiteListDeleteParams) String() string