pb

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: May 25, 2021 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ResultCode_name = map[int32]string{
		0:   "RC_OK",
		1:   "RC_INVALID_REQUEST",
		2:   "RC_INVALID_KEY",
		3:   "RC_RECORD_EXISTS",
		4:   "RC_RECORD_NOT_FOUND",
		5:   "RC_INSUFFICIENT_POW",
		6:   "RC_UNAUTHORIZED",
		100: "RC_INTERNAL_ERROR",
	}
	ResultCode_value = map[string]int32{
		"RC_OK":               0,
		"RC_INVALID_REQUEST":  1,
		"RC_INVALID_KEY":      2,
		"RC_RECORD_EXISTS":    3,
		"RC_RECORD_NOT_FOUND": 4,
		"RC_INSUFFICIENT_POW": 5,
		"RC_UNAUTHORIZED":     6,
		"RC_INTERNAL_ERROR":   100,
	}
)

Enum value maps for ResultCode.

View Source
var (
	Protocol_name = map[int32]string{
		0: "PL_UNKNOWN",
		1: "PL_DMS",
	}
	Protocol_value = map[string]int32{
		"PL_UNKNOWN": 0,
		"PL_DMS":     1,
	}
)

Enum value maps for Protocol.

View Source
var (
	KeyRelationship_name = map[int32]string{
		0: "KR_NONE",
		1: "KR_PARENT",
	}
	KeyRelationship_value = map[string]int32{
		"KR_NONE":   0,
		"KR_PARENT": 1,
	}
)

Enum value maps for KeyRelationship.

View Source
var File_ubikom_internal_proto protoreflect.FileDescriptor
View Source
var File_ubikom_proto protoreflect.FileDescriptor

Functions

func RegisterDMSDumpServiceServer

func RegisterDMSDumpServiceServer(s *grpc.Server, srv DMSDumpServiceServer)

func RegisterIdentityServiceServer

func RegisterIdentityServiceServer(s *grpc.Server, srv IdentityServiceServer)

func RegisterLookupServiceServer

func RegisterLookupServiceServer(s *grpc.Server, srv LookupServiceServer)

func RegisterProxyServiceServer

func RegisterProxyServiceServer(s *grpc.Server, srv ProxyServiceServer)

Types

type AddressRegistrationRequest

type AddressRegistrationRequest struct {
	Key      []byte   `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Name     string   `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Protocol Protocol `protobuf:"varint,3,opt,name=protocol,proto3,enum=Ubikom.Protocol" json:"protocol,omitempty"`
	Address  string   `protobuf:"bytes,4,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

func (*AddressRegistrationRequest) Descriptor deprecated

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

Deprecated: Use AddressRegistrationRequest.ProtoReflect.Descriptor instead.

func (*AddressRegistrationRequest) GetAddress

func (x *AddressRegistrationRequest) GetAddress() string

func (*AddressRegistrationRequest) GetKey

func (x *AddressRegistrationRequest) GetKey() []byte

func (*AddressRegistrationRequest) GetName

func (x *AddressRegistrationRequest) GetName() string

func (*AddressRegistrationRequest) GetProtocol

func (x *AddressRegistrationRequest) GetProtocol() Protocol

func (*AddressRegistrationRequest) ProtoMessage

func (*AddressRegistrationRequest) ProtoMessage()

func (*AddressRegistrationRequest) ProtoReflect

func (*AddressRegistrationRequest) Reset

func (x *AddressRegistrationRequest) Reset()

func (*AddressRegistrationRequest) String

func (x *AddressRegistrationRequest) String() string

type ContentWithPOW

type ContentWithPOW struct {
	Content []byte `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
	Pow     []byte `protobuf:"bytes,2,opt,name=pow,proto3" json:"pow,omitempty"`
	// contains filtered or unexported fields
}

func (*ContentWithPOW) Descriptor deprecated

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

Deprecated: Use ContentWithPOW.ProtoReflect.Descriptor instead.

