pb

package
v0.0.0-...-0e611fa Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AuthService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.AuthService",
	HandlerType: (*AuthServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Register",
			Handler:    _AuthService_Register_Handler,
		},
		{
			MethodName: "Login",
			Handler:    _AuthService_Login_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "auth.proto",
}

AuthService_ServiceDesc is the grpc.ServiceDesc for AuthService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_user_data_proto protoreflect.FileDescriptor
View Source
var UserDataService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.UserDataService",
	HandlerType: (*UserDataServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "SaveText",
			Handler:    _UserDataService_SaveText_Handler,
		},
		{
			MethodName: "GetText",
			Handler:    _UserDataService_GetText_Handler,
		},
		{
			MethodName: "SaveCard",
			Handler:    _UserDataService_SaveCard_Handler,
		},
		{
			MethodName: "GetCard",
			Handler:    _UserDataService_GetCard_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "SaveFile",
			Handler:       _UserDataService_SaveFile_Handler,
			ClientStreams: true,
		},
	},
	Metadata: "user_data.proto",
}

UserDataService_ServiceDesc is the grpc.ServiceDesc for UserDataService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterAuthServiceServer

func RegisterAuthServiceServer(s grpc.ServiceRegistrar, srv AuthServiceServer)

func RegisterUserDataServiceServer

func RegisterUserDataServiceServer(s grpc.ServiceRegistrar, srv UserDataServiceServer)

Types

type AuthServiceClient

type AuthServiceClient interface {
	Register(ctx context.Context, in *RegisterRequest, opts ...grpc.CallOption) (*RegisterResponse, error)
	Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginResponse, error)
}

AuthServiceClient is the client API for AuthService 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.

type AuthServiceServer

type AuthServiceServer interface {
	Register(context.Context, *RegisterRequest) (*RegisterResponse, error)
	Login(context.Context, *LoginRequest) (*LoginResponse, error)
	// contains filtered or unexported methods
}

AuthServiceServer is the server API for AuthService service. All implementations must embed UnimplementedAuthServiceServer for forward compatibility

type DataCard

type DataCard struct {
	Number string `protobuf:"bytes,1,opt,name=number,proto3" json:"number,omitempty"`
	Meta   string `protobuf:"bytes,2,opt,name=meta,proto3" json:"meta,omitempty"`
	// contains filtered or unexported fields
}

Card data message

func (*DataCard) Descriptor deprecated

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

Deprecated: Use DataCard.ProtoReflect.Descriptor instead.

func (*DataCard) GetMeta

func (x *DataCard) GetMeta() string

func (*DataCard) GetNumber

func (x *DataCard) GetNumber() string

func (*DataCard) ProtoMessage

func (*DataCard) ProtoMessage()

func (*DataCard) ProtoReflect

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

func (*DataCard) Reset

func (x *DataCard) Reset()

func (*DataCard) String

func (x *DataCard) String() string

type DataFile

type DataFile struct {
	File string `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"`
	Meta string `protobuf:"bytes,2,opt,name=meta,proto3" json:"meta,omitempty"`
	// contains filtered or unexported fields
}

File data message

func (*DataFile) Descriptor deprecated

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

Deprecated: Use DataFile.ProtoReflect.Descriptor instead.

func (*DataFile) GetFile

func (x *DataFile) GetFile() string

func (*DataFile) GetMeta

func (x *DataFile) GetMeta() string

func (*DataFile) ProtoMessage

func (*DataFile) ProtoMessage()

func (*DataFile) ProtoReflect

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

func (*DataFile) Reset

func (x *DataFile) Reset()

func (*DataFile) String

func (x *DataFile) String() string

type DataText

type DataText struct {
	Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
	Meta string `protobuf:"bytes,2,opt,name=meta,proto3" json:"meta,omitempty"`
	// contains filtered or unexported fields
}

Text data message

func (*DataText) Descriptor deprecated

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

Deprecated: Use DataText.ProtoReflect.Descriptor instead.

func (*DataText) GetMeta

func (x *DataText) GetMeta() string

func (*DataText) GetText

func (x *DataText) GetText() string

func (*DataText) ProtoMessage

func (*DataText) ProtoMessage()

func (*DataText) ProtoReflect

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

func (*DataText) Reset

func (x *DataText) Reset()

func (*DataText) String

func (x *DataText) String() string

