Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NextCursor ¶
func NextCursor(entries []OperationLogEntry) string
Types ¶
type LegacyCreateOp ¶
type LegacyCreateOp struct {
Type string `json:"type" cborgen:"type,const=create"`
SigningKey string `json:"signingKey" cborgen:"signingKey"`
RecoveryKey string `json:"recoveryKey" cborgen:"recoveryKey"`
Handle string `json:"handle" cborgen:"handle"`
Service string `json:"service" cborgen:"service"`
Prev *string `json:"prev" cborgen:"prev"`
Sig *string `json:"sig" cborgen:"sig,omitempty"`
}
func (*LegacyCreateOp) AsUnsignedOp ¶
func (op *LegacyCreateOp) AsUnsignedOp() Op
func (*LegacyCreateOp) MarshalCBOR ¶
func (t *LegacyCreateOp) MarshalCBOR(w io.Writer) error
func (*LegacyCreateOp) UnmarshalCBOR ¶
func (t *LegacyCreateOp) UnmarshalCBOR(r io.Reader) (err error)
type Op ¶
type Op struct {
Type string `json:"type" cborgen:"type,const=plc_operation"`
RotationKeys []string `json:"rotationKeys" cborgen:"rotationKeys"`
VerificationMethods map[string]string `json:"verificationMethods" cborgen:"verificationMethods"`
AlsoKnownAs []string `json:"alsoKnownAs" cborgen:"alsoKnownAs"`
Services map[string]Service `json:"services" cborgen:"services"`
Prev *string `json:"prev" cborgen:"prev"`
Sig *string `json:"sig" cborgen:"sig,omitempty"`
}
type Operation ¶
type Operation struct {
Value OperationKind
}
func (Operation) MarshalJSON ¶
func (*Operation) UnmarshalJSON ¶
type OperationKind ¶
type OperationLogEntry ¶
type Service ¶
Click to show internal directories.
Click to hide internal directories.