Compare commits
3 Commits
ebd25f3d8b
...
c48d84f868
Author | SHA1 | Date | |
---|---|---|---|
c48d84f868 | |||
c7db77c72b | |||
aff0a258bb |
1
third_party/grpc-proto
vendored
Submodule
1
third_party/grpc-proto
vendored
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit 1c642867c2b6deee50c9997dafe721eb2e76ebbc
|
194
third_party/grpc-proto/.gitignore
vendored
194
third_party/grpc-proto/.gitignore
vendored
@ -1,194 +0,0 @@
|
|||||||
# File created using '.gitignore Generator' for Visual Studio Code: https://bit.ly/vscode-gig
|
|
||||||
# Created by https://www.toptal.com/developers/gitignore/api/windows,visualstudiocode,goland,go
|
|
||||||
# Edit at https://www.toptal.com/developers/gitignore?templates=windows,visualstudiocode,goland,go
|
|
||||||
|
|
||||||
### Go ###
|
|
||||||
# If you prefer the allow list template instead of the deny list, see community template:
|
|
||||||
# https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore
|
|
||||||
#
|
|
||||||
# Binaries for programs and plugins
|
|
||||||
*.exe
|
|
||||||
*.exe~
|
|
||||||
*.dll
|
|
||||||
*.so
|
|
||||||
*.dylib
|
|
||||||
|
|
||||||
# Test binary, built with `go test -c`
|
|
||||||
*.test
|
|
||||||
|
|
||||||
# Output of the go coverage tool, specifically when used with LiteIDE
|
|
||||||
*.out
|
|
||||||
|
|
||||||
# Dependency directories (remove the comment below to include it)
|
|
||||||
# vendor/
|
|
||||||
|
|
||||||
# Go workspace file
|
|
||||||
go.work
|
|
||||||
|
|
||||||
### GoLand ###
|
|
||||||
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
|
|
||||||
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
|
|
||||||
|
|
||||||
# User-specific stuff
|
|
||||||
.idea/**/workspace.xml
|
|
||||||
.idea/**/tasks.xml
|
|
||||||
.idea/**/usage.statistics.xml
|
|
||||||
.idea/**/dictionaries
|
|
||||||
.idea/**/shelf
|
|
||||||
|
|
||||||
# AWS User-specific
|
|
||||||
.idea/**/aws.xml
|
|
||||||
|
|
||||||
# Generated files
|
|
||||||
.idea/**/contentModel.xml
|
|
||||||
|
|
||||||
# Sensitive or high-churn files
|
|
||||||
.idea/**/dataSources/
|
|
||||||
.idea/**/dataSources.ids
|
|
||||||
.idea/**/dataSources.local.xml
|
|
||||||
.idea/**/sqlDataSources.xml
|
|
||||||
.idea/**/dynamic.xml
|
|
||||||
.idea/**/uiDesigner.xml
|
|
||||||
.idea/**/dbnavigator.xml
|
|
||||||
|
|
||||||
# Gradle
|
|
||||||
.idea/**/gradle.xml
|
|
||||||
.idea/**/libraries
|
|
||||||
|
|
||||||
# Gradle and Maven with auto-import
|
|
||||||
# When using Gradle or Maven with auto-import, you should exclude module files,
|
|
||||||
# since they will be recreated, and may cause churn. Uncomment if using
|
|
||||||
# auto-import.
|
|
||||||
# .idea/artifacts
|
|
||||||
# .idea/compiler.xml
|
|
||||||
# .idea/jarRepositories.xml
|
|
||||||
# .idea/modules.xml
|
|
||||||
# .idea/*.iml
|
|
||||||
# .idea/modules
|
|
||||||
# *.iml
|
|
||||||
# *.ipr
|
|
||||||
|
|
||||||
# CMake
|
|
||||||
cmake-build-*/
|
|
||||||
|
|
||||||
# Mongo Explorer plugin
|
|
||||||
.idea/**/mongoSettings.xml
|
|
||||||
|
|
||||||
# File-based project format
|
|
||||||
*.iws
|
|
||||||
|
|
||||||
# IntelliJ
|
|
||||||
out/
|
|
||||||
|
|
||||||
# mpeltonen/sbt-idea plugin
|
|
||||||
.idea_modules/
|
|
||||||
|
|
||||||
# JIRA plugin
|
|
||||||
atlassian-ide-plugin.xml
|
|
||||||
|
|
||||||
# Cursive Clojure plugin
|
|
||||||
.idea/replstate.xml
|
|
||||||
|
|
||||||
# SonarLint plugin
|
|
||||||
.idea/sonarlint/
|
|
||||||
|
|
||||||
# Crashlytics plugin (for Android Studio and IntelliJ)
|
|
||||||
com_crashlytics_export_strings.xml
|
|
||||||
crashlytics.properties
|
|
||||||
crashlytics-build.properties
|
|
||||||
fabric.properties
|
|
||||||
|
|
||||||
# Editor-based Rest Client
|
|
||||||
.idea/httpRequests
|
|
||||||
|
|
||||||
# Android studio 3.1+ serialized cache file
|
|
||||||
.idea/caches/build_file_checksums.ser
|
|
||||||
|
|
||||||
### GoLand Patch ###
|
|
||||||
# Comment Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-215987721
|
|
||||||
|
|
||||||
# *.iml
|
|
||||||
# modules.xml
|
|
||||||
# .idea/misc.xml
|
|
||||||
# *.ipr
|
|
||||||
|
|
||||||
# Sonarlint plugin
|
|
||||||
# https://plugins.jetbrains.com/plugin/7973-sonarlint
|
|
||||||
.idea/**/sonarlint/
|
|
||||||
|
|
||||||
# SonarQube Plugin
|
|
||||||
# https://plugins.jetbrains.com/plugin/7238-sonarqube-community-plugin
|
|
||||||
.idea/**/sonarIssues.xml
|
|
||||||
|
|
||||||
# Markdown Navigator plugin
|
|
||||||
# https://plugins.jetbrains.com/plugin/7896-markdown-navigator-enhanced
|
|
||||||
.idea/**/markdown-navigator.xml
|
|
||||||
.idea/**/markdown-navigator-enh.xml
|
|
||||||
.idea/**/markdown-navigator/
|
|
||||||
|
|
||||||
# Cache file creation bug
|
|
||||||
# See https://youtrack.jetbrains.com/issue/JBR-2257
|
|
||||||
.idea/$CACHE_FILE$
|
|
||||||
|
|
||||||
# CodeStream plugin
|
|
||||||
# https://plugins.jetbrains.com/plugin/12206-codestream
|
|
||||||
.idea/codestream.xml
|
|
||||||
|
|
||||||
# Azure Toolkit for IntelliJ plugin
|
|
||||||
# https://plugins.jetbrains.com/plugin/8053-azure-toolkit-for-intellij
|
|
||||||
.idea/**/azureSettings.xml
|
|
||||||
|
|
||||||
### VisualStudioCode ###
|
|
||||||
.vscode/*
|
|
||||||
!.vscode/settings.json
|
|
||||||
!.vscode/tasks.json
|
|
||||||
!.vscode/launch.json
|
|
||||||
!.vscode/extensions.json
|
|
||||||
!.vscode/*.code-snippets
|
|
||||||
|
|
||||||
# Local History for Visual Studio Code
|
|
||||||
.history/
|
|
||||||
|
|
||||||
# Built Visual Studio Code Extensions
|
|
||||||
*.vsix
|
|
||||||
|
|
||||||
### VisualStudioCode Patch ###
|
|
||||||
# Ignore all local history of files
|
|
||||||
.history
|
|
||||||
.ionide
|
|
||||||
|
|
||||||
### Windows ###
|
|
||||||
# Windows thumbnail cache files
|
|
||||||
Thumbs.db
|
|
||||||
Thumbs.db:encryptable
|
|
||||||
ehthumbs.db
|
|
||||||
ehthumbs_vista.db
|
|
||||||
|
|
||||||
# Dump file
|
|
||||||
*.stackdump
|
|
||||||
|
|
||||||
# Folder config file
|
|
||||||
[Dd]esktop.ini
|
|
||||||
|
|
||||||
# Recycle Bin used on file shares
|
|
||||||
$RECYCLE.BIN/
|
|
||||||
|
|
||||||
# Windows Installer files
|
|
||||||
*.cab
|
|
||||||
*.msi
|
|
||||||
*.msix
|
|
||||||
*.msm
|
|
||||||
*.msp
|
|
||||||
|
|
||||||
# Windows shortcuts
|
|
||||||
*.lnk
|
|
||||||
|
|
||||||
# End of https://www.toptal.com/developers/gitignore/api/windows,visualstudiocode,goland,go
|
|
||||||
|
|
||||||
# Custom rules (everything added below won't be overriden by 'Generate .gitignore File' if you use 'Update' option)
|
|
||||||
|
|
||||||
.idea/*
|
|
||||||
/.run/*
|
|
||||||
|
|
||||||
|
|
||||||
*.env
|
|
74
third_party/grpc-proto/plug.proto
vendored
74
third_party/grpc-proto/plug.proto
vendored
@ -1,74 +0,0 @@
|
|||||||
syntax = "proto3";
|
|
||||||
import "google/protobuf/timestamp.proto";
|
|
||||||
|
|
||||||
option go_package = "git.anthrove.art/anthrove/plug-[REPLACE_ME]/api/gRPC";
|
|
||||||
|
|
||||||
service PlugConnector {
|
|
||||||
rpc TaskStart(PlugTaskCreation) returns (PlugTaskStatus);
|
|
||||||
rpc TaskStatus(PlugTask) returns (PlugTaskStatus);
|
|
||||||
rpc TaskCancel(PlugTask) returns (PlugTaskStatus);
|
|
||||||
rpc Ping(PingRequest) returns (PongResponse); // Added Ping endpoint
|
|
||||||
rpc SendMessage(SendMessageRequest) returns (SendMessageResponse);
|
|
||||||
rpc GetUserMessages(GetMessagesRequest) returns (GetMessagesResponse);
|
|
||||||
}
|
|
||||||
|
|
||||||
message PingRequest {
|
|
||||||
string message = 1; // Optional message field, can be removed if not needed
|
|
||||||
google.protobuf.Timestamp timestamp = 2;
|
|
||||||
}
|
|
||||||
|
|
||||||
message PongResponse {
|
|
||||||
string message = 1; // Optional message field, can be removed if not needed
|
|
||||||
google.protobuf.Timestamp timestamp = 2;
|
|
||||||
}
|
|
||||||
|
|
||||||
message PlugTaskStatus {
|
|
||||||
string task_id = 1;
|
|
||||||
PlugTaskState task_state = 2;
|
|
||||||
}
|
|
||||||
|
|
||||||
enum PlugTaskState {
|
|
||||||
UNKNOWN = 0;
|
|
||||||
STARTED = 1;
|
|
||||||
RUNNING = 2;
|
|
||||||
STOPPED = 3;
|
|
||||||
}
|
|
||||||
|
|
||||||
message PlugTask {
|
|
||||||
string task_id = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
message PlugTaskCreation {
|
|
||||||
string user_id = 1;
|
|
||||||
string user_source_name = 2;
|
|
||||||
bool deep_scrape = 3;
|
|
||||||
string api_key = 4;
|
|
||||||
string user_source_id = 5;
|
|
||||||
}
|
|
||||||
|
|
||||||
message SendMessageRequest {
|
|
||||||
string user_source_id = 1;
|
|
||||||
string message = 2;
|
|
||||||
string user_source_name = 3;
|
|
||||||
}
|
|
||||||
|
|
||||||
message SendMessageResponse {
|
|
||||||
bool success = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
message GetMessagesRequest {
|
|
||||||
string user_source_id = 1;
|
|
||||||
string user_source_name = 2;
|
|
||||||
}
|
|
||||||
|
|
||||||
message GetMessagesResponse {
|
|
||||||
repeated Message messages = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
message Message {
|
|
||||||
string from_user_source_id = 1;
|
|
||||||
string from_user_source_name = 2;
|
|
||||||
google.protobuf.Timestamp created_at = 3;
|
|
||||||
string body = 4;
|
|
||||||
string title = 5;
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user