Documentation ¶
Index ¶
- func RegisterDecryptorServer(s *grpc.Server, srv DecryptorServer)
- func RegisterEncryptorServer(s *grpc.Server, srv EncryptorServer)
- type DecryptRequest
- func (*DecryptRequest) Descriptor() ([]byte, []int)
- func (m *DecryptRequest) GetDestination() string
- func (m *DecryptRequest) GetKey() string
- func (m *DecryptRequest) GetNonce() string
- func (m *DecryptRequest) GetSource() string
- func (*DecryptRequest) ProtoMessage()
- func (m *DecryptRequest) Reset()
- func (m *DecryptRequest) String() string
- func (m *DecryptRequest) XXX_DiscardUnknown()
- func (m *DecryptRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DecryptRequest) XXX_Merge(src proto.Message)
- func (m *DecryptRequest) XXX_Size() int
- func (m *DecryptRequest) XXX_Unmarshal(b []byte) error
- type DecryptResponse
- func (*DecryptResponse) Descriptor() ([]byte, []int)
- func (m *DecryptResponse) GetOutputHash() *Hash
- func (*DecryptResponse) ProtoMessage()
- func (m *DecryptResponse) Reset()
- func (m *DecryptResponse) String() string
- func (m *DecryptResponse) XXX_DiscardUnknown()
- func (m *DecryptResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DecryptResponse) XXX_Merge(src proto.Message)
- func (m *DecryptResponse) XXX_Size() int
- func (m *DecryptResponse) XXX_Unmarshal(b []byte) error
- type DecryptorClient
- type DecryptorServer
- type EncryptRequest
- func (*EncryptRequest) Descriptor() ([]byte, []int)
- func (m *EncryptRequest) GetDestination() string
- func (m *EncryptRequest) GetKey() string
- func (m *EncryptRequest) GetSource() string
- func (*EncryptRequest) ProtoMessage()
- func (m *EncryptRequest) Reset()
- func (m *EncryptRequest) String() string
- func (m *EncryptRequest) XXX_DiscardUnknown()
- func (m *EncryptRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EncryptRequest) XXX_Merge(src proto.Message)
- func (m *EncryptRequest) XXX_Size() int
- func (m *EncryptRequest) XXX_Unmarshal(b []byte) error
- type EncryptResponse
- func (*EncryptResponse) Descriptor() ([]byte, []int)
- func (m *EncryptResponse) GetOutputHash() *Hash
- func (m *EncryptResponse) GetRandomKey() string
- func (m *EncryptResponse) GetRandomNonce() string
- func (*EncryptResponse) ProtoMessage()
- func (m *EncryptResponse) Reset()
- func (m *EncryptResponse) String() string
- func (m *EncryptResponse) XXX_DiscardUnknown()
- func (m *EncryptResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EncryptResponse) XXX_Merge(src proto.Message)
- func (m *EncryptResponse) XXX_Size() int
- func (m *EncryptResponse) XXX_Unmarshal(b []byte) error
- type EncryptorClient
- type EncryptorServer
- type Hash
- func (*Hash) Descriptor() ([]byte, []int)
- func (m *Hash) GetMd5() string
- func (m *Hash) GetSha256() string
- func (*Hash) ProtoMessage()
- func (m *Hash) Reset()
- func (m *Hash) String() string
- func (m *Hash) XXX_DiscardUnknown()
- func (m *Hash) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Hash) XXX_Merge(src proto.Message)
- func (m *Hash) XXX_Size() int
- func (m *Hash) XXX_Unmarshal(b []byte) error
- type UnimplementedDecryptorServer
- type UnimplementedEncryptorServer
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) 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_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) 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_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) 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_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) 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_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) XXX_Marshal ¶
XXX_Marshal ...
type UnimplementedDecryptorServer ¶
type UnimplementedDecryptorServer struct { }
UnimplementedDecryptorServer can be embedded to have forward compatible implementations.
func (*UnimplementedDecryptorServer) Decrypt ¶
func (*UnimplementedDecryptorServer) Decrypt(ctx context.Context, req *DecryptRequest) (*DecryptResponse, error)
Decrypt ...
type UnimplementedEncryptorServer ¶
type UnimplementedEncryptorServer struct { }
UnimplementedEncryptorServer can be embedded to have forward compatible implementations.
func (*UnimplementedEncryptorServer) Encrypt ¶
func (*UnimplementedEncryptorServer) Encrypt(ctx context.Context, req *EncryptRequest) (*EncryptResponse, error)
Encrypt ...