model

package
v0.0.0-...-17f76c2 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterDecryptorServer

func RegisterDecryptorServer(s *grpc.Server, srv DecryptorServer)

RegisterDecryptorServer ...

func RegisterEncryptorServer

func RegisterEncryptorServer(s *grpc.Server, srv EncryptorServer)

RegisterEncryptorServer ...

Types

type DecryptRequest

type DecryptRequest struct {
	Source               string   `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"`
	Destination          string   `protobuf:"bytes,2,opt,name=destination,proto3" json:"destination,omitempty"`
	Nonce                string   `protobuf:"bytes,3,opt,name=nonce,proto3" json:"nonce,omitempty"`
	Key                  string   `protobuf:"bytes,4,opt,name=key,proto3" json:"key,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

DecryptRequest ...

func (*DecryptRequest) Descriptor

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

Descriptor ...

func (*DecryptRequest) GetDestination

func (m *DecryptRequest) GetDestination() string

GetDestination ...

func (*DecryptRequest) GetKey

func (m *DecryptRequest) GetKey() string

GetKey ...

func (*DecryptRequest) GetNonce

func (m *DecryptRequest) GetNonce() string

GetNonce ...

func (*DecryptRequest) GetSource

func (m *DecryptRequest) GetSource() string

GetSource ...

func (*DecryptRequest) ProtoMessage

func (*DecryptRequest) ProtoMessage()

ProtoMessage ...

func (*DecryptRequest) Reset

func (m *DecryptRequest) Reset()

Reset ...

func (*DecryptRequest) String

func (m *DecryptRequest) String() string

String ...

func (*DecryptRequest) XXX_DiscardUnknown

func (m *DecryptRequest) XXX_DiscardUnknown()

XXX_DiscardUnknown ...

func (*DecryptRequest) XXX_Marshal

func (m *DecryptRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

XXX_Marshal ...

func (*DecryptRequest) XXX_Merge

func (m *DecryptRequest) XXX_Merge(src proto.Message)

XXX_Merge ...

func (*DecryptRequest) XXX_Size

func (m *DecryptRequest) XXX_Size() int

XXX_Size ...

func (*DecryptRequest) XXX_Unmarshal

func (m *DecryptRequest) XXX_Unmarshal(b []byte) error

XXX_Unmarshal ...

type DecryptResponse

type DecryptResponse struct {
	OutputHash           *Hash    `protobuf:"bytes,1,opt,name=output_hash,json=outputHash,proto3" json:"output_hash,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

DecryptResponse ...

func (*DecryptResponse) Descriptor

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

Descriptor ...

func (*DecryptResponse) GetOutputHash

func (m *DecryptResponse) GetOutputHash() *Hash

GetOutputHash ...

func (*DecryptResponse) ProtoMessage

func (*DecryptResponse) ProtoMessage()

ProtoMessage ...

func (*DecryptResponse) Reset

func (m *DecryptResponse) Reset()

Reset ...

func (*DecryptResponse) String

func (m *DecryptResponse) String() string

String ...

func (*DecryptResponse) XXX_DiscardUnknown

func (m *DecryptResponse) XXX_DiscardUnknown()

XXX_DiscardUnknown ...

func (*DecryptResponse) XXX_Marshal

func (m *DecryptResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

XXX_Marshal ...

func (*DecryptResponse) XXX_Merge

func (m *DecryptResponse) XXX_Merge(src proto.Message)

XXX_Merge ...

func (*DecryptResponse) XXX_Size

func (m *DecryptResponse) XXX_Size() int

XXX_Size ...

func (*DecryptResponse) XXX_Unmarshal

func (m *DecryptResponse) XXX_Unmarshal(b []byte) error

XXX_Unmarshal ...

type DecryptorClient

type DecryptorClient interface {
	Decrypt(ctx context.Context, in *DecryptRequest, opts ...grpc.CallOption) (*DecryptResponse, error)
}

DecryptorClient is the client API for Decryptor service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewDecryptorClient

func NewDecryptorClient(cc *grpc.ClientConn) DecryptorClient

NewDecryptorClient ...

type DecryptorServer

type DecryptorServer interface {
	Decrypt(context.Context, *DecryptRequest) (*DecryptResponse, error)
}

DecryptorServer is the server API for Decryptor service.

type EncryptRequest

type EncryptRequest struct {
	Source               string   `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"`
	Destination          string   `protobuf:"bytes,2,opt,name=destination,proto3" json:"destination,omitempty"`
	Key                  string   `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

EncryptRequest ...

func (*EncryptRequest) Descriptor

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

Descriptor ...

func (*EncryptRequest) GetDestination

func (m *EncryptRequest) GetDestination() string

GetDestination ...

func (*EncryptRequest) GetKey

func (m *EncryptRequest) GetKey() string

GetKey ...

func (*EncryptRequest) GetSource

func (m *EncryptRequest) GetSource() string

GetSource ...

func (*EncryptRequest) ProtoMessage

func (*EncryptRequest) ProtoMessage()

ProtoMessage ...

func (*EncryptRequest) Reset

func (m *EncryptRequest) Reset()

Reset ...

func (*EncryptRequest) String

func (m *EncryptRequest) String() string

String ...

func (*EncryptRequest) XXX_DiscardUnknown

func (m *EncryptRequest) XXX_DiscardUnknown()

XXX_DiscardUnknown ...

func (*EncryptRequest) XXX_Marshal

func (m *EncryptRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

XXX_Marshal ...

func (*EncryptRequest) XXX_Merge

func (m *EncryptRequest) XXX_Merge(src proto.Message)

XXX_Merge ...

func (*EncryptRequest) XXX_Size

func (m *EncryptRequest) XXX_Size() int

XXX_Size ...

func (*EncryptRequest) XXX_Unmarshal

func (m *EncryptRequest) XXX_Unmarshal(b []byte) error

XXX_Unmarshal ...

type EncryptResponse

type EncryptResponse struct {
	OutputHash           *Hash    `protobuf:"bytes,1,opt,name=output_hash,json=outputHash,proto3" json:"output_hash,omitempty"`
	RandomNonce          string   `protobuf:"bytes,2,opt,name=random_nonce,json=randomNonce,proto3" json:"random_nonce,omitempty"`
	RandomKey            string   `protobuf:"bytes,3,opt,name=random_key,json=randomKey,proto3" json:"random_key,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

EncryptResponse ...

func (*EncryptResponse) Descriptor

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

Descriptor ...

func (*EncryptResponse) GetOutputHash

func (m *EncryptResponse) GetOutputHash() *Hash

GetOutputHash ...

func (*EncryptResponse) GetRandomKey

func (m *EncryptResponse) GetRandomKey() string

GetRandomKey ...

func (*EncryptResponse) GetRandomNonce

func (m *EncryptResponse) GetRandomNonce() string

GetRandomNonce ...

func (*EncryptResponse) ProtoMessage

func (*EncryptResponse) ProtoMessage()

ProtoMessage ...

func (*EncryptResponse) Reset

func (m *EncryptResponse) Reset()

Reset ...

func (*EncryptResponse) String

func (m *EncryptResponse) String() string

String ...

func (*EncryptResponse) XXX_DiscardUnknown

func (m *EncryptResponse) XXX_DiscardUnknown()

XXX_DiscardUnknown ...

func (*EncryptResponse) XXX_Marshal

func (m *EncryptResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

XXX_Marshal ...

func (*EncryptResponse) XXX_Merge

func (m *EncryptResponse) XXX_Merge(src proto.Message)

XXX_Merge ...

func (*EncryptResponse) XXX_Size

func (m *EncryptResponse) XXX_Size() int

XXX_Size ...

func (*EncryptResponse) XXX_Unmarshal

func (m *EncryptResponse) XXX_Unmarshal(b []byte) error

XXX_Unmarshal ...

type EncryptorClient

type EncryptorClient interface {
	Encrypt(ctx context.Context, in *EncryptRequest, opts ...grpc.CallOption) (*EncryptResponse, error)
}

EncryptorClient is the client API for Encryptor service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewEncryptorClient

func NewEncryptorClient(cc *grpc.ClientConn) EncryptorClient

NewEncryptorClient ...

type EncryptorServer

type EncryptorServer interface {
	Encrypt(context.Context, *EncryptRequest) (*EncryptResponse, error)
}

EncryptorServer is the server API for Encryptor service.

type Hash

type Hash struct {
	Md5                  string   `protobuf:"bytes,1,opt,name=md5,proto3" json:"md5,omitempty"`
	Sha256               string   `protobuf:"bytes,2,opt,name=sha256,proto3" json:"sha256,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Hash ...

func (*Hash) Descriptor

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

Descriptor ...

func (*Hash) GetMd5

func (m *Hash) GetMd5() string

GetMd5 ...

func (*Hash) GetSha256

func (m *Hash) GetSha256() string

GetSha256 ...

func (*Hash) ProtoMessage

func (*Hash) ProtoMessage()

ProtoMessage ...

func (*Hash) Reset

func (m *Hash) Reset()

Reset ...

func (*Hash) String

func (m *Hash) String() string

String ...

func (*Hash) XXX_DiscardUnknown

func (m *Hash) XXX_DiscardUnknown()

XXX_DiscardUnknown ...

func (*Hash) XXX_Marshal

func (m *Hash) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

XXX_Marshal ...

func (*Hash) XXX_Merge

func (m *Hash) XXX_Merge(src proto.Message)

XXX_Merge ...

func (*Hash) XXX_Size

func (m *Hash) XXX_Size() int

XXX_Size ...

func (*Hash) XXX_Unmarshal

func (m *Hash) XXX_Unmarshal(b []byte) error

XXX_Unmarshal ...

type UnimplementedDecryptorServer

type UnimplementedDecryptorServer struct {
}

UnimplementedDecryptorServer can be embedded to have forward compatible implementations.

func (*UnimplementedDecryptorServer) Decrypt

Decrypt ...

type UnimplementedEncryptorServer

type UnimplementedEncryptorServer struct {
}

UnimplementedEncryptorServer can be embedded to have forward compatible implementations.

func (*UnimplementedEncryptorServer) Encrypt

Encrypt ...

Jump to

Keyboard shortcuts

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