rpc

package
v0.0.0-...-da267cc Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_proto_common_proto protoreflect.FileDescriptor
View Source
var File_proto_config_proto protoreflect.FileDescriptor
View Source
var File_proto_mika_proto protoreflect.FileDescriptor
View Source
var File_proto_role_proto protoreflect.FileDescriptor
View Source
var File_proto_tracker_proto protoreflect.FileDescriptor
View Source
var File_proto_user_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use ConfigRPC.ProtoReflect.Descriptor instead.

func (*ConfigRPC) GetKey

func (x *ConfigRPC) GetKey() bool

func (*ConfigRPC) GetListen

func (x *ConfigRPC) GetListen() string

func (*ConfigRPC) GetTls

func (x *ConfigRPC) GetTls() bool

func (*ConfigRPC) ProtoMessage

func (*ConfigRPC) ProtoMessage()

func (*ConfigRPC) ProtoReflect

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

func (*ConfigRPC) Reset

func (x *ConfigRPC) Reset()

func (*ConfigRPC) String

func (x *ConfigRPC) String() string

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

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

Deprecated: Use Role.ProtoReflect.Descriptor instead.

func (*Role) GetDownloadEnabled

func (x *Role) GetDownloadEnabled() bool

func (*Role) GetMultiDown

func (x *Role) GetMultiDown() float64

func (*Role) GetMultiUp

func (x *Role) GetMultiUp() float64

func (*Role) GetPriority

func (x *Role) GetPriority() int32

func (*Role) GetRemoteId

func (x *Role) GetRemoteId() uint64

func (*Role) GetRoleId

func (x *Role) GetRoleId() uint32

func (*Role) GetRoleName

func (x *Role) GetRoleName() string

func (*Role) GetTime

func (x *Role) GetTime() *TimeMeta

func (*Role) GetUploadEnabled

func (x *Role) GetUploadEnabled() bool

func (*Role) ProtoMessage

func (*Role) ProtoMessage()

func (*Role) ProtoReflect

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

func (*Role) Reset

func (x *Role) Reset()

func (*Role) String

func (x *Role) String() string

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

Deprecated: Use RoleID.ProtoReflect.Descriptor instead.

func (*RoleID) GetRoleId

func (x *RoleID) GetRoleId() uint32

func (*RoleID) GetRoleName

func (x *RoleID) GetRoleName() string

func (*RoleID) ProtoMessage

func (*RoleID) ProtoMessage()

func (*RoleID) ProtoReflect

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

func (*RoleID) Reset

func (x *RoleID) Reset()

func (*RoleID) String

func (x *RoleID) String() string

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

Deprecated: Use TimeMeta.ProtoReflect.Descriptor instead.

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

func (*TimeMeta) Reset

func (x *TimeMeta) Reset()

func (*TimeMeta) String

func (x *TimeMeta) String() string

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

Deprecated: Use Torrent.ProtoReflect.Descriptor instead.

func (*Torrent) GetAnnounces

func (x *Torrent) GetAnnounces() uint64

func (*Torrent) GetDownloaded

func (x *Torrent) GetDownloaded() uint64

func (*Torrent) GetInfoHash

func (x *Torrent) GetInfoHash() []byte

func (*Torrent) GetIsDeleted

func (x *Torrent) GetIsDeleted() bool

func (*Torrent) GetIsEnabled

func (x *Torrent) GetIsEnabled() bool

func (*Torrent) GetLeechers

func (x *Torrent) GetLeechers() uint32

func (*Torrent) GetMultiDn

func (x *Torrent) GetMultiDn() float64

func (*Torrent) GetMultiUp

func (x *Torrent) GetMultiUp() float64

func (*Torrent) GetReason

func (x *Torrent) GetReason() string

func (*Torrent) GetSeeders

func (x *Torrent) GetSeeders() uint32

func (*Torrent) GetSnatches

func (x *Torrent) GetSnatches() uint32

func (*Torrent) GetTime

func (x *Torrent) GetTime() *TimeMeta

func (*Torrent) GetTitle

func (x *Torrent) GetTitle() string

func (*Torrent) GetUploaded

func (x *Torrent) GetUploaded() uint64

func (*Torrent) ProtoMessage

func (*Torrent) ProtoMessage()

func (*Torrent) ProtoReflect

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

func (*Torrent) Reset

func (x *Torrent) Reset()

func (*Torrent) String

func (x *Torrent) String() string

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) ConfigSave

func (UnimplementedMikaServer) RoleAdd

func (UnimplementedMikaServer) RoleAll

func (UnimplementedMikaServer) RoleDelete

func (UnimplementedMikaServer) RoleSave

func (UnimplementedMikaServer) TorrentAdd

func (UnimplementedMikaServer) TorrentAll

func (UnimplementedMikaServer) TorrentDelete

func (UnimplementedMikaServer) TorrentGet

func (UnimplementedMikaServer) TorrentTop

func (UnimplementedMikaServer) TorrentUpdate

func (UnimplementedMikaServer) UserAdd

func (UnimplementedMikaServer) UserAll

func (UnimplementedMikaServer) UserDelete

func (UnimplementedMikaServer) UserGet

func (UnimplementedMikaServer) UserSave

func (UnimplementedMikaServer) WhiteListAdd

func (UnimplementedMikaServer) WhiteListAll

func (UnimplementedMikaServer) WhiteListDelete

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

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetAnnounces

func (x *User) GetAnnounces() uint32

func (*User) GetDownloadEnabled

func (x *User) GetDownloadEnabled() bool

func (*User) GetDownloaded

func (x *User) GetDownloaded() uint64

func (*User) GetIsDeleted

func (x *User) GetIsDeleted() bool

func (*User) GetPasskey

func (x *User) GetPasskey() string

func (*User) GetRemoteId

func (x *User) GetRemoteId() uint64

func (*User) GetRole

func (x *User) GetRole() *Role

func (*User) GetRoleId

func (x *User) GetRoleId() uint32

func (*User) GetTime

func (x *User) GetTime() *TimeMeta

func (*User) GetUploaded

func (x *User) GetUploaded() uint64

func (*User) GetUserId

func (x *User) GetUserId() uint32

func (*User) GetUserName

func (x *User) GetUserName() string

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

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

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

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

Deprecated: Use UserID.ProtoReflect.Descriptor instead.

func (*UserID) GetPasskey

func (x *UserID) GetPasskey() string

func (*UserID) GetRemoteId

func (x *UserID) GetRemoteId() uint64

func (*UserID) GetUserId

func (x *UserID) GetUserId() uint32

func (*UserID) ProtoMessage

func (*UserID) ProtoMessage()

func (*UserID) ProtoReflect

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

func (*UserID) Reset

func (x *UserID) Reset()

func (*UserID) String

func (x *UserID) String() string

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

Deprecated: Use WhiteList.ProtoReflect.Descriptor instead.

func (*WhiteList) GetName

func (x *WhiteList) GetName() string

func (*WhiteList) GetPrefix

func (x *WhiteList) GetPrefix() string

func (*WhiteList) ProtoMessage

func (*WhiteList) ProtoMessage()

func (*WhiteList) ProtoReflect

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

func (*WhiteList) Reset

func (x *WhiteList) Reset()

func (*WhiteList) String

func (x *WhiteList) String() string

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

Jump to

Keyboard shortcuts

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