type FileInfo

type FileInfo struct {
	Id   string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	// contains filtered or unexported fields
}

func (*FileInfo) Descriptor deprecated

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

Deprecated: Use FileInfo.ProtoReflect.Descriptor instead.

func (*FileInfo) GetId

func (x *FileInfo) GetId() string

func (*FileInfo) GetType

func (x *FileInfo) GetType() string

func (*FileInfo) ProtoMessage

func (*FileInfo) ProtoMessage()

func (*FileInfo) ProtoReflect

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

func (*FileInfo) Reset

func (x *FileInfo) Reset()

func (*FileInfo) String

func (x *FileInfo) String() string

type FileRequest

type FileRequest struct {

	// Types that are assignable to Data:
	//	*FileRequest_Info
	//	*FileRequest_ChunkData
	Data isFileRequest_Data `protobuf_oneof:"data"`
	// contains filtered or unexported fields
}

func (*FileRequest) Descriptor deprecated

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

Deprecated: Use FileRequest.ProtoReflect.Descriptor instead.

func (*FileRequest) GetChunkData

func (x *FileRequest) GetChunkData() []byte

func (*FileRequest) GetData

func (m *FileRequest) GetData() isFileRequest_Data

func (*FileRequest) GetInfo

func (x *FileRequest) GetInfo() *FileInfo

func (*FileRequest) ProtoMessage

func (*FileRequest) ProtoMessage()

func (*FileRequest) ProtoReflect

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

func (*FileRequest) Reset

func (x *FileRequest) Reset()

func (*FileRequest) String

func (x *FileRequest) String() string

type FileRequest_ChunkData

type FileRequest_ChunkData struct {
	ChunkData []byte `protobuf:"bytes,2,opt,name=chunk_data,json=chunkData,proto3,oneof"`
}

type FileRequest_Info

type FileRequest_Info struct {
	Info *FileInfo `protobuf:"bytes,1,opt,name=info,proto3,oneof"`
}

type FileResponse

type FileResponse struct {
	Id   string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Size uint32 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
	// contains filtered or unexported fields
}

func (*FileResponse) Descriptor deprecated

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

Deprecated: Use FileResponse.ProtoReflect.Descriptor instead.

func (*FileResponse) GetId

func (x *FileResponse) GetId() string

func (*FileResponse) GetSize

func (x *FileResponse) GetSize() uint32

func (*FileResponse) ProtoMessage

func (*FileResponse) ProtoMessage()

func (*FileResponse) ProtoReflect

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

func (*FileResponse) Reset

func (x *FileResponse) Reset()

func (*FileResponse) String

func (x *FileResponse) String() string

type GetCardRequest

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

func (*GetCardRequest) Descriptor deprecated

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

Deprecated: Use GetCardRequest.ProtoReflect.Descriptor instead.

func (*GetCardRequest) GetId

func (x *GetCardRequest) GetId() string

func (*GetCardRequest) ProtoMessage

func (*GetCardRequest) ProtoMessage()

func (*GetCardRequest) ProtoReflect

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

func (*GetCardRequest) Reset

func (x *GetCardRequest) Reset()

func (*GetCardRequest) String

func (x *GetCardRequest) String() string

type GetCardResponse

type GetCardResponse struct {
	Card *DataCard `protobuf:"bytes,1,opt,name=card,proto3" json:"card,omitempty"`
	// contains filtered or unexported fields
}

func (*GetCardResponse) Descriptor deprecated

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

Deprecated: Use GetCardResponse.ProtoReflect.Descriptor instead.

func (*GetCardResponse) GetCard

func (x *GetCardResponse) GetCard() *DataCard

func (*GetCardResponse) ProtoMessage

func (*GetCardResponse) ProtoMessage()

func (*GetCardResponse) ProtoReflect

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

func (*GetCardResponse) Reset

func (x *GetCardResponse) Reset()

func (*GetCardResponse) String

func (x *GetCardResponse) String() string

type GetTextRequest

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

func (*GetTextRequest) Descriptor deprecated

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

Deprecated: Use GetTextRequest.ProtoReflect.Descriptor instead.

func (*GetTextRequest) GetId

func (x *GetTextRequest) GetId() string

func (*GetTextRequest) ProtoMessage

func (*GetTextRequest) ProtoMessage()

func (*GetTextRequest) ProtoReflect

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

