slaventius@odnookno.info 2 years ago
parent b1329d4845
commit 316642857c
  1. 2
      .gitignore
  2. 2
      .vscode/launch.json
  3. 4
      cmd/main.go
  4. 2
      go.mod
  5. 6
      internal/authPostman.go
  6. 2
      internal/transport/kafka/reader.go
  7. 2
      scripts/start.sh

2
.gitignore vendored

@ -1,2 +1,2 @@
authPostmanService authPostmanService
vendor # vendor

@ -14,7 +14,7 @@
"SMTP_HOST":"smtp.mail.ru", "SMTP_HOST":"smtp.mail.ru",
// "SMTP_PORT":"465", // "SMTP_PORT":"465",
"SMTP_PORT":"587", "SMTP_PORT":"587",
"SMTP_SENDER":"test3kbot@mail.ru", "SMTP_SENDER":"git.slaventius.ru/test3kbot@mail.ru",
"SMTP_PASSWORD":"hwNhMgPyBzMjwCj3hFPp", "SMTP_PASSWORD":"hwNhMgPyBzMjwCj3hFPp",
"KAFKA_PORT":"9092", "KAFKA_PORT":"9092",
}, },

@ -9,8 +9,8 @@ import (
"strconv" "strconv"
"syscall" "syscall"
server "test3k/authPostman/internal" server "git.slaventius.ru/test3k/authPostman/internal"
"test3k/authPostman/internal/config" "git.slaventius.ru/test3k/authPostman/internal/config"
) )
const ( const (

@ -1,4 +1,4 @@
module test3k/authPostman module git.slaventius.ru/test3k/authPostman
go 1.19 go 1.19

@ -7,9 +7,9 @@ import (
"net" "net"
"strconv" "strconv"
"test3k/authPostman/internal/config" "git.slaventius.ru/test3k/authPostman/internal/config"
kafka "test3k/authPostman/internal/transport/kafka" kafka "git.slaventius.ru/test3k/authPostman/internal/transport/kafka"
smtp "test3k/authPostman/internal/transport/smtp" smtp "git.slaventius.ru/test3k/authPostman/internal/transport/smtp"
) )
type msg struct { type msg struct {

@ -5,7 +5,7 @@ import (
"fmt" "fmt"
"time" "time"
"test3k/authPostman/internal/config" "git.slaventius.ru/test3k/authPostman/internal/config"
"github.com/segmentio/kafka-go" "github.com/segmentio/kafka-go"
) )

@ -2,7 +2,7 @@
export SMTP_HOST=smtp.mail.ru export SMTP_HOST=smtp.mail.ru
export SMTP_PORT=587 export SMTP_PORT=587
export SMTP_SENDER=test3kbot@mail.ru export SMTP_SENDER=git.slaventius.ru/test3kbot@mail.ru
export SMTP_PASSWORD=hwNhMgPyBzMjwCj3hFPp export SMTP_PASSWORD=hwNhMgPyBzMjwCj3hFPp
export KAFKA_HOST=127.0.0.1 export KAFKA_HOST=127.0.0.1
export KAFKA_PORT=9092 export KAFKA_PORT=9092

Loading…
Cancel
Save