func (*ContentWithPOW) GetContent

func (x *ContentWithPOW) GetContent() []byte

func (*ContentWithPOW) GetPow

func (x *ContentWithPOW) GetPow() []byte

func (*ContentWithPOW) ProtoMessage

func (*ContentWithPOW) ProtoMessage()

func (*ContentWithPOW) ProtoReflect

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

func (*ContentWithPOW) Reset

func (x *ContentWithPOW) Reset()

func (*ContentWithPOW) String

func (x *ContentWithPOW) String() string

type DMSDumpServiceClient

type DMSDumpServiceClient interface {
	Send(ctx context.Context, in *DMSMessage, opts ...grpc.CallOption) (*Result, error)
	Receive(ctx context.Context, in *Signed, opts ...grpc.CallOption) (*ResultWithContent, error)
}

DMSDumpServiceClient is the client API for DMSDumpService 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 DMSDumpServiceServer

type DMSDumpServiceServer interface {
	Send(context.Context, *DMSMessage) (*Result, error)
	Receive(context.Context, *Signed) (*ResultWithContent, error)
	// contains filtered or unexported methods
}

DMSDumpServiceServer is the server API for DMSDumpService service. All implementations must embed UnimplementedDMSDumpServiceServer for forward compatibility

type DMSMessage

type DMSMessage struct {

	// Sender's address.
	Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	// Receiver's address.
	Receiver  string     `protobuf:"bytes,2,opt,name=receiver,proto3" json:"receiver,omitempty"`
	Content   []byte     `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"`
	Signature *Signature `protobuf:"bytes,4,opt,name=signature,proto3" json:"signature,omitempty"`
	// contains filtered or unexported fields
}

func (*DMSMessage) Descriptor deprecated

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

Deprecated: Use DMSMessage.ProtoReflect.Descriptor instead.

func (*DMSMessage) GetContent

func (x *DMSMessage) GetContent() []byte

func (*DMSMessage) GetReceiver

func (x *DMSMessage) GetReceiver() string

func (*DMSMessage) GetSender

func (x *DMSMessage) GetSender() string

func (*DMSMessage) GetSignature

func (x *DMSMessage) GetSignature() *Signature

func (*DMSMessage) ProtoMessage

func (*DMSMessage) ProtoMessage()

func (*DMSMessage) ProtoReflect

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

func (*DMSMessage) Reset

func (x *DMSMessage) Reset()

func (*DMSMessage) String

func (x *DMSMessage) String() string

type IdentityServiceClient

type IdentityServiceClient interface {
	// Register public key. Each public key can be registered only once.
	// The key must be registered before it's associated with the name.
	// Content is public key.
	RegisterKey(ctx context.Context, in *SignedWithPow, opts ...grpc.CallOption) (*Result, error)
	RegisterKeyRelationship(ctx context.Context, in *SignedWithPow, opts ...grpc.CallOption) (*Result, error)
	// Once a key is disabled, it is dead forever. This happens
	// if a key is compromised, or the owner has decided to kill
	// it for another reason. Use with caution.
	DisableKey(ctx context.Context, in *SignedWithPow, opts ...grpc.CallOption) (*Result, error)
	// Links name and the public key.
	// Content is NameRegistrationRequest.
	RegisterName(ctx context.Context, in *SignedWithPow, opts ...grpc.CallOption) (*Result, error)
	// Associate name and protocol with an address.
	// Content is AddressRegistrationRequest.
	RegisterAddress(ctx context.Context, in *SignedWithPow, opts ...grpc.CallOption) (*Result, error)
}

IdentityServiceClient is the client API for IdentityService 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 IdentityServiceServer

