@@ -1083,7 +1083,6 @@ func (c *dbosContext) RunAsStep(_ DBOSContext, fn StepFunc, opts ...StepOption)
10831083/******* WORKFLOW COMMUNICATIONS ********/
10841084/****************************************/
10851085
1086-
10871086func (c * dbosContext ) Send (_ DBOSContext , destinationID string , message any , topic string ) error {
10881087 return c .systemDB .send (c , WorkflowSendInput {
10891088 DestinationID : destinationID ,
@@ -1110,14 +1109,14 @@ func Send[P any](ctx DBOSContext, destinationID string, message P, topic string)
11101109 return ctx .Send (ctx , destinationID , message , topic )
11111110}
11121111
1113- // RecvInput defines the parameters for receiving messages sent to this workflow.
1114- type RecvInput struct {
1112+ // recvInput defines the parameters for receiving messages sent to this workflow.
1113+ type recvInput struct {
11151114 Topic string // Topic to listen for (empty string receives from default topic)
11161115 Timeout time.Duration // Maximum time to wait for a message
11171116}
11181117
11191118func (c * dbosContext ) Recv (_ DBOSContext , topic string , timeout time.Duration ) (any , error ) {
1120- input := RecvInput {
1119+ input := recvInput {
11211120 Topic : topic ,
11221121 Timeout : timeout ,
11231122 }
@@ -1185,15 +1184,15 @@ func SetEvent[P any](ctx DBOSContext, key string, message P) error {
11851184 return ctx .SetEvent (ctx , key , message )
11861185}
11871186
1188- // GetEventInput defines the parameters for retrieving an event from a workflow.
1189- type GetEventInput struct {
1187+ // getEventInput defines the parameters for retrieving an event from a workflow.
1188+ type getEventInput struct {
11901189 TargetWorkflowID string // Workflow ID to get the event from
11911190 Key string // Event key to retrieve
11921191 Timeout time.Duration // Maximum time to wait for the event to be set
11931192}
11941193
11951194func (c * dbosContext ) GetEvent (_ DBOSContext , targetWorkflowID string , key string , timeout time.Duration ) (any , error ) {
1196- input := GetEventInput {
1195+ input := getEventInput {
11971196 TargetWorkflowID : targetWorkflowID ,
11981197 Key : key ,
11991198 Timeout : timeout ,
0 commit comments