func (*GetTextRequest) Reset

func (x *GetTextRequest) Reset()

func (*GetTextRequest) String

func (x *GetTextRequest) String() string

type GetTextResponse

type GetTextResponse struct {
	Text *DataText `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
	// contains filtered or unexported fields
}

func (*GetTextResponse) Descriptor deprecated

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

Deprecated: Use GetTextResponse.ProtoReflect.Descriptor instead.

func (*GetTextResponse) GetText

func (x *GetTextResponse) GetText() *DataText

func (*GetTextResponse) ProtoMessage

func (*GetTextResponse) ProtoMessage()

func (*GetTextResponse) ProtoReflect

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

func (*GetTextResponse) Reset

func (x *GetTextResponse) Reset()

func (*GetTextResponse) String

func (x *GetTextResponse) String() string

type LoginRequest

type LoginRequest struct {
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

func (*LoginRequest) Descriptor deprecated

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

Deprecated: Use LoginRequest.ProtoReflect.Descriptor instead.

func (*LoginRequest) GetPassword

func (x *LoginRequest) GetPassword() string

func (*LoginRequest) GetUsername

func (x *LoginRequest) GetUsername() string

func (*LoginRequest) ProtoMessage

func (*LoginRequest) ProtoMessage()

func (*LoginRequest) ProtoReflect

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

func (*LoginRequest) Reset

func (x *LoginRequest) Reset()

func (*LoginRequest) String

func (x *LoginRequest) String() string

type LoginResponse

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

func (*LoginResponse) Descriptor deprecated

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

Deprecated: Use LoginResponse.ProtoReflect.Descriptor instead.

func (*LoginResponse) GetAccessToken

func (x *LoginResponse) GetAccessToken() string

func (*LoginResponse) ProtoMessage

func (*LoginResponse) ProtoMessage()

func (*LoginResponse) ProtoReflect

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

func (*LoginResponse) Reset

func (x *LoginResponse) Reset()

func (*LoginResponse) String

func (x *LoginResponse) String() string

type RegisterRequest

type RegisterRequest struct {
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

func (*RegisterRequest) Descriptor deprecated

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

Deprecated: Use RegisterRequest.ProtoReflect.Descriptor instead.

func (*RegisterRequest) GetPassword

func (x *RegisterRequest) GetPassword() string

func (*RegisterRequest) GetUsername

func (x *RegisterRequest) GetUsername() string

func (*RegisterRequest) ProtoMessage

func (*RegisterRequest) ProtoMessage()

func (*RegisterRequest) ProtoReflect

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

func (*RegisterRequest) Reset

func (x *RegisterRequest) Reset()

func (*RegisterRequest) String

func (x *RegisterRequest) String() string

type RegisterResponse

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

func (*RegisterResponse) Descriptor deprecated

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

Deprecated: Use RegisterResponse.ProtoReflect.Descriptor instead.

func (*RegisterResponse) GetAccessToken

func (x *RegisterResponse) GetAccessToken() string

func (*RegisterResponse) ProtoMessage

func (*RegisterResponse) ProtoMessage()

func (*RegisterResponse) ProtoReflect

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

func (*RegisterResponse) Reset

func (x *RegisterResponse) Reset()

func (*RegisterResponse) String

func (x *RegisterResponse) String() string

type SaveCardRequest

type SaveCardRequest struct {
	Card *DataCard `protobuf:"bytes,1,opt,name=card,proto3" json:"card,omitempty"`
	// contains filtered or unexported fields
}

func (*SaveCardRequest) Descriptor deprecated

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

Deprecated: Use SaveCardRequest.ProtoReflect.Descriptor instead.

func (*SaveCardRequest) GetCard

func (x *SaveCardRequest) GetCard() *DataCard

func (*SaveCardRequest) ProtoMessage

func (*SaveCardRequest) ProtoMessage()

func (*SaveCardRequest) ProtoReflect

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

func (*SaveCardRequest) Reset

func (x *SaveCardRequest) Reset()

func (*SaveCardRequest) String

func (x *SaveCardRequest) String() string

type SaveCardResponse

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

func (*SaveCardResponse) Descriptor deprecated

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

Deprecated: Use SaveCardResponse.ProtoReflect.Descriptor instead.

func (*SaveCardResponse) GetId

func (x *SaveCardResponse) GetId() string

func (*SaveCardResponse) ProtoMessage

func (*SaveCardResponse) ProtoMessage()

func (*SaveCardResponse) ProtoReflect

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

func (*SaveCardResponse) Reset

func (x *SaveCardResponse) Reset()

func (*SaveCardResponse) String

func (x *SaveCardResponse) String() string

type SaveTextRequest

type SaveTextRequest struct {
	Text *DataText `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
	// contains filtered or unexported fields
}

