fix: Public variables
This commit is contained in:
parent
decb5c661b
commit
cdb7a2d010
@ -130,9 +130,9 @@ func (s *server) GetUserMessages(ctx context.Context, request *gRPC.GetMessagesR
|
|||||||
messageResponse.Messages = append(messageResponse.Messages, &gRPC.Message{
|
messageResponse.Messages = append(messageResponse.Messages, &gRPC.Message{
|
||||||
FromUserSourceId: request.UserSourceId,
|
FromUserSourceId: request.UserSourceId,
|
||||||
FromUserSourceName: request.UserSourceName,
|
FromUserSourceName: request.UserSourceName,
|
||||||
CreatedAt: message.createdAt,
|
CreatedAt: message.CreatedAt,
|
||||||
Body: message.body,
|
Body: message.Body,
|
||||||
Title: message.title,
|
Title: message.Title,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4,21 +4,22 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"log"
|
||||||
|
"net"
|
||||||
|
|
||||||
"git.dragse.it/anthrove/otter-space-sdk/v2/pkg/database"
|
"git.dragse.it/anthrove/otter-space-sdk/v2/pkg/database"
|
||||||
otterError "git.dragse.it/anthrove/otter-space-sdk/v2/pkg/error"
|
otterError "git.dragse.it/anthrove/otter-space-sdk/v2/pkg/error"
|
||||||
"git.dragse.it/anthrove/otter-space-sdk/v2/pkg/models"
|
"git.dragse.it/anthrove/otter-space-sdk/v2/pkg/models"
|
||||||
"github.com/golang/protobuf/ptypes/timestamp"
|
"github.com/golang/protobuf/ptypes/timestamp"
|
||||||
"log"
|
|
||||||
"net"
|
|
||||||
|
|
||||||
pb "git.dragse.it/anthrove/plug-sdk/v2/pkg/grpc"
|
pb "git.dragse.it/anthrove/plug-sdk/v2/pkg/grpc"
|
||||||
"google.golang.org/grpc"
|
"google.golang.org/grpc"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Message struct {
|
type Message struct {
|
||||||
title string
|
Title string
|
||||||
body string
|
Body string
|
||||||
createdAt *timestamp.Timestamp
|
CreatedAt *timestamp.Timestamp
|
||||||
}
|
}
|
||||||
|
|
||||||
type TaskExecution func(ctx context.Context, database database.OtterSpace, userSourceUsername string, anthroveUser models.User, deepScrape bool, apiKey string, cancelFunction func()) error
|
type TaskExecution func(ctx context.Context, database database.OtterSpace, userSourceUsername string, anthroveUser models.User, deepScrape bool, apiKey string, cancelFunction func()) error
|
||||||
|
Reference in New Issue
Block a user