type IdentityServiceServer interface {
	// Register public key. Each public key can be registered only once.
	// The key must be registered before it's associated with the name.
	// Content is public key.
	RegisterKey(context.Context, *SignedWithPow) (*Result, error)
	RegisterKeyRelationship(context.Context, *SignedWithPow) (*Result, error)
	// Once a key is disabled, it is dead forever. This happens
	// if a key is compromised, or the owner has decided to kill
	// it for another reason. Use with caution.
	DisableKey(context.Context, *SignedWithPow) (*Result, error)
	// Links name and the public key.
	// Content is NameRegistrationRequest.
	RegisterName(context.Context, *SignedWithPow) (*Result, error)
	// Associate name and protocol with an address.
	// Content is AddressRegistrationRequest.
	RegisterAddress(context.Context, *SignedWithPow) (*Result, error)
	// contains filtered or unexported methods
}

IdentityServiceServer is the server API for IdentityService service. All implementations must embed UnimplementedIdentityServiceServer for forward compatibility

type KeyDisableRequest

type KeyDisableRequest struct {
	Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// contains filtered or unexported fields
}

func (*KeyDisableRequest) Descriptor deprecated

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

Deprecated: Use KeyDisableRequest.ProtoReflect.Descriptor instead.

func (*KeyDisableRequest) GetKey

func (x *KeyDisableRequest) GetKey() []byte

func (*KeyDisableRequest) ProtoMessage

func (*KeyDisableRequest) ProtoMessage()

func (*KeyDisableRequest) ProtoReflect

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

func (*KeyDisableRequest) Reset

func (x *KeyDisableRequest) Reset()

func (*KeyDisableRequest) String

func (x *KeyDisableRequest) String() string

type KeyRecord

type KeyRecord struct {

	// Timestamp when the key was registered.
	RegistrationTimestamp int64 `protobuf:"varint,1,opt,name=registration_timestamp,json=registrationTimestamp,proto3" json:"registration_timestamp,omitempty"`
	// Controls if the key is disabled. Once a key is disabled, it is dead forever.
	Disabled          bool   `protobuf:"varint,2,opt,name=disabled,proto3" json:"disabled,omitempty"`
	DisabledTimestamp int64  `protobuf:"varint,3,opt,name=disabled_timestamp,json=disabledTimestamp,proto3" json:"disabled_timestamp,omitempty"`
	DisabledBy        []byte `protobuf:"bytes,4,opt,name=disabled_by,json=disabledBy,proto3" json:"disabled_by,omitempty"`
	// Parent key (it can do everything this key can do).
	ParentKey [][]byte `protobuf:"bytes,5,rep,name=parent_key,json=parentKey,proto3" json:"parent_key,omitempty"`
	// contains filtered or unexported fields
}

func (*KeyRecord) Descriptor deprecated

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

Deprecated: Use KeyRecord.ProtoReflect.Descriptor instead.

func (*KeyRecord) GetDisabled

func (x *KeyRecord) GetDisabled() bool

func (*KeyRecord) GetDisabledBy

func (x *KeyRecord) GetDisabledBy() []byte

func (*KeyRecord) GetDisabledTimestamp

func (x *KeyRecord) GetDisabledTimestamp() int64

func (*KeyRecord) GetParentKey

func (x *KeyRecord) GetParentKey() [][]byte

func (*KeyRecord) GetRegistrationTimestamp

func (x *KeyRecord) GetRegistrationTimestamp() int64

func (*KeyRecord) ProtoMessage

func (*KeyRecord) ProtoMessage()

func (*KeyRecord) ProtoReflect

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

func (*KeyRecord) Reset

func (x *KeyRecord) Reset()

func (*KeyRecord) String

func (x *KeyRecord) String() string

type KeyRegistrationRequest

type KeyRegistrationRequest struct {
	Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// contains filtered or unexported fields
}

func (*KeyRegistrationRequest) Descriptor deprecated

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

Deprecated: Use KeyRegistrationRequest.ProtoReflect.Descriptor instead.

func (*KeyRegistrationRequest) GetKey

func (x *KeyRegistrationRequest) GetKey() []byte

func (*KeyRegistrationRequest) ProtoMessage

