Documentation ¶
Index ¶
- Variables
- type CreateUserRequest
- type CreateUserResponse
- func (*CreateUserResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateUserResponse) GetMessage() string
- func (*CreateUserResponse) ProtoMessage()
- func (x *CreateUserResponse) ProtoReflect() protoreflect.Message
- func (x *CreateUserResponse) Reset()
- func (x *CreateUserResponse) String() string
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) GetEmail() string
- func (x *User) GetEncryptedPrivateKey() []byte
- func (x *User) GetHashedKeyEncryptionKey() []byte
- func (x *User) GetId() []byte
- func (x *User) GetNonce() []byte
- func (x *User) GetPublicKey() []byte
- func (x *User) GetSignature() []byte
- func (x *User) GetUsername() string
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_cycap_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type CreateUserRequest ¶
type CreateUserRequest struct { User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` // contains filtered or unexported fields }
func (*CreateUserRequest) Descriptor
deprecated
func (*CreateUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateUserRequest.ProtoReflect.Descriptor instead.
func (*CreateUserRequest) GetUser ¶
func (x *CreateUserRequest) GetUser() *User
func (*CreateUserRequest) ProtoMessage ¶
func (*CreateUserRequest) ProtoMessage()
func (*CreateUserRequest) ProtoReflect ¶
func (x *CreateUserRequest) ProtoReflect() protoreflect.Message
func (*CreateUserRequest) Reset ¶
func (x *CreateUserRequest) Reset()
func (*CreateUserRequest) String ¶
func (x *CreateUserRequest) String() string
type CreateUserResponse ¶
type CreateUserResponse struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*CreateUserResponse) Descriptor
deprecated
func (*CreateUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateUserResponse.ProtoReflect.Descriptor instead.
func (*CreateUserResponse) GetMessage ¶
func (x *CreateUserResponse) GetMessage() string
func (*CreateUserResponse) ProtoMessage ¶
func (*CreateUserResponse) ProtoMessage()
func (*CreateUserResponse) ProtoReflect ¶
func (x *CreateUserResponse) ProtoReflect() protoreflect.Message
func (*CreateUserResponse) Reset ¶
func (x *CreateUserResponse) Reset()
func (*CreateUserResponse) String ¶
func (x *CreateUserResponse) String() string
type User ¶
type User struct { // 8 bytes: Globally unique number for identification. This field may never be modified. Id []byte `protobuf:"bytes,1,opt,name=id,proto3,oneof" json:"id,omitempty"` // Globally unique username easy identification. This field may be modified. Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` // Globally unique email address for easy identification. This field may be modified. Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` // 32 bytes: BLAKE2b-256 checksum of key_encryption_key (never transmitted) HashedKeyEncryptionKey []byte `` /* 137-byte string literal not displayed */ // 32 bytes: standard size for X25519 scalar PublicKey []byte `protobuf:"bytes,5,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` // 48 bytes: 32 bytes plus 16 for chacha20poly1305 overhead EncryptedPrivateKey []byte `protobuf:"bytes,6,opt,name=encrypted_private_key,json=encryptedPrivateKey,proto3" json:"encrypted_private_key,omitempty"` // 12 bytes: rightmost 2 bytes reserved for keyId Nonce []byte `protobuf:"bytes,7,opt,name=nonce,proto3" json:"nonce,omitempty"` // 16 bytes: X25519 signature for user data Signature []byte `protobuf:"bytes,8,opt,name=signature,proto3" json:"signature,omitempty"` // contains filtered or unexported fields }
func (*User) Descriptor
deprecated
func (*User) GetEncryptedPrivateKey ¶
func (*User) GetHashedKeyEncryptionKey ¶
func (*User) GetPublicKey ¶
func (*User) GetSignature ¶
func (*User) GetUsername ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.