Documentation ¶
Overview ¶
Package gen is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterIDHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterIDHandlerClient(ctx context.Context, mux *runtime.ServeMux, client IDClient) error
- func RegisterIDHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterIDHandlerServer(ctx context.Context, mux *runtime.ServeMux, server IDServer) error
- func RegisterIDServer(s *grpc.Server, srv IDServer)
- type BackupDIDRequest
- type BackupDIDResponse
- func (*BackupDIDResponse) Descriptor() ([]byte, []int)deprecated
- func (x *BackupDIDResponse) GetRecoveryKit() *RecoveryKit
- func (*BackupDIDResponse) ProtoMessage()
- func (x *BackupDIDResponse) ProtoReflect() protoreflect.Message
- func (x *BackupDIDResponse) Reset()
- func (x *BackupDIDResponse) String() string
- type CreateDIDRequest
- func (*CreateDIDRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateDIDRequest) GetServiceEndpoints() []*ServiceEndpoint
- func (x *CreateDIDRequest) GetType() string
- func (*CreateDIDRequest) ProtoMessage()
- func (x *CreateDIDRequest) ProtoReflect() protoreflect.Message
- func (x *CreateDIDRequest) Reset()
- func (x *CreateDIDRequest) String() string
- type CreateDIDResponse
- func (*CreateDIDResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateDIDResponse) GetDocument() string
- func (x *CreateDIDResponse) GetLongFormDid() string
- func (x *CreateDIDResponse) GetRecoveryKit() *RecoveryKit
- func (*CreateDIDResponse) ProtoMessage()
- func (x *CreateDIDResponse) ProtoReflect() protoreflect.Message
- func (x *CreateDIDResponse) Reset()
- func (x *CreateDIDResponse) String() string
- type DeleteDIDRequest
- type DeleteDIDResponse
- type IDClient
- type IDServer
- type ImportDIDRequest
- func (*ImportDIDRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ImportDIDRequest) GetDocument() string
- func (x *ImportDIDRequest) GetLongFormDid() string
- func (*ImportDIDRequest) ProtoMessage()
- func (x *ImportDIDRequest) ProtoReflect() protoreflect.Message
- func (x *ImportDIDRequest) Reset()
- func (x *ImportDIDRequest) String() string
- type ImportDIDResponse
- type ListDIDRequest
- type ListDIDResponse
- type RecoverDIDRequest
- func (*RecoverDIDRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RecoverDIDRequest) GetPassphrase() string
- func (x *RecoverDIDRequest) GetRecoveryKit() *RecoveryKit
- func (*RecoverDIDRequest) ProtoMessage()
- func (x *RecoverDIDRequest) ProtoReflect() protoreflect.Message
- func (x *RecoverDIDRequest) Reset()
- func (x *RecoverDIDRequest) String() string
- type RecoverDIDResponse
- type RecoveryKit
- func (*RecoveryKit) Descriptor() ([]byte, []int)deprecated
- func (x *RecoveryKit) GetDid() string
- func (x *RecoveryKit) GetDidDerivationPath() uint32
- func (x *RecoveryKit) GetKeyDerivations() []uint32
- func (x *RecoveryKit) GetLongFormDid() string
- func (x *RecoveryKit) GetSeed() string
- func (*RecoveryKit) ProtoMessage()
- func (x *RecoveryKit) ProtoReflect() protoreflect.Message
- func (x *RecoveryKit) Reset()
- func (x *RecoveryKit) String() string
- type ResolveDIDRequest
- type ResolveDIDResponse
- func (*ResolveDIDResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ResolveDIDResponse) GetDocument() string
- func (x *ResolveDIDResponse) GetLongFormDid() string
- func (*ResolveDIDResponse) ProtoMessage()
- func (x *ResolveDIDResponse) ProtoReflect() protoreflect.Message
- func (x *ResolveDIDResponse) Reset()
- func (x *ResolveDIDResponse) String() string
- type ServiceEndpoint
- func (*ServiceEndpoint) Descriptor() ([]byte, []int)deprecated
- func (x *ServiceEndpoint) GetId() string
- func (x *ServiceEndpoint) GetServiceEndpoint() string
- func (x *ServiceEndpoint) GetType() string
- func (*ServiceEndpoint) ProtoMessage()
- func (x *ServiceEndpoint) ProtoReflect() protoreflect.Message
- func (x *ServiceEndpoint) Reset()
- func (x *ServiceEndpoint) String() string
- type StoreDIDRequest
- type StoreDIDResponse
- type UnimplementedIDServer
- func (*UnimplementedIDServer) BackupDID(context.Context, *BackupDIDRequest) (*BackupDIDResponse, error)
- func (*UnimplementedIDServer) CreateDID(context.Context, *CreateDIDRequest) (*CreateDIDResponse, error)
- func (*UnimplementedIDServer) DeleteDID(context.Context, *DeleteDIDRequest) (*DeleteDIDResponse, error)
- func (*UnimplementedIDServer) ImportDID(context.Context, *ImportDIDRequest) (*ImportDIDResponse, error)
- func (*UnimplementedIDServer) ListDID(context.Context, *ListDIDRequest) (*ListDIDResponse, error)
- func (*UnimplementedIDServer) RecoverDID(context.Context, *RecoverDIDRequest) (*RecoverDIDResponse, error)
- func (*UnimplementedIDServer) ResolveDID(context.Context, *ResolveDIDRequest) (*ResolveDIDResponse, error)
- func (*UnimplementedIDServer) UpdateDID(context.Context, *UpdateDIDRequest) (*UpdateDIDResponse, error)
- type UpdateDIDRequest
- type UpdateDIDResponse
- func (*UpdateDIDResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateDIDResponse) GetDocument() string
- func (x *UpdateDIDResponse) GetLongFormDid() string
- func (x *UpdateDIDResponse) GetRecoveryKit() *RecoveryKit
- func (*UpdateDIDResponse) ProtoMessage()
- func (x *UpdateDIDResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateDIDResponse) Reset()
- func (x *UpdateDIDResponse) String() string
Constants ¶
This section is empty.
Variables ¶
var File_proto_imp_api_id_id_proto protoreflect.FileDescriptor
Functions ¶
func RegisterIDHandler ¶
RegisterIDHandler registers the http handlers for service ID to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterIDHandlerClient ¶
RegisterIDHandlerClient registers the http handlers for service ID to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "IDClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "IDClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "IDClient" to call the correct interceptors.
func RegisterIDHandlerFromEndpoint ¶
func RegisterIDHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterIDHandlerFromEndpoint is same as RegisterIDHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterIDHandlerServer ¶
RegisterIDHandlerServer registers the http handlers for service ID to "mux". UnaryRPC :call IDServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterIDHandlerFromEndpoint instead.
func RegisterIDServer ¶
Types ¶
type BackupDIDRequest ¶
type BackupDIDRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // The ID of the did to back up // contains filtered or unexported fields }
* Represents a request to backup a did.
func (*BackupDIDRequest) Descriptor
deprecated
func (*BackupDIDRequest) Descriptor() ([]byte, []int)
Deprecated: Use BackupDIDRequest.ProtoReflect.Descriptor instead.
func (*BackupDIDRequest) GetId ¶
func (x *BackupDIDRequest) GetId() string
func (*BackupDIDRequest) ProtoMessage ¶
func (*BackupDIDRequest) ProtoMessage()
func (*BackupDIDRequest) ProtoReflect ¶
func (x *BackupDIDRequest) ProtoReflect() protoreflect.Message
func (*BackupDIDRequest) Reset ¶
func (x *BackupDIDRequest) Reset()
func (*BackupDIDRequest) String ¶
func (x *BackupDIDRequest) String() string
type BackupDIDResponse ¶
type BackupDIDResponse struct { RecoveryKit *RecoveryKit `protobuf:"bytes,1,opt,name=recovery_kit,json=recoveryKit,proto3" json:"recovery_kit,omitempty"` // The recovery kit of the DID. // contains filtered or unexported fields }
* Represents a response containing the did backup recovery kit.
func (*BackupDIDResponse) Descriptor
deprecated
func (*BackupDIDResponse) Descriptor() ([]byte, []int)
Deprecated: Use BackupDIDResponse.ProtoReflect.Descriptor instead.
func (*BackupDIDResponse) GetRecoveryKit ¶
func (x *BackupDIDResponse) GetRecoveryKit() *RecoveryKit
func (*BackupDIDResponse) ProtoMessage ¶
func (*BackupDIDResponse) ProtoMessage()
func (*BackupDIDResponse) ProtoReflect ¶
func (x *BackupDIDResponse) ProtoReflect() protoreflect.Message
func (*BackupDIDResponse) Reset ¶
func (x *BackupDIDResponse) Reset()
func (*BackupDIDResponse) String ¶
func (x *BackupDIDResponse) String() string
type CreateDIDRequest ¶
type CreateDIDRequest struct { Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` // The DID type to create ServiceEndpoints []*ServiceEndpoint `protobuf:"bytes,2,rep,name=serviceEndpoints,proto3" json:"serviceEndpoints,omitempty"` // A list of service endpoints to create the DID with // contains filtered or unexported fields }
* Represents a request to create a DID document.
func (*CreateDIDRequest) Descriptor
deprecated
func (*CreateDIDRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateDIDRequest.ProtoReflect.Descriptor instead.
func (*CreateDIDRequest) GetServiceEndpoints ¶
func (x *CreateDIDRequest) GetServiceEndpoints() []*ServiceEndpoint
func (*CreateDIDRequest) GetType ¶
func (x *CreateDIDRequest) GetType() string
func (*CreateDIDRequest) ProtoMessage ¶
func (*CreateDIDRequest) ProtoMessage()
func (*CreateDIDRequest) ProtoReflect ¶
func (x *CreateDIDRequest) ProtoReflect() protoreflect.Message
func (*CreateDIDRequest) Reset ¶
func (x *CreateDIDRequest) Reset()
func (*CreateDIDRequest) String ¶
func (x *CreateDIDRequest) String() string
type CreateDIDResponse ¶
type CreateDIDResponse struct { Document string `protobuf:"bytes,1,opt,name=document,proto3" json:"document,omitempty"` // The created DID document ID. LongFormDid string `protobuf:"bytes,2,opt,name=long_form_did,json=longFormDid,proto3" json:"long_form_did,omitempty"` // The long form DID string with `initialState` and/or `signedIetfJsonPatch` query parameters encoded inline. RecoveryKit *RecoveryKit `protobuf:"bytes,3,opt,name=recovery_kit,json=recoveryKit,proto3" json:"recovery_kit,omitempty"` // The recovery kit of the created DID // contains filtered or unexported fields }
* Represents a response the document for the created DID.
func (*CreateDIDResponse) Descriptor
deprecated
func (*CreateDIDResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateDIDResponse.ProtoReflect.Descriptor instead.
func (*CreateDIDResponse) GetDocument ¶
func (x *CreateDIDResponse) GetDocument() string
func (*CreateDIDResponse) GetLongFormDid ¶
func (x *CreateDIDResponse) GetLongFormDid() string
func (*CreateDIDResponse) GetRecoveryKit ¶
func (x *CreateDIDResponse) GetRecoveryKit() *RecoveryKit
func (*CreateDIDResponse) ProtoMessage ¶
func (*CreateDIDResponse) ProtoMessage()
func (*CreateDIDResponse) ProtoReflect ¶
func (x *CreateDIDResponse) ProtoReflect() protoreflect.Message
func (*CreateDIDResponse) Reset ¶
func (x *CreateDIDResponse) Reset()
func (*CreateDIDResponse) String ¶
func (x *CreateDIDResponse) String() string
type DeleteDIDRequest ¶
type DeleteDIDRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // The ID of the did to delete // contains filtered or unexported fields }
* Represents a request to delete a did.
func (*DeleteDIDRequest) Descriptor
deprecated
func (*DeleteDIDRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteDIDRequest.ProtoReflect.Descriptor instead.
func (*DeleteDIDRequest) GetId ¶
func (x *DeleteDIDRequest) GetId() string
func (*DeleteDIDRequest) ProtoMessage ¶
func (*DeleteDIDRequest) ProtoMessage()
func (*DeleteDIDRequest) ProtoReflect ¶
func (x *DeleteDIDRequest) ProtoReflect() protoreflect.Message
func (*DeleteDIDRequest) Reset ¶
func (x *DeleteDIDRequest) Reset()
func (*DeleteDIDRequest) String ¶
func (x *DeleteDIDRequest) String() string
type DeleteDIDResponse ¶
type DeleteDIDResponse struct {
// contains filtered or unexported fields
}
* Represents a response containing the did deletion event.
func (*DeleteDIDResponse) Descriptor
deprecated
func (*DeleteDIDResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteDIDResponse.ProtoReflect.Descriptor instead.
func (*DeleteDIDResponse) ProtoMessage ¶
func (*DeleteDIDResponse) ProtoMessage()
func (*DeleteDIDResponse) ProtoReflect ¶
func (x *DeleteDIDResponse) ProtoReflect() protoreflect.Message
func (*DeleteDIDResponse) Reset ¶
func (x *DeleteDIDResponse) Reset()
func (*DeleteDIDResponse) String ¶
func (x *DeleteDIDResponse) String() string
type IDClient ¶
type IDClient interface { //* // ResolveDID resolves a DID URI and returns a DID document representing the identity. ResolveDID(ctx context.Context, in *ResolveDIDRequest, opts ...grpc.CallOption) (*ResolveDIDResponse, error) //* // ListDID lists all of the DIDs stored locally. ListDID(ctx context.Context, in *ListDIDRequest, opts ...grpc.CallOption) (*ListDIDResponse, error) //* // CreateDID creates a DID for the user with the given information. CreateDID(ctx context.Context, in *CreateDIDRequest, opts ...grpc.CallOption) (*CreateDIDResponse, error) //* // ImportDID imports a DID document which belongs to the user. ImportDID(ctx context.Context, in *ImportDIDRequest, opts ...grpc.CallOption) (*ImportDIDResponse, error) //* // UpdateDID updates a DID document with a patch document. UpdateDID(ctx context.Context, in *UpdateDIDRequest, opts ...grpc.CallOption) (*UpdateDIDResponse, error) //* // DeleteDID will delete a specific did. DeleteDID(ctx context.Context, in *DeleteDIDRequest, opts ...grpc.CallOption) (*DeleteDIDResponse, error) BackupDID(ctx context.Context, in *BackupDIDRequest, opts ...grpc.CallOption) (*BackupDIDResponse, error) RecoverDID(ctx context.Context, in *RecoverDIDRequest, opts ...grpc.CallOption) (*RecoverDIDResponse, error) }
IDClient is the client API for ID service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewIDClient ¶
func NewIDClient(cc grpc.ClientConnInterface) IDClient
type IDServer ¶
type IDServer interface { //* // ResolveDID resolves a DID URI and returns a DID document representing the identity. ResolveDID(context.Context, *ResolveDIDRequest) (*ResolveDIDResponse, error) //* // ListDID lists all of the DIDs stored locally. ListDID(context.Context, *ListDIDRequest) (*ListDIDResponse, error) //* // CreateDID creates a DID for the user with the given information. CreateDID(context.Context, *CreateDIDRequest) (*CreateDIDResponse, error) //* // ImportDID imports a DID document which belongs to the user. ImportDID(context.Context, *ImportDIDRequest) (*ImportDIDResponse, error) //* // UpdateDID updates a DID document with a patch document. UpdateDID(context.Context, *UpdateDIDRequest) (*UpdateDIDResponse, error) //* // DeleteDID will delete a specific did. DeleteDID(context.Context, *DeleteDIDRequest) (*DeleteDIDResponse, error) BackupDID(context.Context, *BackupDIDRequest) (*BackupDIDResponse, error) RecoverDID(context.Context, *RecoverDIDRequest) (*RecoverDIDResponse, error) }
IDServer is the server API for ID service.
type ImportDIDRequest ¶
type ImportDIDRequest struct { Document string `protobuf:"bytes,1,opt,name=document,proto3" json:"document,omitempty"` // The DID document to import, optional if `long_form_did` is present. LongFormDid string `protobuf:"bytes,2,opt,name=long_form_did,json=longFormDid,proto3" json:"long_form_did,omitempty"` // The long form DID string with `initialState` and/or `signedIetfJsonPatch` query parameters encoded inline. // contains filtered or unexported fields }
* Represents a request to import a user's DID document.
func (*ImportDIDRequest) Descriptor
deprecated
func (*ImportDIDRequest) Descriptor() ([]byte, []int)
Deprecated: Use ImportDIDRequest.ProtoReflect.Descriptor instead.
func (*ImportDIDRequest) GetDocument ¶
func (x *ImportDIDRequest) GetDocument() string
func (*ImportDIDRequest) GetLongFormDid ¶
func (x *ImportDIDRequest) GetLongFormDid() string
func (*ImportDIDRequest) ProtoMessage ¶
func (*ImportDIDRequest) ProtoMessage()
func (*ImportDIDRequest) ProtoReflect ¶
func (x *ImportDIDRequest) ProtoReflect() protoreflect.Message
func (*ImportDIDRequest) Reset ¶
func (x *ImportDIDRequest) Reset()
func (*ImportDIDRequest) String ¶
func (x *ImportDIDRequest) String() string
type ImportDIDResponse ¶
type ImportDIDResponse struct {
// contains filtered or unexported fields
}
* Represents a response after importing a user's DID document.
func (*ImportDIDResponse) Descriptor
deprecated
func (*ImportDIDResponse) Descriptor() ([]byte, []int)
Deprecated: Use ImportDIDResponse.ProtoReflect.Descriptor instead.
func (*ImportDIDResponse) ProtoMessage ¶
func (*ImportDIDResponse) ProtoMessage()
func (*ImportDIDResponse) ProtoReflect ¶
func (x *ImportDIDResponse) ProtoReflect() protoreflect.Message
func (*ImportDIDResponse) Reset ¶
func (x *ImportDIDResponse) Reset()
func (*ImportDIDResponse) String ¶
func (x *ImportDIDResponse) String() string
type ListDIDRequest ¶
type ListDIDRequest struct {
// contains filtered or unexported fields
}
* Represents a request to list DIDs stored locally.
func (*ListDIDRequest) Descriptor
deprecated
func (*ListDIDRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListDIDRequest.ProtoReflect.Descriptor instead.
func (*ListDIDRequest) ProtoMessage ¶
func (*ListDIDRequest) ProtoMessage()
func (*ListDIDRequest) ProtoReflect ¶
func (x *ListDIDRequest) ProtoReflect() protoreflect.Message
func (*ListDIDRequest) Reset ¶
func (x *ListDIDRequest) Reset()
func (*ListDIDRequest) String ¶
func (x *ListDIDRequest) String() string
type ListDIDResponse ¶
type ListDIDResponse struct { Documents []string `protobuf:"bytes,1,rep,name=documents,proto3" json:"documents,omitempty"` // The stored DID documents // contains filtered or unexported fields }
* Represents a response containing a list of the stored DIDs.
func (*ListDIDResponse) Descriptor
deprecated
func (*ListDIDResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListDIDResponse.ProtoReflect.Descriptor instead.
func (*ListDIDResponse) GetDocuments ¶
func (x *ListDIDResponse) GetDocuments() []string
func (*ListDIDResponse) ProtoMessage ¶
func (*ListDIDResponse) ProtoMessage()
func (*ListDIDResponse) ProtoReflect ¶
func (x *ListDIDResponse) ProtoReflect() protoreflect.Message
func (*ListDIDResponse) Reset ¶
func (x *ListDIDResponse) Reset()
func (*ListDIDResponse) String ¶
func (x *ListDIDResponse) String() string
type RecoverDIDRequest ¶
type RecoverDIDRequest struct { RecoveryKit *RecoveryKit `protobuf:"bytes,1,opt,name=recovery_kit,json=recoveryKit,proto3" json:"recovery_kit,omitempty"` // The DID to recover. Passphrase *string `protobuf:"bytes,2,opt,name=passphrase,proto3,oneof" json:"passphrase,omitempty"` // If using the recovery kit to also init the seed with the passed in mnenomic, provide a passphrase to encrypt DB/seed with. Not needed if `id.InitSeed` has already ran before. // contains filtered or unexported fields }
* Represents a request to recover a did with the recovery kit.
func (*RecoverDIDRequest) Descriptor
deprecated
func (*RecoverDIDRequest) Descriptor() ([]byte, []int)
Deprecated: Use RecoverDIDRequest.ProtoReflect.Descriptor instead.
func (*RecoverDIDRequest) GetPassphrase ¶
func (x *RecoverDIDRequest) GetPassphrase() string
func (*RecoverDIDRequest) GetRecoveryKit ¶
func (x *RecoverDIDRequest) GetRecoveryKit() *RecoveryKit
func (*RecoverDIDRequest) ProtoMessage ¶
func (*RecoverDIDRequest) ProtoMessage()
func (*RecoverDIDRequest) ProtoReflect ¶
func (x *RecoverDIDRequest) ProtoReflect() protoreflect.Message
func (*RecoverDIDRequest) Reset ¶
func (x *RecoverDIDRequest) Reset()
func (*RecoverDIDRequest) String ¶
func (x *RecoverDIDRequest) String() string
type RecoverDIDResponse ¶
type RecoverDIDResponse struct {
// contains filtered or unexported fields
}
* Represents a response containing the did recovery result.
func (*RecoverDIDResponse) Descriptor
deprecated
func (*RecoverDIDResponse) Descriptor() ([]byte, []int)
Deprecated: Use RecoverDIDResponse.ProtoReflect.Descriptor instead.
func (*RecoverDIDResponse) ProtoMessage ¶
func (*RecoverDIDResponse) ProtoMessage()
func (*RecoverDIDResponse) ProtoReflect ¶
func (x *RecoverDIDResponse) ProtoReflect() protoreflect.Message
func (*RecoverDIDResponse) Reset ¶
func (x *RecoverDIDResponse) Reset()
func (*RecoverDIDResponse) String ¶
func (x *RecoverDIDResponse) String() string
type RecoveryKit ¶
type RecoveryKit struct { Did string `protobuf:"bytes,1,opt,name=did,proto3" json:"did,omitempty"` // The DID this recovery kit is for LongFormDid *string `protobuf:"bytes,2,opt,name=long_form_did,json=longFormDid,proto3,oneof" json:"long_form_did,omitempty"` // The long form DID with the document/patches encoded into the DID. Only necessary for PEER. DidDerivationPath uint32 `protobuf:"varint,3,opt,name=did_derivation_path,json=didDerivationPath,proto3" json:"did_derivation_path,omitempty"` // The parent derivation path for the DID KeyDerivations []uint32 `protobuf:"varint,4,rep,packed,name=key_derivations,json=keyDerivations,proto3" json:"key_derivations,omitempty"` // Each key derivation path created under a DID Seed string `protobuf:"bytes,5,opt,name=seed,proto3" json:"seed,omitempty"` // The seed words backing the identity // contains filtered or unexported fields }
* Represents a DID recovery kit to back up and restore from later.
func (*RecoveryKit) Descriptor
deprecated
func (*RecoveryKit) Descriptor() ([]byte, []int)
Deprecated: Use RecoveryKit.ProtoReflect.Descriptor instead.
func (*RecoveryKit) GetDid ¶
func (x *RecoveryKit) GetDid() string
func (*RecoveryKit) GetDidDerivationPath ¶
func (x *RecoveryKit) GetDidDerivationPath() uint32
func (*RecoveryKit) GetKeyDerivations ¶
func (x *RecoveryKit) GetKeyDerivations() []uint32
func (*RecoveryKit) GetLongFormDid ¶
func (x *RecoveryKit) GetLongFormDid() string
func (*RecoveryKit) GetSeed ¶
func (x *RecoveryKit) GetSeed() string
func (*RecoveryKit) ProtoMessage ¶
func (*RecoveryKit) ProtoMessage()
func (*RecoveryKit) ProtoReflect ¶
func (x *RecoveryKit) ProtoReflect() protoreflect.Message
func (*RecoveryKit) Reset ¶
func (x *RecoveryKit) Reset()
func (*RecoveryKit) String ¶
func (x *RecoveryKit) String() string
type ResolveDIDRequest ¶
type ResolveDIDRequest struct { Did string `protobuf:"bytes,1,opt,name=did,proto3" json:"did,omitempty"` // The DID URI to resolve // contains filtered or unexported fields }
* Represents a request to resolve a DID into a DID document.
func (*ResolveDIDRequest) Descriptor
deprecated
func (*ResolveDIDRequest) Descriptor() ([]byte, []int)
Deprecated: Use ResolveDIDRequest.ProtoReflect.Descriptor instead.
func (*ResolveDIDRequest) GetDid ¶
func (x *ResolveDIDRequest) GetDid() string
func (*ResolveDIDRequest) ProtoMessage ¶
func (*ResolveDIDRequest) ProtoMessage()
func (*ResolveDIDRequest) ProtoReflect ¶
func (x *ResolveDIDRequest) ProtoReflect() protoreflect.Message
func (*ResolveDIDRequest) Reset ¶
func (x *ResolveDIDRequest) Reset()
func (*ResolveDIDRequest) String ¶
func (x *ResolveDIDRequest) String() string
type ResolveDIDResponse ¶
type ResolveDIDResponse struct { Document string `protobuf:"bytes,1,opt,name=document,proto3" json:"document,omitempty"` // The resolved DID document LongFormDid string `protobuf:"bytes,2,opt,name=long_form_did,json=longFormDid,proto3" json:"long_form_did,omitempty"` // The long form DID string with `initialState` and/or `signedIetfJsonPatch` query parameters encoded inline. // contains filtered or unexported fields }
* Represents a response containing the resolved DID document of the passed in DID URI.
func (*ResolveDIDResponse) Descriptor
deprecated
func (*ResolveDIDResponse) Descriptor() ([]byte, []int)
Deprecated: Use ResolveDIDResponse.ProtoReflect.Descriptor instead.
func (*ResolveDIDResponse) GetDocument ¶
func (x *ResolveDIDResponse) GetDocument() string
func (*ResolveDIDResponse) GetLongFormDid ¶
func (x *ResolveDIDResponse) GetLongFormDid() string
func (*ResolveDIDResponse) ProtoMessage ¶
func (*ResolveDIDResponse) ProtoMessage()
func (*ResolveDIDResponse) ProtoReflect ¶
func (x *ResolveDIDResponse) ProtoReflect() protoreflect.Message
func (*ResolveDIDResponse) Reset ¶
func (x *ResolveDIDResponse) Reset()
func (*ResolveDIDResponse) String ¶
func (x *ResolveDIDResponse) String() string
type ServiceEndpoint ¶
type ServiceEndpoint struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // The ID of the service endpoint Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` // The type of the service endpoint ServiceEndpoint string `protobuf:"bytes,3,opt,name=serviceEndpoint,proto3" json:"serviceEndpoint,omitempty"` // The serviceEndpoint URI // contains filtered or unexported fields }
func (*ServiceEndpoint) Descriptor
deprecated
func (*ServiceEndpoint) Descriptor() ([]byte, []int)
Deprecated: Use ServiceEndpoint.ProtoReflect.Descriptor instead.
func (*ServiceEndpoint) GetId ¶
func (x *ServiceEndpoint) GetId() string
func (*ServiceEndpoint) GetServiceEndpoint ¶
func (x *ServiceEndpoint) GetServiceEndpoint() string
func (*ServiceEndpoint) GetType ¶
func (x *ServiceEndpoint) GetType() string
func (*ServiceEndpoint) ProtoMessage ¶
func (*ServiceEndpoint) ProtoMessage()
func (*ServiceEndpoint) ProtoReflect ¶
func (x *ServiceEndpoint) ProtoReflect() protoreflect.Message
func (*ServiceEndpoint) Reset ¶
func (x *ServiceEndpoint) Reset()
func (*ServiceEndpoint) String ¶
func (x *ServiceEndpoint) String() string
type StoreDIDRequest ¶
type StoreDIDRequest struct { Document string `protobuf:"bytes,1,opt,name=document,proto3" json:"document,omitempty"` // The DID document to store // contains filtered or unexported fields }
* Represents a request to store a DID document.
func (*StoreDIDRequest) Descriptor
deprecated
func (*StoreDIDRequest) Descriptor() ([]byte, []int)
Deprecated: Use StoreDIDRequest.ProtoReflect.Descriptor instead.
func (*StoreDIDRequest) GetDocument ¶
func (x *StoreDIDRequest) GetDocument() string
func (*StoreDIDRequest) ProtoMessage ¶
func (*StoreDIDRequest) ProtoMessage()
func (*StoreDIDRequest) ProtoReflect ¶
func (x *StoreDIDRequest) ProtoReflect() protoreflect.Message
func (*StoreDIDRequest) Reset ¶
func (x *StoreDIDRequest) Reset()
func (*StoreDIDRequest) String ¶
func (x *StoreDIDRequest) String() string
type StoreDIDResponse ¶
type StoreDIDResponse struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // The resolved DID document ID. // contains filtered or unexported fields }
* Represents a response containing the resolved ID of the passed in DID document.
func (*StoreDIDResponse) Descriptor
deprecated
func (*StoreDIDResponse) Descriptor() ([]byte, []int)
Deprecated: Use StoreDIDResponse.ProtoReflect.Descriptor instead.
func (*StoreDIDResponse) GetId ¶
func (x *StoreDIDResponse) GetId() string
func (*StoreDIDResponse) ProtoMessage ¶
func (*StoreDIDResponse) ProtoMessage()
func (*StoreDIDResponse) ProtoReflect ¶
func (x *StoreDIDResponse) ProtoReflect() protoreflect.Message
func (*StoreDIDResponse) Reset ¶
func (x *StoreDIDResponse) Reset()
func (*StoreDIDResponse) String ¶
func (x *StoreDIDResponse) String() string
type UnimplementedIDServer ¶
type UnimplementedIDServer struct { }
UnimplementedIDServer can be embedded to have forward compatible implementations.
func (*UnimplementedIDServer) BackupDID ¶
func (*UnimplementedIDServer) BackupDID(context.Context, *BackupDIDRequest) (*BackupDIDResponse, error)
func (*UnimplementedIDServer) CreateDID ¶
func (*UnimplementedIDServer) CreateDID(context.Context, *CreateDIDRequest) (*CreateDIDResponse, error)
func (*UnimplementedIDServer) DeleteDID ¶
func (*UnimplementedIDServer) DeleteDID(context.Context, *DeleteDIDRequest) (*DeleteDIDResponse, error)
func (*UnimplementedIDServer) ImportDID ¶
func (*UnimplementedIDServer) ImportDID(context.Context, *ImportDIDRequest) (*ImportDIDResponse, error)
func (*UnimplementedIDServer) ListDID ¶
func (*UnimplementedIDServer) ListDID(context.Context, *ListDIDRequest) (*ListDIDResponse, error)
func (*UnimplementedIDServer) RecoverDID ¶
func (*UnimplementedIDServer) RecoverDID(context.Context, *RecoverDIDRequest) (*RecoverDIDResponse, error)
func (*UnimplementedIDServer) ResolveDID ¶
func (*UnimplementedIDServer) ResolveDID(context.Context, *ResolveDIDRequest) (*ResolveDIDResponse, error)
func (*UnimplementedIDServer) UpdateDID ¶
func (*UnimplementedIDServer) UpdateDID(context.Context, *UpdateDIDRequest) (*UpdateDIDResponse, error)
type UpdateDIDRequest ¶
type UpdateDIDRequest struct { Document string `protobuf:"bytes,1,opt,name=document,proto3" json:"document,omitempty"` // The DID document patch to use as the update // contains filtered or unexported fields }
* Represents a request to update a DID document.
func (*UpdateDIDRequest) Descriptor
deprecated
func (*UpdateDIDRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateDIDRequest.ProtoReflect.Descriptor instead.
func (*UpdateDIDRequest) GetDocument ¶
func (x *UpdateDIDRequest) GetDocument() string
func (*UpdateDIDRequest) ProtoMessage ¶
func (*UpdateDIDRequest) ProtoMessage()
func (*UpdateDIDRequest) ProtoReflect ¶
func (x *UpdateDIDRequest) ProtoReflect() protoreflect.Message
func (*UpdateDIDRequest) Reset ¶
func (x *UpdateDIDRequest) Reset()
func (*UpdateDIDRequest) String ¶
func (x *UpdateDIDRequest) String() string
type UpdateDIDResponse ¶
type UpdateDIDResponse struct { Document string `protobuf:"bytes,1,opt,name=document,proto3" json:"document,omitempty"` // The updated DID document ID. LongFormDid string `protobuf:"bytes,2,opt,name=long_form_did,json=longFormDid,proto3" json:"long_form_did,omitempty"` // The long form DID string with `initialState` and/or `signedIetfJsonPatch` query parameters encoded inline. RecoveryKit *RecoveryKit `protobuf:"bytes,3,opt,name=recovery_kit,json=recoveryKit,proto3,oneof" json:"recovery_kit,omitempty"` // The recovery kit of the updated DID. Only needed on Peer DIDs. // contains filtered or unexported fields }
* Represents a response after updating a DID document.
func (*UpdateDIDResponse) Descriptor
deprecated
func (*UpdateDIDResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateDIDResponse.ProtoReflect.Descriptor instead.
func (*UpdateDIDResponse) GetDocument ¶
func (x *UpdateDIDResponse) GetDocument() string
func (*UpdateDIDResponse) GetLongFormDid ¶
func (x *UpdateDIDResponse) GetLongFormDid() string
func (*UpdateDIDResponse) GetRecoveryKit ¶
func (x *UpdateDIDResponse) GetRecoveryKit() *RecoveryKit
func (*UpdateDIDResponse) ProtoMessage ¶
func (*UpdateDIDResponse) ProtoMessage()
func (*UpdateDIDResponse) ProtoReflect ¶
func (x *UpdateDIDResponse) ProtoReflect() protoreflect.Message
func (*UpdateDIDResponse) Reset ¶
func (x *UpdateDIDResponse) Reset()
func (*UpdateDIDResponse) String ¶
func (x *UpdateDIDResponse) String() string