pb

package
v0.0.0-...-e81cf84 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GophKeeperService_Register_FullMethodName       = "/pb.GophKeeperService/Register"
	GophKeeperService_Authenticate_FullMethodName   = "/pb.GophKeeperService/Authenticate"
	GophKeeperService_Authorize_FullMethodName      = "/pb.GophKeeperService/Authorize"
	GophKeeperService_AddData_FullMethodName        = "/pb.GophKeeperService/AddData"
	GophKeeperService_RetrieveData_FullMethodName   = "/pb.GophKeeperService/RetrieveData"
	GophKeeperService_GetInformation_FullMethodName = "/pb.GophKeeperService/GetInformation"
)

Variables

View Source
var File_internal_proto_gophkeeper_proto protoreflect.FileDescriptor
View Source
var GophKeeperService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "pb.GophKeeperService",
	HandlerType: (*GophKeeperServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Register",
			Handler:    _GophKeeperService_Register_Handler,
		},
		{
			MethodName: "Authenticate",
			Handler:    _GophKeeperService_Authenticate_Handler,
		},
		{
			MethodName: "Authorize",
			Handler:    _GophKeeperService_Authorize_Handler,
		},
		{
			MethodName: "AddData",
			Handler:    _GophKeeperService_AddData_Handler,
		},
		{
			MethodName: "RetrieveData",
			Handler:    _GophKeeperService_RetrieveData_Handler,
		},
		{
			MethodName: "GetInformation",
			Handler:    _GophKeeperService_GetInformation_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "internal/proto/gophkeeper.proto",
}

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

Functions

func RegisterGophKeeperServiceServer

func RegisterGophKeeperServiceServer(s grpc.ServiceRegistrar, srv GophKeeperServiceServer)

Types

type AddDataRequest