func (*KeyRegistrationRequest) ProtoMessage()

func (*KeyRegistrationRequest) ProtoReflect

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

func (*KeyRegistrationRequest) Reset

func (x *KeyRegistrationRequest) Reset()

func (*KeyRegistrationRequest) String

func (x *KeyRegistrationRequest) String() string

type KeyRelationship

type KeyRelationship int32
const (
	KeyRelationship_KR_NONE   KeyRelationship = 0
	KeyRelationship_KR_PARENT KeyRelationship = 1
)

func (KeyRelationship) Descriptor

func (KeyRelationship) Enum

func (x KeyRelationship) Enum() *KeyRelationship

func (KeyRelationship) EnumDescriptor deprecated

func (KeyRelationship) EnumDescriptor() ([]byte, []int)

Deprecated: Use KeyRelationship.Descriptor instead.

func (KeyRelationship) Number

func (KeyRelationship) String

func (x KeyRelationship) String() string

func (KeyRelationship) Type

type KeyRelationshipRegistrationRequest

type KeyRelationshipRegistrationRequest struct {
	TargetKey    []byte          `protobuf:"bytes,1,opt,name=target_key,json=targetKey,proto3" json:"target_key,omitempty"`
	Relationship KeyRelationship `protobuf:"varint,2,opt,name=relationship,proto3,enum=Ubikom.KeyRelationship" json:"relationship,omitempty"`
	// contains filtered or unexported fields
}

func (*KeyRelationshipRegistrationRequest) Descriptor deprecated

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

Deprecated: Use KeyRelationshipRegistrationRequest.ProtoReflect.Descriptor instead.

func (*KeyRelationshipRegistrationRequest) GetRelationship

func (*KeyRelationshipRegistrationRequest) GetTargetKey

func (x *KeyRelationshipRegistrationRequest) GetTargetKey() []byte

func (*KeyRelationshipRegistrationRequest) ProtoMessage

func (*KeyRelationshipRegistrationRequest) ProtoMessage()

func (*KeyRelationshipRegistrationRequest) ProtoReflect

func (*KeyRelationshipRegistrationRequest) Reset

func (*KeyRelationshipRegistrationRequest) String

type LookupAddressRequest

type LookupAddressRequest struct {
	Name     string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Protocol Protocol `protobuf:"varint,2,opt,name=protocol,proto3,enum=Ubikom.Protocol" json:"protocol,omitempty"`
	// contains filtered or unexported fields
}

func (*LookupAddressRequest) Descriptor deprecated

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

Deprecated: Use LookupAddressRequest.ProtoReflect.Descriptor instead.

func (*LookupAddressRequest) GetName

func (x *LookupAddressRequest) GetName() string

func (*LookupAddressRequest) GetProtocol

func (x *LookupAddressRequest) GetProtocol() Protocol

func (*LookupAddressRequest) ProtoMessage

func (*LookupAddressRequest) ProtoMessage()

func (*LookupAddressRequest) ProtoReflect

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

func (*LookupAddressRequest) Reset

func (x *LookupAddressRequest) Reset()

func (*LookupAddressRequest) String

func (x *LookupAddressRequest) String() string

type LookupAddressResponse

