Compare commits

..
Author SHA1 Message Date
phoenix 3aab2f01ab tsk-8: Workflow tweaks 2025-11-24 16:25:56 -05:00
phoenix b4359d931d tsk-8: Renamed pkg 2025-11-24 16:23:13 -05:00
phoenixandphoenix fbaa9a48f3 Go version upgrade (#7)
Reviewed-on: phoenix/textsender-models#7
Co-authored-by: phoenix <kundeng00@pm.me>
Co-committed-by: phoenix <kundeng00@pm.me>
2025-11-24 19:46:16 +00:00
phoenixandphoenix 3ab81c2b6d Service user (#6)
Reviewed-on: phoenix/textsender-models#6
Co-authored-by: phoenix <kundeng00@pm.me>
Co-committed-by: phoenix <kundeng00@pm.me>
2025-11-20 19:07:36 +00:00
phoenixandphoenix 5bfcb8e74b TwilioConfig (#5)
Reviewed-on: phoenix/textsender-models#5
Co-authored-by: phoenix <kundeng00@pm.me>
Co-committed-by: phoenix <kundeng00@pm.me>
2025-11-14 19:15:05 +00:00
phoenixandphoenix 28b29802b9 Scheduled message add event (#4)
Reviewed-on: phoenix/textsender-models#4
Co-authored-by: phoenix <kundeng00@pm.me>
Co-committed-by: phoenix <kundeng00@pm.me>
2025-11-09 18:47:46 +00:00
12 changed files with 43 additions and 14 deletions
+2 -2
View File
@@ -18,14 +18,14 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: '1.25.3'
go-version: '1.25.4'
- name: Create version
id: version
run: |
echo "Creating version"
VERSION="0.0.6"
VERSION="0.0.9"
PROJECT_COMMIT_HASH=$(git rev-parse HEAD | cut -c 1-10)
BRANCH_REF="${{ gitea.ref }}"
BRANCH_NAME=$(echo "$BRANCH_REF" | cut -d '/' -f 3)
+4 -10
View File
@@ -11,13 +11,13 @@ jobs:
uses: actions/checkout@v5
- name: Set up Go
uses: actions/setup-go@v4
uses: actions/setup-go@v6
with:
go-version: '1.25.3'
go-version: '1.25.4'
- name: Configure Git for SSH
run: |
git config --global url."git@git.kundeng.us:".insteadOf "https://git.kundeng.us/"
go env -w GOPRIVATE=git.kundeng.us/phoenix/*
git config --global url."git@${{ secrets.GIT_HOST_ROOT }}:".insteadOf "https://${{ secrets.GIT_HOST_ROOT }}/"
go env -w GOPRIVATE=${{ secrets.GIT_HOST_ROOT }}/phoenix/*
- name: Download dependencies
run: |
@@ -25,9 +25,3 @@ jobs:
- name: Run tests
run: go test -v ./... # Runs all tests in the project
- name: Run linter
uses: https://github.com/golangci/golangci-lint-action@v8
with:
go-version: '1.25.3'
version: latest
+1 -1
View File
@@ -1,6 +1,6 @@
module git.kundeng.us/phoenix/textsender-models
go 1.25.3
go 1.25.4
require (
github.com/golang-jwt/jwt/v5 v5.3.0
+21
View File
@@ -0,0 +1,21 @@
package config
import (
"fmt"
)
type TwiloConfig struct {
AccountSID string `json:"auth_sid"`
ServiceSID string `json:"service_sid"`
URI string `json:"uri"`
AuthToken string `json:"auth_token"`
Number string `json:"phone_number"`
}
func (config *TwiloConfig) PrintConfig() {
fmt.Printf("Account SID: %s\n", config.AccountSID)
fmt.Printf("Service SID: %s\n", config.ServiceSID)
fmt.Println("URI:", config.URI)
fmt.Printf("Auth Token: %s\n", config.AuthToken)
fmt.Printf("Number: %s\n", config.Number)
}
@@ -6,6 +6,6 @@ import (
type Message struct {
Id uuid.UUID `json:"id"`
Content string `json:"content"`
Content string `json:"content,omitempty"`
UserId uuid.UUID `json:"user_id"`
}
+14
View File
@@ -0,0 +1,14 @@
package user
import (
"time"
"github.com/google/uuid"
)
type ServiceUser struct {
Id uuid.UUID `json:"id"`
Username string `json:"username,omitempty"`
Passphrase string `json:"passphrase,omitempty"`
Created *time.Time `json:"date_created,omitempty"`
}