type AddDataRequest struct {
	Data *MemoryCell `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*AddDataRequest) Descriptor deprecated

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

Deprecated: Use AddDataRequest.ProtoReflect.Descriptor instead.

func (*AddDataRequest) GetData

func (x *AddDataRequest) GetData() *MemoryCell

func (*AddDataRequest) ProtoMessage

func (*AddDataRequest) ProtoMessage()

func (*AddDataRequest) ProtoReflect

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

func (*AddDataRequest) Reset

func (x *AddDataRequest) Reset()

func (*AddDataRequest) String

func (x *AddDataRequest) String() string

type AddDataResponse

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

func (*AddDataResponse) Descriptor deprecated

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

Deprecated: Use AddDataResponse.ProtoReflect.Descriptor instead.

func (*AddDataResponse) GetId

func (x *AddDataResponse) GetId() int64

func (*AddDataResponse) ProtoMessage

func (*AddDataResponse) ProtoMessage()

func (*AddDataResponse) ProtoReflect

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

func (*AddDataResponse) Reset

func (x *AddDataResponse) Reset()

func (*AddDataResponse) String

func (x *AddDataResponse) String() string

type AuthenticationRequest

type AuthenticationRequest 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 (*AuthenticationRequest) Descriptor deprecated

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

Deprecated: Use AuthenticationRequest.ProtoReflect.Descriptor instead.

func (*AuthenticationRequest) GetPassword

func (x *AuthenticationRequest) GetPassword() string

func (*AuthenticationRequest) GetUsername

func (x *AuthenticationRequest) GetUsername() string

func (*AuthenticationRequest) ProtoMessage

func (*AuthenticationRequest) ProtoMessage()

func (*AuthenticationRequest) ProtoReflect

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

func (*AuthenticationRequest) Reset

func (x *AuthenticationRequest) Reset()

func (*AuthenticationRequest) String

func (x *AuthenticationRequest) String() string

type AuthenticationResponse

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

func (*AuthenticationResponse) Descriptor deprecated

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

Deprecated: Use AuthenticationResponse.ProtoReflect.Descriptor instead.

func (*AuthenticationResponse) GetToken

func (x *AuthenticationResponse) GetToken() string

func (*AuthenticationResponse) ProtoMessage

func (*AuthenticationResponse) ProtoMessage()

func (*AuthenticationResponse) ProtoReflect

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

func (*AuthenticationResponse) Reset

func (x *AuthenticationResponse) Reset()

func (*AuthenticationResponse) String

func (x *AuthenticationResponse) String() string

type AuthorizationRequest

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

func (*AuthorizationRequest) Descriptor deprecated

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

Deprecated: Use AuthorizationRequest.ProtoReflect.Descriptor instead.

func (*AuthorizationRequest) GetToken

func (x *AuthorizationRequest) GetToken() string

func (*AuthorizationRequest) ProtoMessage

func (*AuthorizationRequest) ProtoMessage()

func (*AuthorizationRequest) ProtoReflect

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

func (*AuthorizationRequest) Reset

func (x *AuthorizationRequest) Reset()

func (*AuthorizationRequest) String

func (x *AuthorizationRequest) String() string

type AuthorizationResponse

type AuthorizationResponse struct {
	Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	// contains filtered or unexported fields
}

func (*AuthorizationResponse) Descriptor deprecated

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

Deprecated: Use AuthorizationResponse.ProtoReflect.Descriptor instead.

func (*AuthorizationResponse) GetSuccess

func (x *AuthorizationResponse) GetSuccess() bool

func (*AuthorizationResponse) ProtoMessage

func (*AuthorizationResponse) ProtoMessage()

func (*AuthorizationResponse) ProtoReflect

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

func (*AuthorizationResponse) Reset

func (x *AuthorizationResponse) Reset()

func (*AuthorizationResponse) String

func (x *AuthorizationResponse) String() string

type GetInformationRequest

type GetInformationRequest struct {
	// contains filtered or unexported fields
}

func (*GetInformationRequest) Descriptor deprecated

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

Deprecated: Use GetInformationRequest.ProtoReflect.Descriptor instead.

func (*GetInformationRequest) ProtoMessage

func (*GetInformationRequest) ProtoMessage()

func (*GetInformationRequest) ProtoReflect

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

func (*GetInformationRequest) Reset

func (x *GetInformationRequest) Reset()

func (*GetInformationRequest) String

func (x *GetInformationRequest) String() string

type GetInformationResponse

type GetInformationResponse struct {
	Info []*InfoCell `protobuf:"bytes,1,rep,name=info,proto3" json:"info,omitempty"`
	// contains filtered or unexported fields
}

func (*GetInformationResponse) Descriptor deprecated

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

Deprecated: Use GetInformationResponse.ProtoReflect.Descriptor instead.

func (*GetInformationResponse) GetInfo

func (x *GetInformationResponse) GetInfo() []*InfoCell

func (*GetInformationResponse) ProtoMessage

func (*GetInformationResponse) ProtoMessage()

func (*GetInformationResponse) ProtoReflect

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

func (*GetInformationResponse) Reset

func (x *GetInformationResponse) Reset()

func (*GetInformationResponse) String

func (x *GetInformationResponse) String() string

type GophKeeperServiceClient

type GophKeeperServiceClient interface {
	Register(ctx context.Context, in *RegistrationRequest, opts ...grpc.CallOption) (*RegistrationResponse, error)
	Authenticate(ctx context.Context, in *AuthenticationRequest, opts ...grpc.CallOption) (*AuthenticationResponse, error)
	Authorize(ctx context.Context, in *AuthorizationRequest, opts ...grpc.CallOption) (*AuthorizationResponse, error)
	AddData(ctx context.Context, in *AddDataRequest, opts ...grpc.CallOption) (*AddDataResponse, error)
	RetrieveData(ctx context.Context, in *RetrieveDataRequest, opts ...grpc.CallOption) (*RetrieveDataResponse, error)
	GetInformation(ctx context.Context, in *GetInformationRequest, opts ...grpc.CallOption) (*GetInformationResponse, error)
}

GophKeeperServiceClient is the client API for GophKeeperService 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 GophKeeperServiceServer

GophKeeperServiceServer is the server API for GophKeeperService service. All implementations must embed UnimplementedGophKeeperServiceServer for forward compatibility

type InfoCell

type InfoCell struct {
	Id          int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	DataType    string `protobuf:"bytes,2,opt,name=dataType,proto3" json:"dataType,omitempty"`
	DataSize    int32  `protobuf:"varint,3,opt,name=dataSize,proto3" json:"dataSize,omitempty"`
	Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
	OwnerId     int64  `protobuf:"varint,5,opt,name=ownerId,proto3" json:"ownerId,omitempty"`
	// contains filtered or unexported fields
}

func (*InfoCell) Descriptor deprecated

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

Deprecated: Use InfoCell.ProtoReflect.Descriptor instead.

func (*InfoCell) GetDataSize

func (x *InfoCell) GetDataSize() int32

func (*InfoCell) GetDataType

func (x *InfoCell) GetDataType() string

func (*InfoCell) GetDescription

func (x *InfoCell) GetDescription() string

func (*InfoCell) GetId

func (x *InfoCell) GetId() int64

func (*InfoCell) GetOwnerId

func (x *InfoCell) GetOwnerId() int64

func (*InfoCell) ProtoMessage

func (*InfoCell) ProtoMessage()

func (*InfoCell) ProtoReflect

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

func (*InfoCell) Reset

func (x *InfoCell) Reset()

func (*InfoCell) String

func (x *InfoCell) String() string

type MemoryCell

type MemoryCell struct {
	Id            int64             `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Info          *InfoCell         `protobuf:"bytes,2,opt,name=info,proto3" json:"info,omitempty"`
	Encrypted     bool              `protobuf:"varint,3,opt,name=encrypted,proto3" json:"encrypted,omitempty"`
	KeyValuePairs map[string]string `` /* 167-byte string literal not displayed */
	BinaryData    []byte            `protobuf:"bytes,5,opt,name=binaryData,proto3" json:"binaryData,omitempty"`
	FileName      string            `protobuf:"bytes,6,opt,name=fileName,proto3" json:"fileName,omitempty"`
	// contains filtered or unexported fields
}