type LookupAddressResponse struct {
	Result  *Result `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
	Message string  `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Address string  `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

func (*LookupAddressResponse) Descriptor deprecated

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

Deprecated: Use LookupAddressResponse.ProtoReflect.Descriptor instead.

func (*LookupAddressResponse) GetAddress

func (x *LookupAddressResponse) GetAddress() string

func (*LookupAddressResponse) GetMessage

func (x *LookupAddressResponse) GetMessage() string

func (*LookupAddressResponse) GetResult

func (x *LookupAddressResponse) GetResult() *Result

func (*LookupAddressResponse) ProtoMessage

func (*LookupAddressResponse) ProtoMessage()

func (*LookupAddressResponse) ProtoReflect

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

func (*LookupAddressResponse) Reset

func (x *LookupAddressResponse) Reset()

func (*LookupAddressResponse) String

func (x *LookupAddressResponse) String() string

type LookupKeyRequest

type LookupKeyRequest struct {
	Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// contains filtered or unexported fields
}

func (*LookupKeyRequest) Descriptor deprecated

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

Deprecated: Use LookupKeyRequest.ProtoReflect.Descriptor instead.

func (*LookupKeyRequest) GetKey

func (x *LookupKeyRequest) GetKey() []byte

func (*LookupKeyRequest) ProtoMessage

func (*LookupKeyRequest) ProtoMessage()

func (*LookupKeyRequest) ProtoReflect

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

func (*LookupKeyRequest) Reset

func (x *LookupKeyRequest) Reset()

func (*LookupKeyRequest) String

func (x *LookupKeyRequest) String() string

type LookupKeyResponse

type LookupKeyResponse struct {
	Result                *Result  `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
	RegistrationTimestamp int64    `protobuf:"varint,2,opt,name=registration_timestamp,json=registrationTimestamp,proto3" json:"registration_timestamp,omitempty"`
	Disabled              bool     `protobuf:"varint,3,opt,name=disabled,proto3" json:"disabled,omitempty"`
	DisabledTimestamp     int64    `protobuf:"varint,4,opt,name=disabled_timestamp,json=disabledTimestamp,proto3" json:"disabled_timestamp,omitempty"`
	DisabledBy            []byte   `protobuf:"bytes,5,opt,name=disabled_by,json=disabledBy,proto3" json:"disabled_by,omitempty"`
	ParentKey             [][]byte `protobuf:"bytes,6,rep,name=parent_key,json=parentKey,proto3" json:"parent_key,omitempty"`
	// contains filtered or unexported fields
}

func (*LookupKeyResponse) Descriptor deprecated

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

Deprecated: Use LookupKeyResponse.ProtoReflect.Descriptor instead.

func (*LookupKeyResponse) GetDisabled

func (x *LookupKeyResponse) GetDisabled() bool

func (*LookupKeyResponse) GetDisabledBy

func (x *LookupKeyResponse) GetDisabledBy() []byte

func (*LookupKeyResponse) GetDisabledTimestamp

func (x *LookupKeyResponse) GetDisabledTimestamp() int64

func (*LookupKeyResponse) GetParentKey

func (x *LookupKeyResponse) GetParentKey() [][]byte

func (*LookupKeyResponse) GetRegistrationTimestamp

func (x *LookupKeyResponse) GetRegistrationTimestamp() int64

func (*LookupKeyResponse) GetResult

func (x *LookupKeyResponse) GetResult() *Result

func (*LookupKeyResponse) ProtoMessage

func (*LookupKeyResponse) ProtoMessage()

func (*LookupKeyResponse) ProtoReflect

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

func (*LookupKeyResponse) Reset

func (x *LookupKeyResponse) Reset()

func (*LookupKeyResponse) String

func (x *LookupKeyResponse) String() string

type LookupNameRequest

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

func (*LookupNameRequest) Descriptor deprecated

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

Deprecated: Use LookupNameRequest.ProtoReflect.Descriptor instead.

func (*LookupNameRequest) GetName

func (x *LookupNameRequest) GetName() string

func (*LookupNameRequest) ProtoMessage

func (*LookupNameRequest) ProtoMessage()

func (*LookupNameRequest) ProtoReflect

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

func (*LookupNameRequest) Reset

func (x *LookupNameRequest) Reset()

func (*LookupNameRequest) String

func (x *LookupNameRequest) String() string

type LookupNameResponse

type LookupNameResponse struct {
	Result  *Result `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
	Message string  `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Key     []byte  `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"`
	// contains filtered or unexported fields
}

func (*LookupNameResponse) Descriptor deprecated

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

