Documentation
¶
Overview ¶
Package comment implements the command layer for governed comment operations. All transport calls use the generated server comment operations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Actor ¶
type Actor struct {
ID string `json:"id"`
Name *string `json:"name"`
Handle *string `json:"handle"`
URN *string `json:"urn"`
}
Actor is a public identity projection; no nested user/account object is exposed.
type Comment ¶
type Comment struct {
ID string `json:"id"`
URN string `json:"urn"`
PortalURL *string `json:"portalUrl"`
Target Target `json:"target"`
ThreadRootID *string `json:"threadRootId"`
IsTopLevel bool `json:"isTopLevel"`
AnchorRevision int `json:"anchorRevision"`
AnchorApprovalHash string `json:"anchorApprovalHash"`
AnchorIsCurrent bool `json:"anchorIsCurrent"`
Quote *string `json:"quote"`
Body *string `json:"body"`
State *string `json:"state"`
Deleted bool `json:"deleted"`
DeletedAt *string `json:"deletedAt"`
DeletedBy *Actor `json:"deletedBy"`
EditedAt *string `json:"editedAt"`
EditedBy *Actor `json:"editedBy"`
ResolvedAt *string `json:"resolvedAt"`
ResolvedBy *Actor `json:"resolvedBy"`
Author Author `json:"author"`
ProvenanceUser *Actor `json:"provenanceUser"`
CreatedAt string `json:"createdAt"`
UpdatedAt *string `json:"updatedAt"`
RevSeq int `json:"revSeq"`
}
Comment is the stable CLI output contract. Nullable bodies preserve stubs.
type Connect ¶
func ConnectGraphQL ¶
type Service ¶
type Service interface {
List(context.Context, string, []string, int, int) (Page, error)
Get(context.Context, string) (*Comment, error)
Create(context.Context, string, string, *string, *int) (Comment, error)
Reply(context.Context, string, string) (Comment, error)
Edit(context.Context, string, *string, *string, int) (Comment, error)
Delete(context.Context, string, int) (Comment, error)
Resolve(context.Context, string, int, bool) (Comment, error)
}
Service is the seam for the generated adapter. Nil edit fields mean preserve; an explicit empty quote means clear. Implementations return mapped CLI errors.
Click to show internal directories.
Click to hide internal directories.