func (*MemoryCell) Descriptor deprecated

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

Deprecated: Use MemoryCell.ProtoReflect.Descriptor instead.

func (*MemoryCell) GetBinaryData

func (x *MemoryCell) GetBinaryData() []byte

func (*MemoryCell) GetEncrypted

func (x *MemoryCell) GetEncrypted() bool

func (*MemoryCell) GetFileName

func (x *MemoryCell) GetFileName() string

func (*MemoryCell) GetId

func (x *MemoryCell) GetId() int64

func (*MemoryCell) GetInfo

func (x *MemoryCell) GetInfo() *InfoCell

func (*MemoryCell) GetKeyValuePairs

func (x *MemoryCell) GetKeyValuePairs() map[string]string

func (*MemoryCell) ProtoMessage

func (*MemoryCell) ProtoMessage()

func (*MemoryCell) ProtoReflect

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

func (*MemoryCell) Reset

func (x *MemoryCell) Reset()

func (*MemoryCell) String

func (x *MemoryCell) String() string

type RegistrationRequest

type RegistrationRequest 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 (*RegistrationRequest) Descriptor deprecated

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

Deprecated: Use RegistrationRequest.ProtoReflect.Descriptor instead.

func (*RegistrationRequest) GetPassword

func (x *RegistrationRequest) GetPassword() string

func (*RegistrationRequest) GetUsername

func (x *RegistrationRequest) GetUsername() string

func (*RegistrationRequest) ProtoMessage

func (*RegistrationRequest) ProtoMessage()

func (*RegistrationRequest) ProtoReflect

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

func (*RegistrationRequest) Reset

func (x *RegistrationRequest) Reset()

func (*RegistrationRequest) String

func (x *RegistrationRequest) String() string

type RegistrationResponse

type RegistrationResponse struct {
	Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	// contains filtered or unexported fields
}

func (*RegistrationResponse) Descriptor deprecated

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

Deprecated: Use RegistrationResponse.ProtoReflect.Descriptor instead.

func (*RegistrationResponse) GetSuccess

func (x *RegistrationResponse) GetSuccess() bool

func (*RegistrationResponse) ProtoMessage

func (*RegistrationResponse) ProtoMessage()

func (*RegistrationResponse) ProtoReflect

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

func (*RegistrationResponse) Reset

func (x *RegistrationResponse) Reset()

func (*RegistrationResponse) String

func (x *RegistrationResponse) String() string

type RetrieveDataRequest

type RetrieveDataRequest struct {
	Ids []int64 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids,omitempty"`
	// contains filtered or unexported fields
}

func (*RetrieveDataRequest) Descriptor deprecated

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

Deprecated: Use RetrieveDataRequest.ProtoReflect.Descriptor instead.

func (*RetrieveDataRequest) GetIds

func (x *RetrieveDataRequest) GetIds() []int64

func (*RetrieveDataRequest) ProtoMessage

func (*RetrieveDataRequest) ProtoMessage()

func (*RetrieveDataRequest) ProtoReflect

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

func (*RetrieveDataRequest) Reset

func (x *RetrieveDataRequest) Reset()

func (*RetrieveDataRequest) String

func (x *RetrieveDataRequest) String() string

type RetrieveDataResponse

type RetrieveDataResponse struct {
	Data []*MemoryCell `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*RetrieveDataResponse) Descriptor deprecated

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

Deprecated: Use RetrieveDataResponse.ProtoReflect.Descriptor instead.

func (*RetrieveDataResponse) GetData

func (x *RetrieveDataResponse) GetData() []*MemoryCell

func (*RetrieveDataResponse) ProtoMessage

func (*RetrieveDataResponse) ProtoMessage()

func (*RetrieveDataResponse) ProtoReflect

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

func (*RetrieveDataResponse) Reset

func (x *RetrieveDataResponse) Reset()

func (*RetrieveDataResponse) String

func (x *RetrieveDataResponse) String() string

type UnimplementedGophKeeperServiceServer

type UnimplementedGophKeeperServiceServer struct {
}

UnimplementedGophKeeperServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedGophKeeperServiceServer) AddData

func (UnimplementedGophKeeperServiceServer) Authenticate

func (UnimplementedGophKeeperServiceServer) Authorize

func (UnimplementedGophKeeperServiceServer) GetInformation

func (UnimplementedGophKeeperServiceServer) Register

func (UnimplementedGophKeeperServiceServer) RetrieveData

type UnsafeGophKeeperServiceServer

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

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

Jump to

Keyboard shortcuts

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