Deprecated: Use LookupNameResponse.ProtoReflect.Descriptor instead.

func (*LookupNameResponse) GetKey

func (x *LookupNameResponse) GetKey() []byte

func (*LookupNameResponse) GetMessage

func (x *LookupNameResponse) GetMessage() string

func (*LookupNameResponse) GetResult

func (x *LookupNameResponse) GetResult() *Result

func (*LookupNameResponse) ProtoMessage

func (*LookupNameResponse) ProtoMessage()

func (*LookupNameResponse) ProtoReflect

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

func (*LookupNameResponse) Reset

func (x *LookupNameResponse) Reset()

func (*LookupNameResponse) String

func (x *LookupNameResponse) String() string

type LookupServiceClient

type LookupServiceClient interface {
	LookupKey(ctx context.Context, in *LookupKeyRequest, opts ...grpc.CallOption) (*LookupKeyResponse, error)
	LookupName(ctx context.Context, in *LookupNameRequest, opts ...grpc.CallOption) (*LookupNameResponse, error)
	LookupAddress(ctx context.Context, in *LookupAddressRequest, opts ...grpc.CallOption) (*LookupAddressResponse, error)
}

LookupServiceClient is the client API for LookupService 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 LookupServiceServer

type LookupServiceServer interface {
	LookupKey(context.Context, *LookupKeyRequest) (*LookupKeyResponse, error)
	LookupName(context.Context, *LookupNameRequest) (*LookupNameResponse, error)
	LookupAddress(context.Context, *LookupAddressRequest) (*LookupAddressResponse, error)
	// contains filtered or unexported methods
}

LookupServiceServer is the server API for LookupService service. All implementations must embed UnimplementedLookupServiceServer for forward compatibility

type NameRegistrationRequest