func (*SaveTextRequest) Descriptor deprecated

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

Deprecated: Use SaveTextRequest.ProtoReflect.Descriptor instead.

func (*SaveTextRequest) GetText

func (x *SaveTextRequest) GetText() *DataText

func (*SaveTextRequest) ProtoMessage

func (*SaveTextRequest) ProtoMessage()

func (*SaveTextRequest) ProtoReflect

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

func (*SaveTextRequest) Reset

func (x *SaveTextRequest) Reset()

func (*SaveTextRequest) String

func (x *SaveTextRequest) String() string

type SaveTextResponse

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

func (*SaveTextResponse) Descriptor deprecated

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

Deprecated: Use SaveTextResponse.ProtoReflect.Descriptor instead.

func (*SaveTextResponse) GetId

func (x *SaveTextResponse) GetId() string

func (*SaveTextResponse) ProtoMessage

func (*SaveTextResponse) ProtoMessage()

func (*SaveTextResponse) ProtoReflect

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

func (*SaveTextResponse) Reset

func (x *SaveTextResponse) Reset()

func (*SaveTextResponse) String

func (x *SaveTextResponse) String() string

type UnimplementedAuthServiceServer

type UnimplementedAuthServiceServer struct {
}

UnimplementedAuthServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedAuthServiceServer) Login

func (UnimplementedAuthServiceServer) Register

type UnimplementedUserDataServiceServer

type UnimplementedUserDataServiceServer struct {
}

UnimplementedUserDataServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedUserDataServiceServer) GetCard

func (UnimplementedUserDataServiceServer) GetText

func (UnimplementedUserDataServiceServer) SaveCard

func (UnimplementedUserDataServiceServer) SaveFile

func (UnimplementedUserDataServiceServer) SaveText

type UnsafeAuthServiceServer

type UnsafeAuthServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeAuthServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AuthServiceServer will result in compilation errors.

type UnsafeUserDataServiceServer

type UnsafeUserDataServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeUserDataServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UserDataServiceServer will result in compilation errors.

type UserDataServiceClient

type UserDataServiceClient interface {
	SaveText(ctx context.Context, in *SaveTextRequest, opts ...grpc.CallOption) (*SaveTextResponse, error)
	GetText(ctx context.Context, in *GetTextRequest, opts ...grpc.CallOption) (*GetTextResponse, error)
	SaveCard(ctx context.Context, in *SaveCardRequest, opts ...grpc.CallOption) (*SaveCardResponse, error)
	GetCard(ctx context.Context, in *GetCardRequest, opts ...grpc.CallOption) (*GetCardResponse, error)
	SaveFile(ctx context.Context, opts ...grpc.CallOption) (UserDataService_SaveFileClient, error)
}

UserDataServiceClient is the client API for UserDataService 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.

type UserDataServiceServer

type UserDataServiceServer interface {
	SaveText(context.Context, *SaveTextRequest) (*SaveTextResponse, error)
	GetText(context.Context, *GetTextRequest) (*GetTextResponse, error)
	SaveCard(context.Context, *SaveCardRequest) (*SaveCardResponse, error)
	GetCard(context.Context, *GetCardRequest) (*GetCardResponse, error)
	SaveFile(UserDataService_SaveFileServer) error
	// contains filtered or unexported methods
}

UserDataServiceServer is the server API for UserDataService service. All implementations must embed UnimplementedUserDataServiceServer for forward compatibility

type UserDataService_SaveFileClient

type UserDataService_SaveFileClient interface {
	Send(*FileRequest) error
	CloseAndRecv() (*FileResponse, error)
	grpc.ClientStream
}

type UserDataService_SaveFileServer

type UserDataService_SaveFileServer interface {
	SendAndClose(*FileResponse) error
	Recv() (*FileRequest, error)
	grpc.ServerStream
}

Jump to

Keyboard shortcuts

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