type NameRegistrationRequest struct {

	// The key to be registered.
	Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// The name to be associated with this key.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*NameRegistrationRequest) Descriptor deprecated

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

Deprecated: Use NameRegistrationRequest.ProtoReflect.Descriptor instead.

func (*NameRegistrationRequest) GetKey

func (x *NameRegistrationRequest) GetKey() []byte

func (*NameRegistrationRequest) GetName

func (x *NameRegistrationRequest) GetName() string

func (*NameRegistrationRequest) ProtoMessage

func (*NameRegistrationRequest) ProtoMessage()

func (*NameRegistrationRequest) ProtoReflect

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

func (*NameRegistrationRequest) Reset

func (x *NameRegistrationRequest) Reset()

func (*NameRegistrationRequest) String

func (x *NameRegistrationRequest) String() string

type Protocol

type Protocol int32
const (
	Protocol_PL_UNKNOWN Protocol = 0
	Protocol_PL_DMS     Protocol = 1
)

func (Protocol) Descriptor

func (Protocol) Descriptor() protoreflect.EnumDescriptor

func (Protocol) Enum

func (x Protocol) Enum() *Protocol

func (Protocol) EnumDescriptor deprecated

func (Protocol) EnumDescriptor() ([]byte, []int)

Deprecated: Use Protocol.Descriptor instead.

func (Protocol) Number

func (x Protocol) Number() protoreflect.EnumNumber

func (Protocol) String

func (x Protocol) String() string

func (Protocol) Type

type ProxyServiceClient

type ProxyServiceClient interface {
	StoreEncryptedKey(ctx context.Context, in *Signed, opts ...grpc.CallOption) (*Result, error)
}

ProxyServiceClient is the client API for ProxyService 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 ProxyServiceServer

type ProxyServiceServer interface {
	StoreEncryptedKey(context.Context, *Signed) (*Result, error)
	// contains filtered or unexported methods
}

ProxyServiceServer is the server API for ProxyService service. All implementations must embed UnimplementedProxyServiceServer for forward compatibility

type Result

type Result struct {
	Result  ResultCode `protobuf:"varint,1,opt,name=result,proto3,enum=Ubikom.ResultCode" json:"result,omitempty"`
	Message string     `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*Result) Descriptor deprecated

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

Deprecated: Use Result.ProtoReflect.Descriptor instead.

func (*Result) GetMessage

func (x *Result) GetMessage() string

func (*Result) GetResult

func (x *Result) GetResult() ResultCode

func (*Result) ProtoMessage

func (*Result) ProtoMessage()

func (*Result) ProtoReflect

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

func (*Result) Reset

func (x *Result) Reset()

func (*Result) String

func (x *Result) String() string

type ResultCode

type ResultCode int32
const (
	ResultCode_RC_OK               ResultCode = 0
	ResultCode_RC_INVALID_REQUEST  ResultCode = 1
	ResultCode_RC_INVALID_KEY      ResultCode = 2
	ResultCode_RC_RECORD_EXISTS    ResultCode = 3
	ResultCode_RC_RECORD_NOT_FOUND ResultCode = 4
	ResultCode_RC_INSUFFICIENT_POW ResultCode = 5
	ResultCode_RC_UNAUTHORIZED     ResultCode = 6
	ResultCode_RC_INTERNAL_ERROR   ResultCode = 100
)

func (ResultCode) Descriptor

func (ResultCode) Descriptor() protoreflect.EnumDescriptor

func (ResultCode) Enum

func (x ResultCode) Enum() *ResultCode

func (ResultCode) EnumDescriptor deprecated

func (ResultCode) EnumDescriptor() ([]byte, []int)

Deprecated: Use ResultCode.Descriptor instead.

func (ResultCode) Number

func (x ResultCode) Number() protoreflect.EnumNumber

func (ResultCode) String

func (x ResultCode) String() string

func (ResultCode) Type

type ResultWithContent

type ResultWithContent struct {
	Result  *Result `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
	Content []byte  `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
	// contains filtered or unexported fields
}

func (*ResultWithContent) Descriptor deprecated

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

Deprecated: Use ResultWithContent.ProtoReflect.Descriptor instead.

func (*ResultWithContent) GetContent

func (x *ResultWithContent) GetContent() []byte

func (*ResultWithContent) GetResult

func (x *ResultWithContent) GetResult() *Result

func (*ResultWithContent) ProtoMessage

func (*ResultWithContent) ProtoMessage()

func (*ResultWithContent) ProtoReflect

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

func (*ResultWithContent) Reset

func (x *ResultWithContent) Reset()

func (*ResultWithContent) String

func (x *ResultWithContent) String() string

type Signature

type Signature struct {
	R []byte `protobuf:"bytes,1,opt,name=r,proto3" json:"r,omitempty"`
	S []byte `protobuf:"bytes,2,opt,name=s,proto3" json:"s,omitempty"`
	// contains filtered or unexported fields
}

func (*Signature) Descriptor deprecated

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

Deprecated: Use Signature.ProtoReflect.Descriptor instead.

func (*Signature) GetR

func (x *Signature) GetR() []byte

func (*Signature) GetS

func (x *Signature) GetS() []byte

func (*Signature) ProtoMessage

func (*Signature) ProtoMessage()

func (*Signature) ProtoReflect

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

func (*Signature) Reset

func (x *Signature) Reset()

func (*Signature) String

func (x *Signature) String() string

type Signed

type Signed struct {
	Content   []byte     `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
	Signature *Signature `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
	Key       []byte     `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"`
	// contains filtered or unexported fields
}

func (*Signed) Descriptor deprecated

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

Deprecated: Use Signed.ProtoReflect.Descriptor instead.

func (*Signed) GetContent

func (x *Signed) GetContent() []byte

func (*Signed) GetKey

func (x *Signed) GetKey() []byte

func (*Signed) GetSignature

func (x *Signed) GetSignature() *Signature

func (*Signed) ProtoMessage

func (*Signed) ProtoMessage()

func (*Signed) ProtoReflect

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

func (*Signed) Reset

func (x *Signed) Reset()

func (*Signed) String

func (x *Signed) String() string

type SignedWithPow

type SignedWithPow struct {
	Content   []byte     `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
	Signature *Signature `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
	Key       []byte     `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` // Public key used to sign the request.
	Pow       []byte     `protobuf:"bytes,4,opt,name=pow,proto3" json:"pow,omitempty"`
	// contains filtered or unexported fields
}

func (*SignedWithPow) Descriptor deprecated

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

Deprecated: Use SignedWithPow.ProtoReflect.Descriptor instead.

func (*SignedWithPow) GetContent

func (x *SignedWithPow) GetContent() []byte

func (*SignedWithPow) GetKey

func (x *SignedWithPow) GetKey() []byte

func (*SignedWithPow) GetPow

func (x *SignedWithPow) GetPow() []byte

func (*SignedWithPow) GetSignature

func (x *SignedWithPow) GetSignature() *Signature

func (*SignedWithPow) ProtoMessage

func (*SignedWithPow) ProtoMessage()

func (*SignedWithPow) ProtoReflect

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

func (*SignedWithPow) Reset

func (x *SignedWithPow) Reset()

func (*SignedWithPow) String

func (x *SignedWithPow) String() string

type StoreEncryptedKeyRequest

type StoreEncryptedKeyRequest struct {
	Name                string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	EncryptedPrivateKey []byte `protobuf:"bytes,2,opt,name=encryptedPrivateKey,proto3" json:"encryptedPrivateKey,omitempty"`
	// contains filtered or unexported fields
}

func (*StoreEncryptedKeyRequest) Descriptor deprecated

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

Deprecated: Use StoreEncryptedKeyRequest.ProtoReflect.Descriptor instead.

func (*StoreEncryptedKeyRequest) GetEncryptedPrivateKey

func (x *StoreEncryptedKeyRequest) GetEncryptedPrivateKey() []byte

func (*StoreEncryptedKeyRequest) GetName

func (x *StoreEncryptedKeyRequest) GetName() string

func (*StoreEncryptedKeyRequest) ProtoMessage

func (*StoreEncryptedKeyRequest) ProtoMessage()

func (*StoreEncryptedKeyRequest) ProtoReflect

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

func (*StoreEncryptedKeyRequest) Reset

func (x *StoreEncryptedKeyRequest) Reset()

func (*StoreEncryptedKeyRequest) String

func (x *StoreEncryptedKeyRequest) String() string

type UnimplementedDMSDumpServiceServer

type UnimplementedDMSDumpServiceServer struct {
}

UnimplementedDMSDumpServiceServer must be embedded to have forward compatible implementations.

func (*UnimplementedDMSDumpServiceServer) Receive

func (*UnimplementedDMSDumpServiceServer) Send

type UnimplementedIdentityServiceServer

type UnimplementedIdentityServiceServer struct {
}

UnimplementedIdentityServiceServer must be embedded to have forward compatible implementations.

func (*UnimplementedIdentityServiceServer) DisableKey

func (*UnimplementedIdentityServiceServer) RegisterAddress

func (*UnimplementedIdentityServiceServer) RegisterKey

func (*UnimplementedIdentityServiceServer) RegisterKeyRelationship

func (*UnimplementedIdentityServiceServer) RegisterName

type UnimplementedLookupServiceServer

type UnimplementedLookupServiceServer struct {
}

UnimplementedLookupServiceServer must be embedded to have forward compatible implementations.

func (*UnimplementedLookupServiceServer) LookupAddress

func (*UnimplementedLookupServiceServer) LookupKey

func (*UnimplementedLookupServiceServer) LookupName

type UnimplementedProxyServiceServer

type UnimplementedProxyServiceServer struct {
}

UnimplementedProxyServiceServer must be embedded to have forward compatible implementations.

func (*UnimplementedProxyServiceServer) StoreEncryptedKey

Jump to

Keyboard shortcuts

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