feat 初始化rpc
This commit is contained in:
parent
e1c807c978
commit
6d7314b9a3
9
biz/dal/init.go
Normal file
9
biz/dal/init.go
Normal file
@ -0,0 +1,9 @@
|
||||
package dal
|
||||
|
||||
import (
|
||||
"gitea.timerzz.com/kedaya_haitao/pusher/biz/dal/pgsql"
|
||||
)
|
||||
|
||||
func Init() {
|
||||
pgsql.Init()
|
||||
}
|
25
biz/dal/pgsql/init.go
Normal file
25
biz/dal/pgsql/init.go
Normal file
@ -0,0 +1,25 @@
|
||||
package pgsql
|
||||
|
||||
import (
|
||||
"gitea.timerzz.com/kedaya_haitao/pusher/conf"
|
||||
|
||||
"gorm.io/driver/postgres"
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
var (
|
||||
DB *gorm.DB
|
||||
err error
|
||||
)
|
||||
|
||||
func Init() {
|
||||
DB, err = gorm.Open(postgres.Open(conf.GetConf().DB.DSN),
|
||||
&gorm.Config{
|
||||
PrepareStmt: true,
|
||||
SkipDefaultTransaction: true,
|
||||
},
|
||||
)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
}
|
10
biz/handler/push/push_service.go
Normal file
10
biz/handler/push/push_service.go
Normal file
@ -0,0 +1,10 @@
|
||||
// Code generated by hertz generator.
|
||||
|
||||
package push
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/cloudwego/hertz/pkg/app"
|
||||
"github.com/cloudwego/hertz/pkg/protocol/consts"
|
||||
)
|
7
biz/router/push/middleware.go
Normal file
7
biz/router/push/middleware.go
Normal file
@ -0,0 +1,7 @@
|
||||
// Code generated by hertz generator.
|
||||
|
||||
package push
|
||||
|
||||
import (
|
||||
"github.com/cloudwego/hertz/pkg/app"
|
||||
)
|
19
biz/router/push/push.go
Normal file
19
biz/router/push/push.go
Normal file
@ -0,0 +1,19 @@
|
||||
// Code generated by hertz generator. DO NOT EDIT.
|
||||
|
||||
package push
|
||||
|
||||
import (
|
||||
push "gitea.timerzz.com/kedaya_haitao/pusher/biz/handler/push"
|
||||
"github.com/cloudwego/hertz/pkg/app/server"
|
||||
)
|
||||
|
||||
/*
|
||||
This file will register all the routes of the services in the master idl.
|
||||
And it will update automatically when you use the "update" command for the idl.
|
||||
So don't modify the contents of the file, or your code will be deleted when it is updated.
|
||||
*/
|
||||
|
||||
// Register register routes based on the IDL 'api.${HTTP Method}' annotation.
|
||||
func Register(r *server.Hertz) {
|
||||
|
||||
}
|
14
biz/router/register.go
Normal file
14
biz/router/register.go
Normal file
@ -0,0 +1,14 @@
|
||||
// Code generated by hertz generator. DO NOT EDIT.
|
||||
|
||||
package router
|
||||
|
||||
import (
|
||||
push "gitea.timerzz.com/kedaya_haitao/pusher/biz/router/push"
|
||||
"github.com/cloudwego/hertz/pkg/app/server"
|
||||
)
|
||||
|
||||
// GeneratedRegister registers routers generated by IDL.
|
||||
func GeneratedRegister(r *server.Hertz) {
|
||||
//INSERT_POINT: DO NOT DELETE THIS LINE!
|
||||
push.Register(r)
|
||||
}
|
22
biz/service/add.go
Normal file
22
biz/service/add.go
Normal file
@ -0,0 +1,22 @@
|
||||
package service
|
||||
|
||||
import (
|
||||
"context"
|
||||
config "gitea.timerzz.com/kedaya_haitao/pusher/kitex_gen/config"
|
||||
)
|
||||
|
||||
type AddService struct {
|
||||
ctx context.Context
|
||||
}
|
||||
|
||||
// NewAddService new AddService
|
||||
func NewAddService(ctx context.Context) *AddService {
|
||||
return &AddService{ctx: ctx}
|
||||
}
|
||||
|
||||
// Run create note info
|
||||
func (s *AddService) Run(req *config.PushConfig) error {
|
||||
// Finish your business logic.
|
||||
|
||||
return nil
|
||||
}
|
22
biz/service/add_test.go
Normal file
22
biz/service/add_test.go
Normal file
@ -0,0 +1,22 @@
|
||||
package service
|
||||
|
||||
import (
|
||||
"context"
|
||||
config "gitea.timerzz.com/kedaya_haitao/pusher/kitex_gen/config"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestAdd_Run(t *testing.T) {
|
||||
ctx := context.Background()
|
||||
s := NewAddService(ctx)
|
||||
// init req and assert value
|
||||
|
||||
req := &config.PushConfig{}
|
||||
|
||||
err := s.Run(req)
|
||||
if err != nil {
|
||||
t.Errorf("unexpected error: %v", err)
|
||||
}
|
||||
// todo: edit your unit test
|
||||
|
||||
}
|
20
biz/service/list.go
Normal file
20
biz/service/list.go
Normal file
@ -0,0 +1,20 @@
|
||||
package service
|
||||
|
||||
import (
|
||||
"context"
|
||||
push "gitea.timerzz.com/kedaya_haitao/pusher/kitex_gen/push"
|
||||
)
|
||||
|
||||
type ListService struct {
|
||||
ctx context.Context
|
||||
} // NewListService new ListService
|
||||
func NewListService(ctx context.Context) *ListService {
|
||||
return &ListService{ctx: ctx}
|
||||
}
|
||||
|
||||
// Run create note info
|
||||
func (s *ListService) Run(req *push.ListPusherRequest) (resp *push.ListPusherResponse, err error) {
|
||||
// Finish your business logic.
|
||||
|
||||
return
|
||||
}
|
21
biz/service/list_test.go
Normal file
21
biz/service/list_test.go
Normal file
@ -0,0 +1,21 @@
|
||||
package service
|
||||
|
||||
import (
|
||||
"context"
|
||||
push "gitea.timerzz.com/kedaya_haitao/pusher/kitex_gen/push"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestList_Run(t *testing.T) {
|
||||
ctx := context.Background()
|
||||
s := NewListService(ctx)
|
||||
// init req and assert value
|
||||
|
||||
req := &push.ListPusherRequest{}
|
||||
resp, err := s.Run(req)
|
||||
t.Logf("err: %v", err)
|
||||
t.Logf("resp: %v", resp)
|
||||
|
||||
// todo: edit your unit test
|
||||
|
||||
}
|
20
biz/service/push.go
Normal file
20
biz/service/push.go
Normal file
@ -0,0 +1,20 @@
|
||||
package service
|
||||
|
||||
import (
|
||||
"context"
|
||||
push "gitea.timerzz.com/kedaya_haitao/pusher/kitex_gen/push"
|
||||
)
|
||||
|
||||
type PushService struct {
|
||||
ctx context.Context
|
||||
} // NewPushService new PushService
|
||||
func NewPushService(ctx context.Context) *PushService {
|
||||
return &PushService{ctx: ctx}
|
||||
}
|
||||
|
||||
// Run create note info
|
||||
func (s *PushService) Run(req *push.PushReq) (resp *push.PushResp, err error) {
|
||||
// Finish your business logic.
|
||||
|
||||
return
|
||||
}
|
21
biz/service/push_test.go
Normal file
21
biz/service/push_test.go
Normal file
@ -0,0 +1,21 @@
|
||||
package service
|
||||
|
||||
import (
|
||||
"context"
|
||||
push "gitea.timerzz.com/kedaya_haitao/pusher/kitex_gen/push"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestPush_Run(t *testing.T) {
|
||||
ctx := context.Background()
|
||||
s := NewPushService(ctx)
|
||||
// init req and assert value
|
||||
|
||||
req := &push.PushReq{}
|
||||
resp, err := s.Run(req)
|
||||
t.Logf("err: %v", err)
|
||||
t.Logf("resp: %v", resp)
|
||||
|
||||
// todo: edit your unit test
|
||||
|
||||
}
|
7
build.sh
Normal file
7
build.sh
Normal file
@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
RUN_NAME="pusher"
|
||||
mkdir -p output/bin output/conf
|
||||
cp script/* output/
|
||||
cp -r conf/* output/conf
|
||||
chmod +x output/bootstrap.sh
|
||||
go build -o output/bin/${RUN_NAME}
|
105
conf/conf.go
Normal file
105
conf/conf.go
Normal file
@ -0,0 +1,105 @@
|
||||
package conf
|
||||
|
||||
import (
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"sync"
|
||||
|
||||
"github.com/cloudwego/kitex/pkg/klog"
|
||||
"github.com/kr/pretty"
|
||||
"gopkg.in/validator.v2"
|
||||
"gopkg.in/yaml.v2"
|
||||
)
|
||||
|
||||
var (
|
||||
conf *Config
|
||||
once sync.Once
|
||||
)
|
||||
|
||||
type Config struct {
|
||||
Env string
|
||||
Kitex Kitex `yaml:"kitex"`
|
||||
DB DB `yaml:"db"`
|
||||
Registry Registry `yaml:"registry"`
|
||||
}
|
||||
|
||||
type DB struct {
|
||||
DSN string `yaml:"dsn"`
|
||||
}
|
||||
|
||||
type Kitex struct {
|
||||
Service string `yaml:"service"`
|
||||
Address string `yaml:"address"`
|
||||
EnablePprof bool `yaml:"enable_pprof"`
|
||||
EnableGzip bool `yaml:"enable_gzip"`
|
||||
EnableAccessLog bool `yaml:"enable_access_log"`
|
||||
LogLevel string `yaml:"log_level"`
|
||||
LogFileName string `yaml:"log_file_name"`
|
||||
LogMaxSize int `yaml:"log_max_size"`
|
||||
LogMaxBackups int `yaml:"log_max_backups"`
|
||||
LogMaxAge int `yaml:"log_max_age"`
|
||||
}
|
||||
|
||||
type Registry struct {
|
||||
RegistryAddress []string `yaml:"registry_address"`
|
||||
Username string `yaml:"username"`
|
||||
Password string `yaml:"password"`
|
||||
}
|
||||
|
||||
// GetConf gets configuration instance
|
||||
func GetConf() *Config {
|
||||
once.Do(initConf)
|
||||
return conf
|
||||
}
|
||||
|
||||
func initConf() {
|
||||
prefix := "conf"
|
||||
confFileRelPath := filepath.Join(prefix, filepath.Join(GetEnv(), "conf.yaml"))
|
||||
content, err := ioutil.ReadFile(confFileRelPath)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
conf = new(Config)
|
||||
err = yaml.Unmarshal(content, conf)
|
||||
if err != nil {
|
||||
klog.Error("parse yaml error - %v", err)
|
||||
panic(err)
|
||||
}
|
||||
if err = validator.Validate(conf); err != nil {
|
||||
klog.Error("validate config error - %v", err)
|
||||
panic(err)
|
||||
}
|
||||
conf.Env = GetEnv()
|
||||
pretty.Printf("%+v\n", conf)
|
||||
}
|
||||
|
||||
func GetEnv() string {
|
||||
e := os.Getenv("GO_ENV")
|
||||
if len(e) == 0 {
|
||||
return "test"
|
||||
}
|
||||
return e
|
||||
}
|
||||
|
||||
func LogLevel() klog.Level {
|
||||
level := GetConf().Kitex.LogLevel
|
||||
switch level {
|
||||
case "trace":
|
||||
return klog.LevelTrace
|
||||
case "debug":
|
||||
return klog.LevelDebug
|
||||
case "info":
|
||||
return klog.LevelInfo
|
||||
case "notice":
|
||||
return klog.LevelNotice
|
||||
case "warn":
|
||||
return klog.LevelWarn
|
||||
case "error":
|
||||
return klog.LevelError
|
||||
case "fatal":
|
||||
return klog.LevelFatal
|
||||
default:
|
||||
return klog.LevelInfo
|
||||
}
|
||||
}
|
17
conf/dev/conf.yaml
Normal file
17
conf/dev/conf.yaml
Normal file
@ -0,0 +1,17 @@
|
||||
kitex:
|
||||
service: "pusher"
|
||||
address: ":8080"
|
||||
log_level: info
|
||||
log_file_name: "log/kitex.log"
|
||||
log_max_size: 10
|
||||
log_max_age: 3
|
||||
log_max_backups: 50
|
||||
|
||||
registry:
|
||||
registry_address:
|
||||
- 127.0.0.1:2379
|
||||
username: ""
|
||||
password: ""
|
||||
|
||||
db:
|
||||
dsn: "gorm:gorm@tcp(127.0.0.1:3306)/gorm?charset=utf8mb4&parseTime=True&loc=Local"
|
17
conf/online/conf.yaml
Normal file
17
conf/online/conf.yaml
Normal file
@ -0,0 +1,17 @@
|
||||
kitex:
|
||||
service: "pusher"
|
||||
address: ":8080"
|
||||
log_level: info
|
||||
log_file_name: "log/kitex.log"
|
||||
log_max_size: 10
|
||||
log_max_age: 3
|
||||
log_max_backups: 50
|
||||
|
||||
registry:
|
||||
registry_address:
|
||||
- 127.0.0.1:2379
|
||||
username: ""
|
||||
password: ""
|
||||
|
||||
db:
|
||||
dsn: "gorm:gorm@tcp(127.0.0.1:3306)/gorm?charset=utf8mb4&parseTime=True&loc=Local"
|
17
conf/test/conf.yaml
Normal file
17
conf/test/conf.yaml
Normal file
@ -0,0 +1,17 @@
|
||||
kitex:
|
||||
service: "pusher"
|
||||
address: ":8080"
|
||||
log_level: info
|
||||
log_file_name: "log/kitex.log"
|
||||
log_max_size: 10
|
||||
log_max_age: 3
|
||||
log_max_backups: 50
|
||||
|
||||
registry:
|
||||
registry_address:
|
||||
- 127.0.0.1:2379
|
||||
username: ""
|
||||
password: ""
|
||||
|
||||
db:
|
||||
dsn: "gorm:gorm@tcp(127.0.0.1:3306)/gorm?charset=utf8mb4&parseTime=True&loc=Local"
|
77
go.mod
Normal file
77
go.mod
Normal file
@ -0,0 +1,77 @@
|
||||
module gitea.timerzz.com/kedaya_haitao/pusher
|
||||
|
||||
go 1.22.2
|
||||
|
||||
replace github.com/apache/thrift => github.com/apache/thrift v0.13.0
|
||||
|
||||
require (
|
||||
github.com/apache/thrift v0.13.0
|
||||
github.com/cloudwego/hertz v0.9.0
|
||||
github.com/cloudwego/kitex v0.9.1
|
||||
github.com/kitex-contrib/obs-opentelemetry/logging/logrus v0.0.0-20240515092919-1f776656cb66
|
||||
github.com/kr/pretty v0.3.0
|
||||
go.uber.org/zap v1.27.0
|
||||
gopkg.in/natefinch/lumberjack.v2 v2.0.0
|
||||
gopkg.in/validator.v2 v2.0.1
|
||||
gopkg.in/yaml.v2 v2.3.0
|
||||
gorm.io/driver/postgres v1.5.7
|
||||
gorm.io/gorm v1.25.10
|
||||
)
|
||||
|
||||
require (
|
||||
github.com/bytedance/go-tagexpr/v2 v2.9.2 // indirect
|
||||
github.com/bytedance/gopkg v0.0.0-20230728082804-614d0af6619b // indirect
|
||||
github.com/bytedance/sonic v1.11.2 // indirect
|
||||
github.com/chenzhuoyu/base64x v0.0.0-20230717121745-296ad89f973d // indirect
|
||||
github.com/chenzhuoyu/iasm v0.9.1 // indirect
|
||||
github.com/choleraehyq/pid v0.0.18 // indirect
|
||||
github.com/cloudwego/configmanager v0.2.0 // indirect
|
||||
github.com/cloudwego/dynamicgo v0.2.0 // indirect
|
||||
github.com/cloudwego/fastpb v0.0.4 // indirect
|
||||
github.com/cloudwego/frugal v0.1.14 // indirect
|
||||
github.com/cloudwego/localsession v0.0.2 // indirect
|
||||
github.com/cloudwego/netpoll v0.6.0 // indirect
|
||||
github.com/cloudwego/thriftgo v0.3.6 // indirect
|
||||
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
|
||||
github.com/fatih/structtag v1.2.0 // indirect
|
||||
github.com/fsnotify/fsnotify v1.5.4 // indirect
|
||||
github.com/golang/protobuf v1.5.2 // indirect
|
||||
github.com/google/pprof v0.0.0-20220608213341-c488b8fa1db3 // indirect
|
||||
github.com/henrylee2cn/ameda v1.4.10 // indirect
|
||||
github.com/henrylee2cn/goutil v0.0.0-20210127050712-89660552f6f8 // indirect
|
||||
github.com/iancoleman/strcase v0.2.0 // indirect
|
||||
github.com/jackc/pgpassfile v1.0.0 // indirect
|
||||
github.com/jackc/pgservicefile v0.0.0-20221227161230-091c0ba34f0a // indirect
|
||||
github.com/jackc/pgx/v5 v5.4.3 // indirect
|
||||
github.com/jhump/protoreflect v1.8.2 // indirect
|
||||
github.com/jinzhu/inflection v1.0.0 // indirect
|
||||
github.com/jinzhu/now v1.1.5 // indirect
|
||||
github.com/json-iterator/go v1.1.12 // indirect
|
||||
github.com/klauspost/cpuid/v2 v2.2.4 // indirect
|
||||
github.com/kr/text v0.2.0 // indirect
|
||||
github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421 // indirect
|
||||
github.com/modern-go/gls v0.0.0-20220109145502-612d0167dce5 // indirect
|
||||
github.com/modern-go/reflect2 v1.0.2 // indirect
|
||||
github.com/nyaruka/phonenumbers v1.0.55 // indirect
|
||||
github.com/oleiade/lane v1.0.1 // indirect
|
||||
github.com/pmezard/go-difflib v1.0.0 // indirect
|
||||
github.com/rogpeppe/go-internal v1.6.1 // indirect
|
||||
github.com/sirupsen/logrus v1.9.2 // indirect
|
||||
github.com/stretchr/testify v1.8.4 // indirect
|
||||
github.com/tidwall/gjson v1.14.4 // indirect
|
||||
github.com/tidwall/match v1.1.1 // indirect
|
||||
github.com/tidwall/pretty v1.2.0 // indirect
|
||||
github.com/twitchyliquid64/golang-asm v0.15.1 // indirect
|
||||
go.opentelemetry.io/otel v1.19.0 // indirect
|
||||
go.opentelemetry.io/otel/trace v1.19.0 // indirect
|
||||
go.uber.org/multierr v1.10.0 // indirect
|
||||
golang.org/x/arch v0.2.0 // indirect
|
||||
golang.org/x/crypto v0.14.0 // indirect
|
||||
golang.org/x/net v0.17.0 // indirect
|
||||
golang.org/x/sync v0.1.0 // indirect
|
||||
golang.org/x/sys v0.13.0 // indirect
|
||||
golang.org/x/text v0.13.0 // indirect
|
||||
google.golang.org/genproto v0.0.0-20210513213006-bf773b8c8384 // indirect
|
||||
google.golang.org/protobuf v1.28.1 // indirect
|
||||
gopkg.in/yaml.v3 v3.0.1 // indirect
|
||||
)
|
489
go.sum
Normal file
489
go.sum
Normal file
@ -0,0 +1,489 @@
|
||||
cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
|
||||
dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU=
|
||||
gioui.org v0.0.0-20210308172011-57750fc8a0a6/go.mod h1:RSH6KIUZ0p2xy5zHDxgAM4zumjgTw83q2ge/PI+yyw8=
|
||||
git.sr.ht/~sbinet/gg v0.3.1/go.mod h1:KGYtlADtqsqANL9ueOFkWymvzUvLMQllU5Ixo+8v3pc=
|
||||
github.com/BurntSushi/toml v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ=
|
||||
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
|
||||
github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo=
|
||||
github.com/ajstarks/deck v0.0.0-20200831202436-30c9fc6549a9/go.mod h1:JynElWSGnm/4RlzPXRlREEwqTHAN3T56Bv2ITsFT3gY=
|
||||
github.com/ajstarks/deck/generate v0.0.0-20210309230005-c3f852c02e19/go.mod h1:T13YZdzov6OU0A1+RfKZiZN9ca6VeKdBdyDV+BY97Tk=
|
||||
github.com/ajstarks/svgo v0.0.0-20180226025133-644b8db467af/go.mod h1:K08gAheRH3/J6wwsYMMT4xOr94bZjxIelGM0+d/wbFw=
|
||||
github.com/ajstarks/svgo v0.0.0-20211024235047-1546f124cd8b/go.mod h1:1KcenG0jGWcpt8ov532z81sp/kMMUG485J2InIOyADM=
|
||||
github.com/apache/thrift v0.13.0 h1:5hryIiq9gtn+MiLVn0wP37kb/uTeRZgN08WoCsAhIhI=
|
||||
github.com/apache/thrift v0.13.0/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ=
|
||||
github.com/boombuler/barcode v1.0.0/go.mod h1:paBWMcWSl3LHKBqUq+rly7CNSldXjb2rDl3JlRe0mD8=
|
||||
github.com/boombuler/barcode v1.0.1/go.mod h1:paBWMcWSl3LHKBqUq+rly7CNSldXjb2rDl3JlRe0mD8=
|
||||
github.com/brianvoe/gofakeit/v6 v6.16.0/go.mod h1:Ow6qC71xtwm79anlwKRlWZW6zVq9D2XHE4QSSMP/rU8=
|
||||
github.com/bytedance/go-tagexpr/v2 v2.9.2 h1:QySJaAIQgOEDQBLS3x9BxOWrnhqu5sQ+f6HaZIxD39I=
|
||||
github.com/bytedance/go-tagexpr/v2 v2.9.2/go.mod h1:5qsx05dYOiUXOUgnQ7w3Oz8BYs2qtM/bJokdLb79wRM=
|
||||
github.com/bytedance/gopkg v0.0.0-20220413063733-65bf48ffb3a7/go.mod h1:2ZlV9BaUH4+NXIBF0aMdKKAnHTzqH+iMU4KUjAbL23Q=
|
||||
github.com/bytedance/gopkg v0.0.0-20220509134931-d1878f638986/go.mod h1:2ZlV9BaUH4+NXIBF0aMdKKAnHTzqH+iMU4KUjAbL23Q=
|
||||
github.com/bytedance/gopkg v0.0.0-20220531084716-665b4f21126f/go.mod h1:2ZlV9BaUH4+NXIBF0aMdKKAnHTzqH+iMU4KUjAbL23Q=
|
||||
github.com/bytedance/gopkg v0.0.0-20230531144706-a12972768317/go.mod h1:FtQG3YbQG9L/91pbKSw787yBQPutC+457AvDW77fgUQ=
|
||||
github.com/bytedance/gopkg v0.0.0-20230728082804-614d0af6619b h1:R6PWoQtxEMpWJPHnpci+9LgFxCS7iJCfOGBvCgZeTKI=
|
||||
github.com/bytedance/gopkg v0.0.0-20230728082804-614d0af6619b/go.mod h1:FtQG3YbQG9L/91pbKSw787yBQPutC+457AvDW77fgUQ=
|
||||
github.com/bytedance/mockey v1.2.0/go.mod h1:+Jm/fzWZAuhEDrPXVjDf/jLM2BlLXJkwk94zf2JZ3X4=
|
||||
github.com/bytedance/mockey v1.2.1/go.mod h1:+Jm/fzWZAuhEDrPXVjDf/jLM2BlLXJkwk94zf2JZ3X4=
|
||||
github.com/bytedance/mockey v1.2.7 h1:8j4yCqS5OmMe2dQCxPit4FVkwTK9nrykIgbOZN3s28o=
|
||||
github.com/bytedance/mockey v1.2.7/go.mod h1:bNrUnI1u7+pAc0TYDgPATM+wF2yzHxmNH+iDXg4AOCU=
|
||||
github.com/bytedance/sonic v1.5.0/go.mod h1:ED5hyg4y6t3/9Ku1R6dU/4KyJ48DZ4jPhfY1O2AihPM=
|
||||
github.com/bytedance/sonic v1.8.1/go.mod h1:i736AoUSYt75HyZLoJW9ERYxcy6eaN6h4BZXU064P/U=
|
||||
github.com/bytedance/sonic v1.8.8/go.mod h1:i736AoUSYt75HyZLoJW9ERYxcy6eaN6h4BZXU064P/U=
|
||||
github.com/bytedance/sonic v1.10.0-rc/go.mod h1:ElCzW+ufi8qKqNW0FY314xriJhyJhuoJ3gFZdAHF7NM=
|
||||
github.com/bytedance/sonic v1.10.2/go.mod h1:iZcSUejdk5aukTND/Eu/ivjQuEL0Cu9/rf50Hi0u/g4=
|
||||
github.com/bytedance/sonic v1.11.2 h1:ywfwo0a/3j9HR8wsYGWsIWl2mvRsI950HyoxiBERw5A=
|
||||
github.com/bytedance/sonic v1.11.2/go.mod h1:iZcSUejdk5aukTND/Eu/ivjQuEL0Cu9/rf50Hi0u/g4=
|
||||
github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
|
||||
github.com/chenzhuoyu/base64x v0.0.0-20211019084208-fb5309c8db06/go.mod h1:DH46F32mSOjUmXrMHnKwZdA8wcEefY7UVqBKYGjpdQY=
|
||||
github.com/chenzhuoyu/base64x v0.0.0-20221115062448-fe3a3abad311/go.mod h1:b583jCggY9gE99b6G5LEC39OIiVsWj+R97kbl5odCEk=
|
||||
github.com/chenzhuoyu/base64x v0.0.0-20230717121745-296ad89f973d h1:77cEq6EriyTZ0g/qfRdp61a3Uu/AWrgIq2s0ClJV1g0=
|
||||
github.com/chenzhuoyu/base64x v0.0.0-20230717121745-296ad89f973d/go.mod h1:8EPpVsBuRksnlj1mLy4AWzRNQYxauNi62uWcE3to6eA=
|
||||
github.com/chenzhuoyu/iasm v0.0.0-20220818063314-28c361dae733/go.mod h1:wOQ0nsbeOLa2awv8bUYFW/EHXbjQMlZ10fAlXDB2sz8=
|
||||
github.com/chenzhuoyu/iasm v0.0.0-20230222070914-0b1b64b0e762/go.mod h1:Xjy2NpN3h7aUqeqM+woSuuvxmIe6+DDsiNLIrkAmYog=
|
||||
github.com/chenzhuoyu/iasm v0.9.0/go.mod h1:Xjy2NpN3h7aUqeqM+woSuuvxmIe6+DDsiNLIrkAmYog=
|
||||
github.com/chenzhuoyu/iasm v0.9.1 h1:tUHQJXo3NhBqw6s33wkGn9SP3bvrWLdlVIJ3hQBL7P0=
|
||||
github.com/chenzhuoyu/iasm v0.9.1/go.mod h1:Xjy2NpN3h7aUqeqM+woSuuvxmIe6+DDsiNLIrkAmYog=
|
||||
github.com/choleraehyq/pid v0.0.13/go.mod h1:uhzeFgxJZWQsZulelVQZwdASxQ9TIPZYL4TPkQMtL/U=
|
||||
github.com/choleraehyq/pid v0.0.15/go.mod h1:uhzeFgxJZWQsZulelVQZwdASxQ9TIPZYL4TPkQMtL/U=
|
||||
github.com/choleraehyq/pid v0.0.16/go.mod h1:uhzeFgxJZWQsZulelVQZwdASxQ9TIPZYL4TPkQMtL/U=
|
||||
github.com/choleraehyq/pid v0.0.18 h1:O7LLxPoOyt3YtonlCC8BmNrF9P6Hc8B509UOqlPSVhw=
|
||||
github.com/choleraehyq/pid v0.0.18/go.mod h1:uhzeFgxJZWQsZulelVQZwdASxQ9TIPZYL4TPkQMtL/U=
|
||||
github.com/chzyer/logex v1.2.0/go.mod h1:9+9sk7u7pGNWYMkh0hdiL++6OeibzJccyQU4p4MedaY=
|
||||
github.com/chzyer/readline v1.5.0/go.mod h1:x22KAscuvRqlLoK9CsoYsmxoXZMMFVyOl86cAH8qUic=
|
||||
github.com/chzyer/test v0.0.0-20210722231415-061457976a23/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU=
|
||||
github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw=
|
||||
github.com/cloudwego/configmanager v0.2.0 h1:niVpVg+wQ+npNqnH3dup96SMbR02Pk+tNErubYCJqKo=
|
||||
github.com/cloudwego/configmanager v0.2.0/go.mod h1:FLIQTjxsZRGjnmDhTttWQTy6f6DghPTatfBVOs2gQLk=
|
||||
github.com/cloudwego/dynamicgo v0.1.0/go.mod h1:Mdsz0XGsIImi15vxhZaHZpspNChEmBMIiWkUfD6JDKg=
|
||||
github.com/cloudwego/dynamicgo v0.2.0 h1:2mIqwYjS4TvjIov+dV5/y4OO33x/YMdfaeiRgXiineg=
|
||||
github.com/cloudwego/dynamicgo v0.2.0/go.mod h1:zTbRLRyBdP+OLalvkiwWPnvg84v1UungzT7iuL/2Qgc=
|
||||
github.com/cloudwego/fastpb v0.0.3/go.mod h1:/V13XFTq2TUkxj2qWReV8MwfPC4NnPcy6FsrojnsSG0=
|
||||
github.com/cloudwego/fastpb v0.0.4 h1:/ROVVfoFtpfc+1pkQLzGs+azjxUbSOsAqSY4tAAx4mg=
|
||||
github.com/cloudwego/fastpb v0.0.4/go.mod h1:/V13XFTq2TUkxj2qWReV8MwfPC4NnPcy6FsrojnsSG0=
|
||||
github.com/cloudwego/frugal v0.1.3/go.mod h1:b981ViPYdhI56aFYsoMjl9kv6yeqYSO+iEz2jrhkCgI=
|
||||
github.com/cloudwego/frugal v0.1.6/go.mod h1:9ElktKsh5qd2zDBQ5ENhPSQV7F2dZ/mXlr1eaZGDBFs=
|
||||
github.com/cloudwego/frugal v0.1.14 h1:vkjQMb5OsPL779RfMdLI4YJZsOH8fR0ewJpTuAVSeiQ=
|
||||
github.com/cloudwego/frugal v0.1.14/go.mod h1:zFBA63ne4+Tz4qayRZFZf+ZVwGqTzb+1Xe3ZDCq+Wfc=
|
||||
github.com/cloudwego/hertz v0.9.0 h1:vmgSMSBx3qgB+ZnqbuEwfy+BFMS1cMr1ZSddif9zZ3A=
|
||||
github.com/cloudwego/hertz v0.9.0/go.mod h1:WliNtVbwihWHHgAaIQEbVXl0O3aWj0ks1eoPrcEAnjs=
|
||||
github.com/cloudwego/kitex v0.3.2/go.mod h1:/XD07VpUD9VQWmmoepASgZ6iw//vgWikVA9MpzLC5i0=
|
||||
github.com/cloudwego/kitex v0.4.4/go.mod h1:3FcH5h9Qw+dhRljSzuGSpWuThttA8DvK0BsL7HUYydo=
|
||||
github.com/cloudwego/kitex v0.6.1/go.mod h1:zI1GBrjT0qloTikcCfQTgxg3Ws+yQMyaChEEOcGNUvA=
|
||||
github.com/cloudwego/kitex v0.9.1 h1:4Rkmngk4b5nHQ6sPM9BNgnW5cb9niB7hzzQBkkfa8/s=
|
||||
github.com/cloudwego/kitex v0.9.1/go.mod h1:CBMfRKBuZ9EeSEfeoveC7cR6JG4lY1Bpo+d0Eb7zUDA=
|
||||
github.com/cloudwego/localsession v0.0.2 h1:N9/IDtCPj1fCL9bCTP+DbXx3f40YjVYWcwkJG0YhQkY=
|
||||
github.com/cloudwego/localsession v0.0.2/go.mod h1:kiJxmvAcy4PLgKtEnPS5AXed3xCiXcs7Z+KBHP72Wv8=
|
||||
github.com/cloudwego/netpoll v0.2.4/go.mod h1:1T2WVuQ+MQw6h6DpE45MohSvDTKdy2DlzCx2KsnPI4E=
|
||||
github.com/cloudwego/netpoll v0.3.1/go.mod h1:1T2WVuQ+MQw6h6DpE45MohSvDTKdy2DlzCx2KsnPI4E=
|
||||
github.com/cloudwego/netpoll v0.4.0/go.mod h1:xVefXptcyheopwNDZjDPcfU6kIjZXZ4nY550k1yH9eQ=
|
||||
github.com/cloudwego/netpoll v0.5.0/go.mod h1:xVefXptcyheopwNDZjDPcfU6kIjZXZ4nY550k1yH9eQ=
|
||||
github.com/cloudwego/netpoll v0.6.0 h1:JRMkrA1o8k/4quxzg6Q1XM+zIhwZsyoWlq6ef+ht31U=
|
||||
github.com/cloudwego/netpoll v0.6.0/go.mod h1:xVefXptcyheopwNDZjDPcfU6kIjZXZ4nY550k1yH9eQ=
|
||||
github.com/cloudwego/thriftgo v0.1.2/go.mod h1:LzeafuLSiHA9JTiWC8TIMIq64iadeObgRUhmVG1OC/w=
|
||||
github.com/cloudwego/thriftgo v0.2.4/go.mod h1:8i9AF5uDdWHGqzUhXDlubCjx4MEfKvWXGQlMWyR0tM4=
|
||||
github.com/cloudwego/thriftgo v0.2.7/go.mod h1:8i9AF5uDdWHGqzUhXDlubCjx4MEfKvWXGQlMWyR0tM4=
|
||||
github.com/cloudwego/thriftgo v0.2.11/go.mod h1:dAyXHEmKXo0LfMCrblVEY3mUZsdeuA5+i0vF5f09j7E=
|
||||
github.com/cloudwego/thriftgo v0.3.6 h1:gHHW8Ag3cAEQ/awP4emTJiRPr5yQjbANhcsmV8/Epbw=
|
||||
github.com/cloudwego/thriftgo v0.3.6/go.mod h1:29ukiySoAMd0vXMYIduAY9dph/7dmChvOS11YLotFb8=
|
||||
github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk=
|
||||
github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
|
||||
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM=
|
||||
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||
github.com/dlclark/regexp2 v1.10.0/go.mod h1:DHkYz0B9wPfa6wondMfaivmHpzrQ3v9q8cnmRbL6yW8=
|
||||
github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
|
||||
github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
|
||||
github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk=
|
||||
github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c=
|
||||
github.com/fatih/structtag v1.2.0 h1:/OdNE99OxoI/PqaW/SuSK9uxxT3f/tcSZgon/ssNSx4=
|
||||
github.com/fatih/structtag v1.2.0/go.mod h1:mBJUNpUnHmRKrKlQQlmCrh5PuhftFbNv8Ys4/aAZl94=
|
||||
github.com/fogleman/gg v1.2.1-0.20190220221249-0403632d5b90/go.mod h1:R/bRT+9gY/C5z7JzPU0zXsXHKM4/ayA+zqcVNZzPa1k=
|
||||
github.com/fogleman/gg v1.3.0/go.mod h1:R/bRT+9gY/C5z7JzPU0zXsXHKM4/ayA+zqcVNZzPa1k=
|
||||
github.com/fsnotify/fsnotify v1.5.4 h1:jRbGcIw6P2Meqdwuo0H1p6JVLbL5DHKAKlYndzMwVZI=
|
||||
github.com/fsnotify/fsnotify v1.5.4/go.mod h1:OVB6XrOHzAwXMpEM7uPOzcehqUV2UqJxmVXmkdnm1bU=
|
||||
github.com/go-fonts/dejavu v0.1.0/go.mod h1:4Wt4I4OU2Nq9asgDCteaAaWZOV24E+0/Pwo0gppep4g=
|
||||
github.com/go-fonts/latin-modern v0.2.0/go.mod h1:rQVLdDMK+mK1xscDwsqM5J8U2jrRa3T0ecnM9pNujks=
|
||||
github.com/go-fonts/liberation v0.1.1/go.mod h1:K6qoJYypsmfVjWg8KOVDQhLc8UDgIK2HYqyqAO9z7GY=
|
||||
github.com/go-fonts/liberation v0.2.0/go.mod h1:K6qoJYypsmfVjWg8KOVDQhLc8UDgIK2HYqyqAO9z7GY=
|
||||
github.com/go-fonts/stix v0.1.0/go.mod h1:w/c1f0ldAUlJmLBvlbkvVXLAD+tAMqobIIQpmnUIzUY=
|
||||
github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU=
|
||||
github.com/go-latex/latex v0.0.0-20210118124228-b3d85cf34e07/go.mod h1:CO1AlKB2CSIqUrmQPqA0gdRIlnLEY0gK5JGjh37zN5U=
|
||||
github.com/go-latex/latex v0.0.0-20210823091927-c0d11ff05a81/go.mod h1:SX0U8uGpxhq9o2S/CELCSUxEWWAuoCUcVCQWv7G2OCk=
|
||||
github.com/go-logr/logr v1.3.0 h1:2y3SDp0ZXuc6/cjLSZ+Q3ir+QB9T/iG5yYRXqsagWSY=
|
||||
github.com/go-logr/logr v1.3.0/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY=
|
||||
github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag=
|
||||
github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE=
|
||||
github.com/go-pdf/fpdf v0.5.0/go.mod h1:HzcnA+A23uwogo0tp9yU+l3V+KXhiESpt1PMayhOh5M=
|
||||
github.com/go-pdf/fpdf v0.6.0/go.mod h1:HzcnA+A23uwogo0tp9yU+l3V+KXhiESpt1PMayhOh5M=
|
||||
github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q=
|
||||
github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0/go.mod h1:E/TSTwGwJL78qG/PmXZO1EjYhfJinVAhrmmHX6Z8B9k=
|
||||
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q=
|
||||
github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A=
|
||||
github.com/golang/mock v1.6.0 h1:ErTB+efbowRARo13NNdxyJji2egdxLGQhRaY+DUumQc=
|
||||
github.com/golang/mock v1.6.0/go.mod h1:p6yTPP+5HYm5mzsMV8JkE6ZKdX+/wYM6Hr+LicevLPs=
|
||||
github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
|
||||
github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
|
||||
github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8=
|
||||
github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA=
|
||||
github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs=
|
||||
github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w=
|
||||
github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0=
|
||||
github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8=
|
||||
github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI=
|
||||
github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk=
|
||||
github.com/golang/protobuf v1.5.2 h1:ROPKBNFfQgOUMifHyP+KYbvpjbdoFNs+aK7DXlji0Tw=
|
||||
github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY=
|
||||
github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M=
|
||||
github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
|
||||
github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
|
||||
github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||
github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||
github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||
github.com/google/go-cmp v0.5.7/go.mod h1:n+brtR0CgQNWTVd5ZUFpTBC8YFBDLK/h/bpaJ8/DtOE=
|
||||
github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38=
|
||||
github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
|
||||
github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=
|
||||
github.com/google/pprof v0.0.0-20220608213341-c488b8fa1db3 h1:mpL/HvfIgIejhVwAfxBQkwEjlhP5o0O9RAeTAjpwzxc=
|
||||
github.com/google/pprof v0.0.0-20220608213341-c488b8fa1db3/go.mod h1:gSuNB+gJaOiQKLEZ+q+PK9Mq3SOzhRcw2GsGS/FhYDk=
|
||||
github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI=
|
||||
github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
|
||||
github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1 h1:EGx4pi6eqNxGaHF6qqu48+N2wcFQ5qg5FXgOdqsJ5d8=
|
||||
github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY=
|
||||
github.com/gordonklaus/ineffassign v0.0.0-20200309095847-7953dde2c7bf/go.mod h1:cuNKsD1zp2v6XfE/orVX2QE1LC+i254ceGcVeDT3pTU=
|
||||
github.com/henrylee2cn/ameda v1.4.8/go.mod h1:liZulR8DgHxdK+MEwvZIylGnmcjzQ6N6f2PlWe7nEO4=
|
||||
github.com/henrylee2cn/ameda v1.4.10 h1:JdvI2Ekq7tapdPsuhrc4CaFiqw6QXFvZIULWJgQyCAk=
|
||||
github.com/henrylee2cn/ameda v1.4.10/go.mod h1:liZulR8DgHxdK+MEwvZIylGnmcjzQ6N6f2PlWe7nEO4=
|
||||
github.com/henrylee2cn/goutil v0.0.0-20210127050712-89660552f6f8 h1:yE9ULgp02BhYIrO6sdV/FPe0xQM6fNHkVQW2IAymfM0=
|
||||
github.com/henrylee2cn/goutil v0.0.0-20210127050712-89660552f6f8/go.mod h1:Nhe/DM3671a5udlv2AdV2ni/MZzgfv2qrPL5nIi3EGQ=
|
||||
github.com/iancoleman/strcase v0.2.0 h1:05I4QRnGpI0m37iZQRuskXh+w77mr6Z41lwQzuHLwW0=
|
||||
github.com/iancoleman/strcase v0.2.0/go.mod h1:iwCmte+B7n89clKwxIoIXy/HfoL7AsD47ZCWhYzw7ho=
|
||||
github.com/ianlancetaylor/demangle v0.0.0-20220319035150-800ac71e25c2/go.mod h1:aYm2/VgdVmcIU8iMfdMvDMsRAQjcfZSKFby6HOFvi/w=
|
||||
github.com/jackc/pgpassfile v1.0.0 h1:/6Hmqy13Ss2zCq62VdNG8tM1wchn8zjSGOBJ6icpsIM=
|
||||
github.com/jackc/pgpassfile v1.0.0/go.mod h1:CEx0iS5ambNFdcRtxPj5JhEz+xB6uRky5eyVu/W2HEg=
|
||||
github.com/jackc/pgservicefile v0.0.0-20221227161230-091c0ba34f0a h1:bbPeKD0xmW/Y25WS6cokEszi5g+S0QxI/d45PkRi7Nk=
|
||||
github.com/jackc/pgservicefile v0.0.0-20221227161230-091c0ba34f0a/go.mod h1:5TJZWKEWniPve33vlWYSoGYefn3gLQRzjfDlhSJ9ZKM=
|
||||
github.com/jackc/pgx/v5 v5.4.3 h1:cxFyXhxlvAifxnkKKdlxv8XqUf59tDlYjnV5YYfsJJY=
|
||||
github.com/jackc/pgx/v5 v5.4.3/go.mod h1:Ig06C2Vu0t5qXC60W8sqIthScaEnFvojjj9dSljmHRA=
|
||||
github.com/jhump/protoreflect v1.8.2 h1:k2xE7wcUomeqwY0LDCYA16y4WWfyTcMx5mKhk0d4ua0=
|
||||
github.com/jhump/protoreflect v1.8.2/go.mod h1:7GcYQDdMU/O/BBrl/cX6PNHpXh6cenjd8pneu5yW7Tg=
|
||||
github.com/jinzhu/inflection v1.0.0 h1:K317FqzuhWc8YvSVlFMCCUb36O/S9MCKRDI7QkRKD/E=
|
||||
github.com/jinzhu/inflection v1.0.0/go.mod h1:h+uFLlag+Qp1Va5pdKtLDYj+kHp5pxUVkryuEj+Srlc=
|
||||
github.com/jinzhu/now v1.1.5 h1:/o9tlHleP7gOFmsnYNz3RGnqzefHA47wQpKrrdTIwXQ=
|
||||
github.com/jinzhu/now v1.1.5/go.mod h1:d3SSVoowX0Lcu0IBviAWJpolVfI5UJVZZ7cO71lE/z8=
|
||||
github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4=
|
||||
github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM=
|
||||
github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo=
|
||||
github.com/jtolds/gls v4.20.0+incompatible h1:xdiiI2gbIgH/gLH7ADydsJ1uDOEzR8yvV7C0MuV77Wo=
|
||||
github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU=
|
||||
github.com/jung-kurt/gofpdf v1.0.0/go.mod h1:7Id9E/uU8ce6rXgefFLlgrJj/GYY22cpxn+r32jIOes=
|
||||
github.com/jung-kurt/gofpdf v1.0.3-0.20190309125859-24315acbbda5/go.mod h1:7Id9E/uU8ce6rXgefFLlgrJj/GYY22cpxn+r32jIOes=
|
||||
github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8=
|
||||
github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck=
|
||||
github.com/kitex-contrib/obs-opentelemetry/logging/logrus v0.0.0-20240515092919-1f776656cb66 h1:KHEWSTCleXom38JQodofbpY7HNR2KQ4+ypIurCPFy/A=
|
||||
github.com/kitex-contrib/obs-opentelemetry/logging/logrus v0.0.0-20240515092919-1f776656cb66/go.mod h1:naiLX9zwKBzVA41wtvvmtSZdbCihqIT9RnOb8GZv8A4=
|
||||
github.com/klauspost/cpuid/v2 v2.0.9/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg=
|
||||
github.com/klauspost/cpuid/v2 v2.1.0/go.mod h1:RVVoqg1df56z8g3pUjL/3lE5UfnlrJX8tyFgg4nqhuY=
|
||||
github.com/klauspost/cpuid/v2 v2.2.4 h1:acbojRNwl3o09bUq+yDCtZFc1aiwaAAxtcn8YkZXnvk=
|
||||
github.com/klauspost/cpuid/v2 v2.2.4/go.mod h1:RVVoqg1df56z8g3pUjL/3lE5UfnlrJX8tyFgg4nqhuY=
|
||||
github.com/knz/go-libedit v1.10.1/go.mod h1:MZTVkCWyz0oBc7JOWP3wNAzd002ZbM/5hgShxwh4x8M=
|
||||
github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
|
||||
github.com/kr/pretty v0.3.0 h1:WgNl7dwNpEZ6jJ9k1snq4pZsg7DOEN8hP9Xw0Tsjwk0=
|
||||
github.com/kr/pretty v0.3.0/go.mod h1:640gp4NfQd8pI5XOwp5fnNeVWj67G7CFk/SaSQn7NBk=
|
||||
github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
|
||||
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
|
||||
github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
|
||||
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
|
||||
github.com/mattn/go-isatty v0.0.13/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU=
|
||||
github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421 h1:ZqeYNhU3OHLH3mGKHDcjJRFFRrJa6eAM5H+CtDdOsPc=
|
||||
github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
|
||||
github.com/modern-go/gls v0.0.0-20220109145502-612d0167dce5 h1:uiS4zKYKJVj5F3ID+5iylfKPsEQmBEOucSD9Vgmn0i0=
|
||||
github.com/modern-go/gls v0.0.0-20220109145502-612d0167dce5/go.mod h1:I8AX+yW//L8Hshx6+a1m3bYkwXkpsVjA2795vP4f4oQ=
|
||||
github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0=
|
||||
github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9Gz0M=
|
||||
github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk=
|
||||
github.com/nishanths/predeclared v0.0.0-20200524104333-86fad755b4d3/go.mod h1:nt3d53pc1VYcphSCIaYAJtnPYnr3Zyn8fMq2wvPGPso=
|
||||
github.com/nyaruka/phonenumbers v1.0.55 h1:bj0nTO88Y68KeUQ/n3Lo2KgK7lM1hF7L9NFuwcCl3yg=
|
||||
github.com/nyaruka/phonenumbers v1.0.55/go.mod h1:sDaTZ/KPX5f8qyV9qN+hIm+4ZBARJrupC6LuhshJq1U=
|
||||
github.com/oleiade/lane v1.0.1 h1:hXofkn7GEOubzTwNpeL9MaNy8WxolCYb9cInAIeqShU=
|
||||
github.com/oleiade/lane v1.0.1/go.mod h1:IyTkraa4maLfjq/GmHR+Dxb4kCMtEGeb+qmhlrQ5Mk4=
|
||||
github.com/phpdave11/gofpdf v1.4.2/go.mod h1:zpO6xFn9yxo3YLyMvW8HcKWVdbNqgIfOOp2dXMnm1mY=
|
||||
github.com/phpdave11/gofpdi v1.0.12/go.mod h1:vBmVV0Do6hSBHC8uKUQ71JGW+ZGQq74llk/7bXwjDoI=
|
||||
github.com/phpdave11/gofpdi v1.0.13/go.mod h1:vBmVV0Do6hSBHC8uKUQ71JGW+ZGQq74llk/7bXwjDoI=
|
||||
github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
|
||||
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
|
||||
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
|
||||
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
|
||||
github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=
|
||||
github.com/rakyll/statik v0.1.7/go.mod h1:AlZONWzMtEnMs7W4e/1LURLiI49pIMmp6V9Unghqrcc=
|
||||
github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4=
|
||||
github.com/rogpeppe/go-internal v1.6.1 h1:/FiVV8dS/e+YqF2JvO3yXRFbBLTIuSDkuC7aBOAvL+k=
|
||||
github.com/rogpeppe/go-internal v1.6.1/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc=
|
||||
github.com/ruudk/golang-pdf417 v0.0.0-20181029194003-1af4ab5afa58/go.mod h1:6lfFZQK844Gfx8o5WFuvpxWRwnSoipWe/p622j1v06w=
|
||||
github.com/ruudk/golang-pdf417 v0.0.0-20201230142125-a7e3863a1245/go.mod h1:pQAZKsJ8yyVxGRWYNEm9oFB8ieLgKFnamEyDmSA0BRk=
|
||||
github.com/sirupsen/logrus v1.9.2 h1:oxx1eChJGI6Uks2ZC4W1zpLlVgqB8ner4EuQwV4Ik1Y=
|
||||
github.com/sirupsen/logrus v1.9.2/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ=
|
||||
github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d h1:zE9ykElWQ6/NYmHa3jpm/yHnI4xSofP+UP6SpjHcSeM=
|
||||
github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc=
|
||||
github.com/smartystreets/goconvey v1.6.4 h1:fv0U8FUIMPNf1L9lnHLvLhgicrIVChEkdzIKYqbNC9s=
|
||||
github.com/smartystreets/goconvey v1.6.4/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA=
|
||||
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
|
||||
github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
|
||||
github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo=
|
||||
github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
|
||||
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
|
||||
github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
|
||||
github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA=
|
||||
github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
|
||||
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
|
||||
github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
|
||||
github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
|
||||
github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
|
||||
github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
|
||||
github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk=
|
||||
github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
|
||||
github.com/thrift-iterator/go v0.0.0-20190402154806-9b5a67519118/go.mod h1:60PRwE/TCI1UqLvn8v2pwAf6+yzTPLP/Ji5xaesWDqk=
|
||||
github.com/tidwall/gjson v1.9.3/go.mod h1:/wbyibRr2FHMks5tjHJ5F8dMZh3AcwJEMf5vlfC0lxk=
|
||||
github.com/tidwall/gjson v1.14.4 h1:uo0p8EbA09J7RQaflQ1aBRffTR7xedD2bcIVSYxLnkM=
|
||||
github.com/tidwall/gjson v1.14.4/go.mod h1:/wbyibRr2FHMks5tjHJ5F8dMZh3AcwJEMf5vlfC0lxk=
|
||||
github.com/tidwall/match v1.1.1 h1:+Ho715JplO36QYgwN9PGYNhgZvoUSc9X2c80KVTi+GA=
|
||||
github.com/tidwall/match v1.1.1/go.mod h1:eRSPERbgtNPcGhD8UCthc6PmLEQXEWd3PRB5JTxsfmM=
|
||||
github.com/tidwall/pretty v1.2.0 h1:RWIZEg2iJ8/g6fDDYzMpobmaoGh5OLl4AXtGUGPcqCs=
|
||||
github.com/tidwall/pretty v1.2.0/go.mod h1:ITEVvHYasfjBbM0u2Pg8T2nJnzm8xPwvNhhsoaGGjNU=
|
||||
github.com/twitchyliquid64/golang-asm v0.15.1 h1:SU5vSMR7hnwNxj24w34ZyCi/FmDZTkS4MhqMhdFk5YI=
|
||||
github.com/twitchyliquid64/golang-asm v0.15.1/go.mod h1:a1lVb/DtPvCB8fslRZhAngC2+aY1QWCk3Cedj/Gdt08=
|
||||
github.com/v2pro/plz v0.0.0-20221028024117-e5f9aec5b631/go.mod h1:3gacX+hQo+xvl0vtLqCMufzxuNCwt4geAVOMt2LQYfE=
|
||||
github.com/v2pro/quokka v0.0.0-20171201153428-382cb39c6ee6/go.mod h1:0VP5W9AFNVWU8C1QLNeVg8TvzoEkIHWZ4vxtxEVFWUY=
|
||||
github.com/v2pro/wombat v0.0.0-20180402055224-a56dbdcddef2/go.mod h1:wen8nMxrRrUmXnRwH+3wGAW+hyYTHcOrTNhMpxyp/i0=
|
||||
github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
|
||||
github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
|
||||
github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
|
||||
github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k=
|
||||
github.com/yuin/goldmark v1.4.1/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k=
|
||||
github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
|
||||
go.opentelemetry.io/otel v1.19.0 h1:MuS/TNf4/j4IXsZuJegVzI1cwut7Qc00344rgH7p8bs=
|
||||
go.opentelemetry.io/otel v1.19.0/go.mod h1:i0QyjOq3UPoTzff0PJB2N66fb4S0+rSbSB15/oyH9fY=
|
||||
go.opentelemetry.io/otel/exporters/stdout/stdouttrace v1.16.0 h1:+XWJd3jf75RXJq29mxbuXhCXFDG3S3R4vBUeSI2P7tE=
|
||||
go.opentelemetry.io/otel/exporters/stdout/stdouttrace v1.16.0/go.mod h1:hqgzBPTf4yONMFgdZvL/bK42R/iinTyVQtiWihs3SZc=
|
||||
go.opentelemetry.io/otel/metric v1.19.0 h1:aTzpGtV0ar9wlV4Sna9sdJyII5jTVJEvKETPiOKwvpE=
|
||||
go.opentelemetry.io/otel/metric v1.19.0/go.mod h1:L5rUsV9kM1IxCj1MmSdS+JQAcVm319EUrDVLrt7jqt8=
|
||||
go.opentelemetry.io/otel/sdk v1.19.0 h1:6USY6zH+L8uMH8L3t1enZPR3WFEmSTADlqldyHtJi3o=
|
||||
go.opentelemetry.io/otel/sdk v1.19.0/go.mod h1:NedEbbS4w3C6zElbLdPJKOpJQOrGUJ+GfzpjUvI0v1A=
|
||||
go.opentelemetry.io/otel/trace v1.19.0 h1:DFVQmlVbfVeOuBRrwdtaehRrWiL1JoVs9CPIQ1Dzxpg=
|
||||
go.opentelemetry.io/otel/trace v1.19.0/go.mod h1:mfaSyvGyEJEI0nyV2I4qhNQnbBOUUmYZpYojqMnX2vo=
|
||||
go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto=
|
||||
go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE=
|
||||
go.uber.org/multierr v1.10.0 h1:S0h4aNzvfcFsC3dRF1jLoaov7oRaKqRGC/pUEJ2yvPQ=
|
||||
go.uber.org/multierr v1.10.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y=
|
||||
go.uber.org/zap v1.27.0 h1:aJMhYGrd5QSmlpLMr2MftRKl7t8J8PTZPA732ud/XR8=
|
||||
go.uber.org/zap v1.27.0/go.mod h1:GB2qFLM7cTU87MWRP2mPIjqfIDnGu+VIO4V/SdhGo2E=
|
||||
golang.org/x/arch v0.0.0-20201008161808-52c3e6f60cff/go.mod h1:flIaEI6LNU6xOCD5PaJvn9wGP0agmIOqjrtsKGRguv4=
|
||||
golang.org/x/arch v0.0.0-20210923205945-b76863e36670/go.mod h1:5om86z9Hs0C8fWVUuoMHwpExlXzs5Tkyp9hOrfG7pp8=
|
||||
golang.org/x/arch v0.0.0-20220722155209-00200b7164a7/go.mod h1:5om86z9Hs0C8fWVUuoMHwpExlXzs5Tkyp9hOrfG7pp8=
|
||||
golang.org/x/arch v0.2.0 h1:W1sUEHXiJTfjaFJ5SLo0N6lZn+0eO5gWD1MFeTGqQEY=
|
||||
golang.org/x/arch v0.2.0/go.mod h1:5om86z9Hs0C8fWVUuoMHwpExlXzs5Tkyp9hOrfG7pp8=
|
||||
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
|
||||
golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
|
||||
golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
|
||||
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
|
||||
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
|
||||
golang.org/x/crypto v0.14.0 h1:wBqGXzWJW6m1XrIKlAH0Hs1JJ7+9KBwnIO8v66Q9cHc=
|
||||
golang.org/x/crypto v0.14.0/go.mod h1:MVFd36DqK4CsrnJYDkBA3VC4m2GkXAM0PvzMCn4JQf4=
|
||||
golang.org/x/exp v0.0.0-20180321215751-8460e604b9de/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
|
||||
golang.org/x/exp v0.0.0-20180807140117-3d87b88a115f/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
|
||||
golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
|
||||
golang.org/x/exp v0.0.0-20190125153040-c74c464bbbf2/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
|
||||
golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
|
||||
golang.org/x/exp v0.0.0-20191002040644-a1355ae1e2c3/go.mod h1:NOZ3BPKG0ec/BKJQgnvsSFpcKLM5xXVWnvZS97DWHgE=
|
||||
golang.org/x/image v0.0.0-20180708004352-c73c2afc3b81/go.mod h1:ux5Hcp/YLpHSI86hEcLt0YII63i6oz57MZXIpbrjZUs=
|
||||
golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js=
|
||||
golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0=
|
||||
golang.org/x/image v0.0.0-20190910094157-69e4b8554b2a/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0=
|
||||
golang.org/x/image v0.0.0-20200119044424-58c23975cae1/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0=
|
||||
golang.org/x/image v0.0.0-20200430140353-33d19683fad8/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0=
|
||||
golang.org/x/image v0.0.0-20200618115811-c13761719519/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0=
|
||||
golang.org/x/image v0.0.0-20201208152932-35266b937fa6/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0=
|
||||
golang.org/x/image v0.0.0-20210216034530-4410531fe030/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0=
|
||||
golang.org/x/image v0.0.0-20210607152325-775e3b0c77b9/go.mod h1:023OzeP/+EPmXeapQh35lcL3II3LrY8Ic+EFFKVhULM=
|
||||
golang.org/x/image v0.0.0-20210628002857-a66eb6448b8d/go.mod h1:023OzeP/+EPmXeapQh35lcL3II3LrY8Ic+EFFKVhULM=
|
||||
golang.org/x/image v0.0.0-20211028202545-6944b10bf410/go.mod h1:023OzeP/+EPmXeapQh35lcL3II3LrY8Ic+EFFKVhULM=
|
||||
golang.org/x/image v0.0.0-20220302094943-723b81ca9867/go.mod h1:023OzeP/+EPmXeapQh35lcL3II3LrY8Ic+EFFKVhULM=
|
||||
golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE=
|
||||
golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU=
|
||||
golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
|
||||
golang.org/x/lint v0.0.0-20201208152925-83fdc39ff7b5/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY=
|
||||
golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o=
|
||||
golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc=
|
||||
golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY=
|
||||
golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg=
|
||||
golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
||||
golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
||||
golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
||||
golang.org/x/mod v0.5.1/go.mod h1:5OXOZSfqPIIbmVBIIKWRFfZjPR0E5r58TLhUjH0a2Ro=
|
||||
golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4=
|
||||
golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
|
||||
golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
||||
golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
||||
golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
||||
golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
|
||||
golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
|
||||
golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
|
||||
golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
|
||||
golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
|
||||
golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
|
||||
golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
|
||||
golang.org/x/net v0.0.0-20210316092652-d523dce5a7f4/go.mod h1:RBQZq4jEuRlivfhVLdyRGr576XBO4/greRjx4P4O3yc=
|
||||
golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM=
|
||||
golang.org/x/net v0.0.0-20210614182718-04defd469f4e/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
||||
golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
||||
golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c=
|
||||
golang.org/x/net v0.0.0-20221014081412-f15817d10f9b/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk=
|
||||
golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs=
|
||||
golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg=
|
||||
golang.org/x/net v0.17.0 h1:pVaXccu2ozPjCXewfr1S7xza/zcXTity9cCdXQYSjIM=
|
||||
golang.org/x/net v0.17.0/go.mod h1:NxSsAGuq816PNPmqtQdLE42eU2Fs7NoRIZrHJAlaCOE=
|
||||
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
|
||||
golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.1.0 h1:wsuoTGHzEhffawBOhz5CYhcrV4IdKZbEyZjBMuTp12o=
|
||||
golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||
golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20210304124612-50617c2ba197/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20210315160823-c6e025ad8005/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20210320140829-1e4c9ba3b0c4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.0.0-20210818153620-00dd8d7831e7/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.0.0-20211019181941-9d821ace8654/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.0.0-20220110181412-a018aaa089fe/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.0.0-20220310020820-b874c991c1a5/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.0.0-20220412211240-33da011f77ad/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.0.0-20220704084225-05e143d24a9e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.0.0-20220817070843-5a390386f1f2/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.13.0 h1:Af8nKPmuFypiUBjVoU9V20FiaFXOcuZI21p0ycVYYGE=
|
||||
golang.org/x/sys v0.13.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
|
||||
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
|
||||
golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k=
|
||||
golang.org/x/term v0.8.0/go.mod h1:xPskH00ivmX89bAKVGSKKtLOWNx2+17Eiy94tnKShWo=
|
||||
golang.org/x/term v0.13.0/go.mod h1:LTmsnFJwVN6bCy1rVCoS+qHT1HhALEFxKncY3WNNh4U=
|
||||
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
||||
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
||||
golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
||||
golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
||||
golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
|
||||
golang.org/x/text v0.6.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
|
||||
golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
|
||||
golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8=
|
||||
golang.org/x/text v0.13.0 h1:ablQoSUd0tRdKxZewP80B+BaqeKJuVhuRxj/dkrun3k=
|
||||
golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE=
|
||||
golang.org/x/tools v0.0.0-20180525024113-a5b4c53f6e8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
||||
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
||||
golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
||||
golang.org/x/tools v0.0.0-20190206041539-40960b6deb8e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
||||
golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY=
|
||||
golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
|
||||
golang.org/x/tools v0.0.0-20190328211700-ab21143f2384/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
|
||||
golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q=
|
||||
golang.org/x/tools v0.0.0-20190927191325-030b2cf1153e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
||||
golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
||||
golang.org/x/tools v0.0.0-20191130070609-6e064ea0cf2d/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
||||
golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
|
||||
golang.org/x/tools v0.0.0-20200522201501-cb1345f3a375/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=
|
||||
golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=
|
||||
golang.org/x/tools v0.0.0-20200717024301-6ddee64345a6/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA=
|
||||
golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
|
||||
golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0=
|
||||
golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
|
||||
golang.org/x/tools v0.1.9/go.mod h1:nABZi5QlRsZVlzPpHl034qft6wpY4eDcsTt5AaioBiU=
|
||||
golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc=
|
||||
golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU=
|
||||
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||
gonum.org/v1/gonum v0.0.0-20180816165407-929014505bf4/go.mod h1:Y+Yx5eoAFn32cQvJDxZx5Dpnq+c3wtXuadVZAcxbbBo=
|
||||
gonum.org/v1/gonum v0.8.2/go.mod h1:oe/vMfY3deqTw+1EZJhuvEW2iwGF1bW9wwu7XCu0+v0=
|
||||
gonum.org/v1/gonum v0.9.3/go.mod h1:TZumC3NeyVQskjXqmyWt4S3bINhy7B4eYwW69EbyX+0=
|
||||
gonum.org/v1/gonum v0.12.0/go.mod h1:73TDxJfAAHeA8Mk9mf8NlIppyhQNo5GLTcYeqgo2lvY=
|
||||
gonum.org/v1/netlib v0.0.0-20190313105609-8cb42192e0e0/go.mod h1:wa6Ws7BG/ESfp6dHfk7C6KdzKA7wR7u/rKwOGE66zvw=
|
||||
gonum.org/v1/plot v0.0.0-20190515093506-e2840ee46a6b/go.mod h1:Wt8AAjI+ypCyYX3nZBvf6cAIx93T+c/OS2HFAYskSZc=
|
||||
gonum.org/v1/plot v0.9.0/go.mod h1:3Pcqqmp6RHvJI72kgb8fThyUnav364FOsdDo2aGW5lY=
|
||||
gonum.org/v1/plot v0.10.1/go.mod h1:VZW5OlhkL1mysU9vaqNHnsy86inf6Ot+jB3r+BczCEo=
|
||||
google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM=
|
||||
google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
|
||||
google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc=
|
||||
google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc=
|
||||
google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo=
|
||||
google.golang.org/genproto v0.0.0-20210513213006-bf773b8c8384 h1:z+j74wi4yV+P7EtK9gPLGukOk7mFOy9wMQaC0wNb7eY=
|
||||
google.golang.org/genproto v0.0.0-20210513213006-bf773b8c8384/go.mod h1:P3QM42oQyzQSnHPnZ/vqoCdDmzH28fzWByN9asMeM8A=
|
||||
google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c=
|
||||
google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg=
|
||||
google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY=
|
||||
google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk=
|
||||
google.golang.org/grpc v1.36.1 h1:cmUfbeGKnz9+2DD/UYsMQXeqbHZqZDs4eQwW0sFOpBY=
|
||||
google.golang.org/grpc v1.36.1/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU=
|
||||
google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8=
|
||||
google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0=
|
||||
google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM=
|
||||
google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE=
|
||||
google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo=
|
||||
google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
|
||||
google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
|
||||
google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
|
||||
google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c=
|
||||
google.golang.org/protobuf v1.25.1-0.20200805231151-a709e31e5d12/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c=
|
||||
google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw=
|
||||
google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc=
|
||||
google.golang.org/protobuf v1.27.1/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc=
|
||||
google.golang.org/protobuf v1.28.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I=
|
||||
google.golang.org/protobuf v1.28.1 h1:d0NfwRgPtno5B1Wa6L2DAG+KivqkdutMf1UhdNx175w=
|
||||
google.golang.org/protobuf v1.28.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I=
|
||||
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
||||
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
||||
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk=
|
||||
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q=
|
||||
gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI=
|
||||
gopkg.in/natefinch/lumberjack.v2 v2.0.0 h1:1Lc07Kr7qY4U2YPouBjpCLxpiyxIVoxqXgkXLknAOE8=
|
||||
gopkg.in/natefinch/lumberjack.v2 v2.0.0/go.mod h1:l0ndWWf7gzL7RNwBG7wST/UCcT4T24xpD6X8LsfU/+k=
|
||||
gopkg.in/validator.v2 v2.0.1 h1:xF0KWyGWXm/LM2G1TrEjqOu4pa6coO9AlWSf3msVfDY=
|
||||
gopkg.in/validator.v2 v2.0.1/go.mod h1:lIUZBlB3Im4s/eYp39Ry/wkR02yOPhZ9IwIRBjuPuG8=
|
||||
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
|
||||
gopkg.in/yaml.v2 v2.3.0 h1:clyUAQHOM3G0M3f5vQj7LuJrETvjVot3Z5el9nffUtU=
|
||||
gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
|
||||
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
|
||||
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
|
||||
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
|
||||
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
|
||||
gorm.io/driver/postgres v1.5.7 h1:8ptbNJTDbEmhdr62uReG5BGkdQyeasu/FZHxI0IMGnM=
|
||||
gorm.io/driver/postgres v1.5.7/go.mod h1:3e019WlBaYI5o5LIdNV+LyxCMNtLOQETBXL2h4chKpA=
|
||||
gorm.io/gorm v1.25.10 h1:dQpO+33KalOA+aFYGlK+EfxcI5MbO7EP2yYygwh9h+s=
|
||||
gorm.io/gorm v1.25.10/go.mod h1:hbnx/Oo0ChWMn1BIhpy1oYozzpM15i4YPuHDmfYtwg8=
|
||||
honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
|
||||
honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
|
||||
honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k=
|
||||
honnef.co/go/tools v0.1.3/go.mod h1:NgwopIslSNH47DimFoV78dnkksY2EFtX0ajyb3K/las=
|
||||
nullprogram.com/x/optparse v1.0.0/go.mod h1:KdyPE+Igbe0jQUrVfMqDMeJQIJZEuyV7pjYmp6pbG50=
|
||||
rsc.io/pdf v0.1.1/go.mod h1:n8OzWcQ6Sp37PL01nO98y4iUCRdTGarVfzxY20ICaU4=
|
33
handler.go
Normal file
33
handler.go
Normal file
@ -0,0 +1,33 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"gitea.timerzz.com/kedaya_haitao/pusher/biz/service"
|
||||
config "gitea.timerzz.com/kedaya_haitao/pusher/kitex_gen/config"
|
||||
push "gitea.timerzz.com/kedaya_haitao/pusher/kitex_gen/push"
|
||||
)
|
||||
|
||||
// PushServiceImpl implements the last service interface defined in the IDL.
|
||||
type PushServiceImpl struct{}
|
||||
|
||||
// Push implements the PushServiceImpl interface.
|
||||
func (s *PushServiceImpl) Push(ctx context.Context, req *push.PushReq) (resp *push.PushResp, err error) {
|
||||
resp, err = service.NewPushService(ctx).Run(req)
|
||||
|
||||
return resp, err
|
||||
}
|
||||
|
||||
// Add implements the PushServiceImpl interface.
|
||||
func (s *PushServiceImpl) Add(ctx context.Context, req *config.PushConfig) (err error) {
|
||||
err = service.NewAddService(ctx).Run(req)
|
||||
|
||||
return err
|
||||
}
|
||||
|
||||
// List implements the PushServiceImpl interface.
|
||||
func (s *PushServiceImpl) List(ctx context.Context, req *push.ListPusherRequest) (resp *push.ListPusherResponse, err error) {
|
||||
resp, err = service.NewListService(ctx).Run(req)
|
||||
|
||||
return resp, err
|
||||
}
|
92
hex_trans_handler.go
Normal file
92
hex_trans_handler.go
Normal file
@ -0,0 +1,92 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"fmt"
|
||||
"net"
|
||||
"regexp"
|
||||
|
||||
"gitea.timerzz.com/kedaya_haitao/pusher/biz/router"
|
||||
"github.com/cloudwego/hertz/pkg/app"
|
||||
hertzServer "github.com/cloudwego/hertz/pkg/app/server"
|
||||
"github.com/cloudwego/hertz/pkg/common/utils"
|
||||
"github.com/cloudwego/hertz/pkg/network"
|
||||
"github.com/cloudwego/hertz/pkg/protocol/consts"
|
||||
"github.com/cloudwego/hertz/pkg/route"
|
||||
"github.com/cloudwego/kitex/pkg/endpoint"
|
||||
"github.com/cloudwego/kitex/pkg/klog"
|
||||
"github.com/cloudwego/kitex/pkg/remote"
|
||||
"github.com/cloudwego/kitex/pkg/remote/trans/detection"
|
||||
"github.com/cloudwego/kitex/pkg/remote/trans/netpoll"
|
||||
"github.com/cloudwego/kitex/pkg/remote/trans/nphttp2"
|
||||
)
|
||||
|
||||
type mixTransHandlerFactory struct {
|
||||
originFactory remote.ServerTransHandlerFactory
|
||||
}
|
||||
|
||||
type transHandler struct {
|
||||
remote.ServerTransHandler
|
||||
}
|
||||
|
||||
// SetInvokeHandleFunc is used to set invoke handle func.
|
||||
func (t *transHandler) SetInvokeHandleFunc(inkHdlFunc endpoint.Endpoint) {
|
||||
t.ServerTransHandler.(remote.InvokeHandleFuncSetter).SetInvokeHandleFunc(inkHdlFunc)
|
||||
}
|
||||
|
||||
func (m mixTransHandlerFactory) NewTransHandler(opt *remote.ServerOption) (remote.ServerTransHandler, error) {
|
||||
var kitexOrigin remote.ServerTransHandler
|
||||
var err error
|
||||
|
||||
if m.originFactory != nil {
|
||||
kitexOrigin, err = m.originFactory.NewTransHandler(opt)
|
||||
} else {
|
||||
// if no customized factory just use the default factory under detection pkg.
|
||||
kitexOrigin, err = detection.NewSvrTransHandlerFactory(netpoll.NewSvrTransHandlerFactory(), nphttp2.NewSvrTransHandlerFactory()).NewTransHandler(opt)
|
||||
}
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &transHandler{ServerTransHandler: kitexOrigin}, nil
|
||||
}
|
||||
|
||||
var httpReg = regexp.MustCompile(`^(?:GET |POST|PUT|DELE|HEAD|OPTI|CONN|TRAC|PATC)$`)
|
||||
|
||||
func (t *transHandler) OnRead(ctx context.Context, conn net.Conn) error {
|
||||
c, ok := conn.(network.Conn)
|
||||
if ok {
|
||||
pre, _ := c.Peek(4)
|
||||
if httpReg.Match(pre) {
|
||||
klog.Info("using Hertz to process request")
|
||||
err := hertzEngine.Serve(ctx, c)
|
||||
if err != nil {
|
||||
err = errors.New(fmt.Sprintf("HERTZ: %s", err.Error()))
|
||||
}
|
||||
return err
|
||||
}
|
||||
}
|
||||
return t.ServerTransHandler.OnRead(ctx, conn)
|
||||
}
|
||||
|
||||
func initHertz() *route.Engine {
|
||||
h := hertzServer.New(hertzServer.WithIdleTimeout(0))
|
||||
// add a ping route to test
|
||||
h.GET("/ping", func(c context.Context, ctx *app.RequestContext) {
|
||||
ctx.JSON(consts.StatusOK, utils.H{"ping": "pong"})
|
||||
})
|
||||
router.GeneratedRegister(h)
|
||||
if err := h.Engine.Init(); err != nil {
|
||||
panic(err)
|
||||
}
|
||||
if err := h.Engine.MarkAsRunning(); err != nil {
|
||||
panic(err)
|
||||
}
|
||||
return h.Engine
|
||||
}
|
||||
|
||||
var hertzEngine *route.Engine
|
||||
|
||||
func init() {
|
||||
hertzEngine = initHertz()
|
||||
}
|
8
idl/config.thrift
Normal file
8
idl/config.thrift
Normal file
@ -0,0 +1,8 @@
|
||||
struct PushConfig {
|
||||
1: i64 id
|
||||
2: i64 createdAt
|
||||
3: i8 type
|
||||
4: string name
|
||||
5: string remark
|
||||
6: string option
|
||||
}
|
31
idl/push.thrift
Normal file
31
idl/push.thrift
Normal file
@ -0,0 +1,31 @@
|
||||
include "config.thrift"
|
||||
|
||||
struct PushReq {
|
||||
1: required i64 id
|
||||
2: required string title
|
||||
3: required string content
|
||||
}
|
||||
|
||||
struct PushResp {
|
||||
1: required i64 errCode
|
||||
2: string errMsg
|
||||
3: string msgId
|
||||
}
|
||||
|
||||
struct ListPusherRequest {
|
||||
1: string keyword
|
||||
2: optional i64 page = 10
|
||||
3: optional i16 size = 1
|
||||
4: bool all
|
||||
}
|
||||
|
||||
struct ListPusherResponse {
|
||||
1: i64 total
|
||||
2: list<config.PushConfig> list
|
||||
}
|
||||
|
||||
service PushService{
|
||||
PushResp Push(1: PushReq req)
|
||||
void Add(1: config.PushConfig req)
|
||||
ListPusherResponse List(1: ListPusherRequest req)
|
||||
}
|
468
kitex_gen/config/config.go
Normal file
468
kitex_gen/config/config.go
Normal file
@ -0,0 +1,468 @@
|
||||
// Code generated by thriftgo (0.3.12). DO NOT EDIT.
|
||||
|
||||
package config
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/apache/thrift/lib/go/thrift"
|
||||
"strings"
|
||||
)
|
||||
|
||||
type PushConfig struct {
|
||||
Id int64 `thrift:"id,1" frugal:"1,default,i64" form:"id" json:"id" query:"id"`
|
||||
CreatedAt int64 `thrift:"createdAt,2" frugal:"2,default,i64" form:"createdAt" json:"createdAt" query:"createdAt"`
|
||||
Type int8 `thrift:"type,3" frugal:"3,default,i8" form:"type" json:"type" query:"type"`
|
||||
Name string `thrift:"name,4" frugal:"4,default,string" form:"name" json:"name" query:"name"`
|
||||
Remark string `thrift:"remark,5" frugal:"5,default,string" form:"remark" json:"remark" query:"remark"`
|
||||
Option string `thrift:"option,6" frugal:"6,default,string" form:"option" json:"option" query:"option"`
|
||||
}
|
||||
|
||||
func NewPushConfig() *PushConfig {
|
||||
return &PushConfig{}
|
||||
}
|
||||
|
||||
func (p *PushConfig) InitDefault() {
|
||||
*p = PushConfig{}
|
||||
}
|
||||
|
||||
func (p *PushConfig) GetId() (v int64) {
|
||||
return p.Id
|
||||
}
|
||||
|
||||
func (p *PushConfig) GetCreatedAt() (v int64) {
|
||||
return p.CreatedAt
|
||||
}
|
||||
|
||||
func (p *PushConfig) GetType() (v int8) {
|
||||
return p.Type
|
||||
}
|
||||
|
||||
func (p *PushConfig) GetName() (v string) {
|
||||
return p.Name
|
||||
}
|
||||
|
||||
func (p *PushConfig) GetRemark() (v string) {
|
||||
return p.Remark
|
||||
}
|
||||
|
||||
func (p *PushConfig) GetOption() (v string) {
|
||||
return p.Option
|
||||
}
|
||||
func (p *PushConfig) SetId(val int64) {
|
||||
p.Id = val
|
||||
}
|
||||
func (p *PushConfig) SetCreatedAt(val int64) {
|
||||
p.CreatedAt = val
|
||||
}
|
||||
func (p *PushConfig) SetType(val int8) {
|
||||
p.Type = val
|
||||
}
|
||||
func (p *PushConfig) SetName(val string) {
|
||||
p.Name = val
|
||||
}
|
||||
func (p *PushConfig) SetRemark(val string) {
|
||||
p.Remark = val
|
||||
}
|
||||
func (p *PushConfig) SetOption(val string) {
|
||||
p.Option = val
|
||||
}
|
||||
|
||||
var fieldIDToName_PushConfig = map[int16]string{
|
||||
1: "id",
|
||||
2: "createdAt",
|
||||
3: "type",
|
||||
4: "name",
|
||||
5: "remark",
|
||||
6: "option",
|
||||
}
|
||||
|
||||
func (p *PushConfig) Read(iprot thrift.TProtocol) (err error) {
|
||||
|
||||
var fieldTypeId thrift.TType
|
||||
var fieldId int16
|
||||
|
||||
if _, err = iprot.ReadStructBegin(); err != nil {
|
||||
goto ReadStructBeginError
|
||||
}
|
||||
|
||||
for {
|
||||
_, fieldTypeId, fieldId, err = iprot.ReadFieldBegin()
|
||||
if err != nil {
|
||||
goto ReadFieldBeginError
|
||||
}
|
||||
if fieldTypeId == thrift.STOP {
|
||||
break
|
||||
}
|
||||
|
||||
switch fieldId {
|
||||
case 1:
|
||||
if fieldTypeId == thrift.I64 {
|
||||
if err = p.ReadField1(iprot); err != nil {
|
||||
goto ReadFieldError
|
||||
}
|
||||
} else if err = iprot.Skip(fieldTypeId); err != nil {
|
||||
goto SkipFieldError
|
||||
}
|
||||
case 2:
|
||||
if fieldTypeId == thrift.I64 {
|
||||
if err = p.ReadField2(iprot); err != nil {
|
||||
goto ReadFieldError
|
||||
}
|
||||
} else if err = iprot.Skip(fieldTypeId); err != nil {
|
||||
goto SkipFieldError
|
||||
}
|
||||
case 3:
|
||||
if fieldTypeId == thrift.BYTE {
|
||||
if err = p.ReadField3(iprot); err != nil {
|
||||
goto ReadFieldError
|
||||
}
|
||||
} else if err = iprot.Skip(fieldTypeId); err != nil {
|
||||
goto SkipFieldError
|
||||
}
|
||||
case 4:
|
||||
if fieldTypeId == thrift.STRING {
|
||||
if err = p.ReadField4(iprot); err != nil {
|
||||
goto ReadFieldError
|
||||
}
|
||||
} else if err = iprot.Skip(fieldTypeId); err != nil {
|
||||
goto SkipFieldError
|
||||
}
|
||||
case 5:
|
||||
if fieldTypeId == thrift.STRING {
|
||||
if err = p.ReadField5(iprot); err != nil {
|
||||
goto ReadFieldError
|
||||
}
|
||||
} else if err = iprot.Skip(fieldTypeId); err != nil {
|
||||
goto SkipFieldError
|
||||
}
|
||||
case 6:
|
||||
if fieldTypeId == thrift.STRING {
|
||||
if err = p.ReadField6(iprot); err != nil {
|
||||
goto ReadFieldError
|
||||
}
|
||||
} else if err = iprot.Skip(fieldTypeId); err != nil {
|
||||
goto SkipFieldError
|
||||
}
|
||||
default:
|
||||
if err = iprot.Skip(fieldTypeId); err != nil {
|
||||
goto SkipFieldError
|
||||
}
|
||||
}
|
||||
if err = iprot.ReadFieldEnd(); err != nil {
|
||||
goto ReadFieldEndError
|
||||
}
|
||||
}
|
||||
if err = iprot.ReadStructEnd(); err != nil {
|
||||
goto ReadStructEndError
|
||||
}
|
||||
|
||||
return nil
|
||||
ReadStructBeginError:
|
||||
return thrift.PrependError(fmt.Sprintf("%T read struct begin error: ", p), err)
|
||||
ReadFieldBeginError:
|
||||
return thrift.PrependError(fmt.Sprintf("%T read field %d begin error: ", p, fieldId), err)
|
||||
ReadFieldError:
|
||||
return thrift.PrependError(fmt.Sprintf("%T read field %d '%s' error: ", p, fieldId, fieldIDToName_PushConfig[fieldId]), err)
|
||||
SkipFieldError:
|
||||
return thrift.PrependError(fmt.Sprintf("%T field %d skip type %d error: ", p, fieldId, fieldTypeId), err)
|
||||
|
||||
ReadFieldEndError:
|
||||
return thrift.PrependError(fmt.Sprintf("%T read field end error", p), err)
|
||||
ReadStructEndError:
|
||||
return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
|
||||
}
|
||||
|
||||
func (p *PushConfig) ReadField1(iprot thrift.TProtocol) error {
|
||||
|
||||
var _field int64
|
||||
if v, err := iprot.ReadI64(); err != nil {
|
||||
return err
|
||||
} else {
|
||||
_field = v
|
||||
}
|
||||
p.Id = _field
|
||||
return nil
|
||||
}
|
||||
func (p *PushConfig) ReadField2(iprot thrift.TProtocol) error {
|
||||
|
||||
var _field int64
|
||||
if v, err := iprot.ReadI64(); err != nil {
|
||||
return err
|
||||
} else {
|
||||
_field = v
|
||||
}
|
||||
p.CreatedAt = _field
|
||||
return nil
|
||||
}
|
||||
func (p *PushConfig) ReadField3(iprot thrift.TProtocol) error {
|
||||
|
||||
var _field int8
|
||||
if v, err := iprot.ReadByte(); err != nil {
|
||||
return err
|
||||
} else {
|
||||
_field = v
|
||||
}
|
||||
p.Type = _field
|
||||
return nil
|
||||
}
|
||||
func (p *PushConfig) ReadField4(iprot thrift.TProtocol) error {
|
||||
|
||||
var _field string
|
||||
if v, err := iprot.ReadString(); err != nil {
|
||||
return err
|
||||
} else {
|
||||
_field = v
|
||||
}
|
||||
p.Name = _field
|
||||
return nil
|
||||
}
|
||||
func (p *PushConfig) ReadField5(iprot thrift.TProtocol) error {
|
||||
|
||||
var _field string
|
||||
if v, err := iprot.ReadString(); err != nil {
|
||||
return err
|
||||
} else {
|
||||
_field = v
|
||||
}
|
||||
p.Remark = _field
|
||||
return nil
|
||||
}
|
||||
func (p *PushConfig) ReadField6(iprot thrift.TProtocol) error {
|
||||
|
||||
var _field string
|
||||
if v, err := iprot.ReadString(); err != nil {
|
||||
return err
|
||||
} else {
|
||||
_field = v
|
||||
}
|
||||
p.Option = _field
|
||||
return nil
|
||||
}
|
||||
|
||||
func (p *PushConfig) Write(oprot thrift.TProtocol) (err error) {
|
||||
var fieldId int16
|
||||
if err = oprot.WriteStructBegin("PushConfig"); err != nil {
|
||||
goto WriteStructBeginError
|
||||
}
|
||||
if p != nil {
|
||||
if err = p.writeField1(oprot); err != nil {
|
||||
fieldId = 1
|
||||
goto WriteFieldError
|
||||
}
|
||||
if err = p.writeField2(oprot); err != nil {
|
||||
fieldId = 2
|
||||
goto WriteFieldError
|
||||
}
|
||||
if err = p.writeField3(oprot); err != nil {
|
||||
fieldId = 3
|
||||
goto WriteFieldError
|
||||
}
|
||||
if err = p.writeField4(oprot); err != nil {
|
||||
fieldId = 4
|
||||
goto WriteFieldError
|
||||
}
|
||||
if err = p.writeField5(oprot); err != nil {
|
||||
fieldId = 5
|
||||
goto WriteFieldError
|
||||
}
|
||||
if err = p.writeField6(oprot); err != nil {
|
||||
fieldId = 6
|
||||
goto WriteFieldError
|
||||
}
|
||||
}
|
||||
if err = oprot.WriteFieldStop(); err != nil {
|
||||
goto WriteFieldStopError
|
||||
}
|
||||
if err = oprot.WriteStructEnd(); err != nil {
|
||||
goto WriteStructEndError
|
||||
}
|
||||
return nil
|
||||
WriteStructBeginError:
|
||||
return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
|
||||
WriteFieldError:
|
||||
return thrift.PrependError(fmt.Sprintf("%T write field %d error: ", p, fieldId), err)
|
||||
WriteFieldStopError:
|
||||
return thrift.PrependError(fmt.Sprintf("%T write field stop error: ", p), err)
|
||||
WriteStructEndError:
|
||||
return thrift.PrependError(fmt.Sprintf("%T write struct end error: ", p), err)
|
||||
}
|
||||
|
||||
func (p *PushConfig) writeField1(oprot thrift.TProtocol) (err error) {
|
||||
if err = oprot.WriteFieldBegin("id", thrift.I64, 1); err != nil {
|
||||
goto WriteFieldBeginError
|
||||
}
|
||||
if err := oprot.WriteI64(p.Id); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = oprot.WriteFieldEnd(); err != nil {
|
||||
goto WriteFieldEndError
|
||||
}
|
||||
return nil
|
||||
WriteFieldBeginError:
|
||||
return thrift.PrependError(fmt.Sprintf("%T write field 1 begin error: ", p), err)
|
||||
WriteFieldEndError:
|
||||
return thrift.PrependError(fmt.Sprintf("%T write field 1 end error: ", p), err)
|
||||
}
|
||||
|
||||
func (p *PushConfig) writeField2(oprot thrift.TProtocol) (err error) {
|
||||
if err = oprot.WriteFieldBegin("createdAt", thrift.I64, 2); err != nil {
|
||||
goto WriteFieldBeginError
|
||||
}
|
||||
if err := oprot.WriteI64(p.CreatedAt); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = oprot.WriteFieldEnd(); err != nil {
|
||||
goto WriteFieldEndError
|
||||
}
|
||||
return nil
|
||||
WriteFieldBeginError:
|
||||
return thrift.PrependError(fmt.Sprintf("%T write field 2 begin error: ", p), err)
|
||||
WriteFieldEndError:
|
||||
return thrift.PrependError(fmt.Sprintf("%T write field 2 end error: ", p), err)
|
||||
}
|
||||
|
||||
func (p *PushConfig) writeField3(oprot thrift.TProtocol) (err error) {
|
||||
if err = oprot.WriteFieldBegin("type", thrift.BYTE, 3); err != nil {
|
||||
goto WriteFieldBeginError
|
||||
}
|
||||
if err := oprot.WriteByte(p.Type); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = oprot.WriteFieldEnd(); err != nil {
|
||||
goto WriteFieldEndError
|
||||
}
|
||||
return nil
|
||||
WriteFieldBeginError:
|
||||
return thrift.PrependError(fmt.Sprintf("%T write field 3 begin error: ", p), err)
|
||||
WriteFieldEndError:
|
||||
return thrift.PrependError(fmt.Sprintf("%T write field 3 end error: ", p), err)
|
||||
}
|
||||
|
||||
func (p *PushConfig) writeField4(oprot thrift.TProtocol) (err error) {
|
||||
if err = oprot.WriteFieldBegin("name", thrift.STRING, 4); err != nil {
|
||||
goto WriteFieldBeginError
|
||||
}
|
||||
if err := oprot.WriteString(p.Name); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = oprot.WriteFieldEnd(); err != nil {
|
||||
goto WriteFieldEndError
|
||||
}
|
||||
return nil
|
||||
WriteFieldBeginError:
|
||||
return thrift.PrependError(fmt.Sprintf("%T write field 4 begin error: ", p), err)
|
||||
WriteFieldEndError:
|
||||
return thrift.PrependError(fmt.Sprintf("%T write field 4 end error: ", p), err)
|
||||
}
|
||||
|
||||
func (p *PushConfig) writeField5(oprot thrift.TProtocol) (err error) {
|
||||
if err = oprot.WriteFieldBegin("remark", thrift.STRING, 5); err != nil {
|
||||
goto WriteFieldBeginError
|
||||
}
|
||||
if err := oprot.WriteString(p.Remark); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = oprot.WriteFieldEnd(); err != nil {
|
||||
goto WriteFieldEndError
|
||||
}
|
||||
return nil
|
||||
WriteFieldBeginError:
|
||||
return thrift.PrependError(fmt.Sprintf("%T write field 5 begin error: ", p), err)
|
||||
WriteFieldEndError:
|
||||
return thrift.PrependError(fmt.Sprintf("%T write field 5 end error: ", p), err)
|
||||
}
|
||||
|
||||
func (p *PushConfig) writeField6(oprot thrift.TProtocol) (err error) {
|
||||
if err = oprot.WriteFieldBegin("option", thrift.STRING, 6); err != nil {
|
||||
goto WriteFieldBeginError
|
||||
}
|
||||
if err := oprot.WriteString(p.Option); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = oprot.WriteFieldEnd(); err != nil {
|
||||
goto WriteFieldEndError
|
||||
}
|
||||
return nil
|
||||
WriteFieldBeginError:
|
||||
return thrift.PrependError(fmt.Sprintf("%T write field 6 begin error: ", p), err)
|
||||
WriteFieldEndError:
|
||||
return thrift.PrependError(fmt.Sprintf("%T write field 6 end error: ", p), err)
|
||||
}
|
||||
|
||||
func (p *PushConfig) String() string {
|
||||
if p == nil {
|
||||
return "<nil>"
|
||||
}
|
||||
return fmt.Sprintf("PushConfig(%+v)", *p)
|
||||
|
||||
}
|
||||
|
||||
func (p *PushConfig) DeepEqual(ano *PushConfig) bool {
|
||||
if p == ano {
|
||||
return true
|
||||
} else if p == nil || ano == nil {
|
||||
return false
|
||||
}
|
||||
if !p.Field1DeepEqual(ano.Id) {
|
||||
return false
|
||||
}
|
||||
if !p.Field2DeepEqual(ano.CreatedAt) {
|
||||
return false
|
||||
}
|
||||
if !p.Field3DeepEqual(ano.Type) {
|
||||
return false
|
||||
}
|
||||
if !p.Field4DeepEqual(ano.Name) {
|
||||
return false
|
||||
}
|
||||
if !p.Field5DeepEqual(ano.Remark) {
|
||||
return false
|
||||
}
|
||||
if !p.Field6DeepEqual(ano.Option) {
|
||||
return false
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
||||
func (p *PushConfig) Field1DeepEqual(src int64) bool {
|
||||
|
||||
if p.Id != src {
|
||||
return false
|
||||
}
|
||||
return true
|
||||
}
|
||||
func (p *PushConfig) Field2DeepEqual(src int64) bool {
|
||||
|
||||
if p.CreatedAt != src {
|
||||
return false
|
||||
}
|
||||
return true
|
||||
}
|
||||
func (p *PushConfig) Field3DeepEqual(src int8) bool {
|
||||
|
||||
if p.Type != src {
|
||||
return false
|
||||
}
|
||||
return true
|
||||
}
|
||||
func (p *PushConfig) Field4DeepEqual(src string) bool {
|
||||
|
||||
if strings.Compare(p.Name, src) != 0 {
|
||||
return false
|
||||
}
|
||||
return true
|
||||
}
|
||||
func (p *PushConfig) Field5DeepEqual(src string) bool {
|
||||
|
||||
if strings.Compare(p.Remark, src) != 0 {
|
||||
return false
|
||||
}
|
||||
return true
|
||||
}
|
||||
func (p *PushConfig) Field6DeepEqual(src string) bool {
|
||||
|
||||
if strings.Compare(p.Option, src) != 0 {
|
||||
return false
|
||||
}
|
||||
return true
|
||||
}
|
394
kitex_gen/config/k-config.go
Normal file
394
kitex_gen/config/k-config.go
Normal file
@ -0,0 +1,394 @@
|
||||
// Code generated by Kitex v0.9.0. DO NOT EDIT.
|
||||
|
||||
package config
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"fmt"
|
||||
"reflect"
|
||||
"strings"
|
||||
|
||||
"github.com/apache/thrift/lib/go/thrift"
|
||||
|
||||
"github.com/cloudwego/kitex/pkg/protocol/bthrift"
|
||||
)
|
||||
|
||||
// unused protection
|
||||
var (
|
||||
_ = fmt.Formatter(nil)
|
||||
_ = (*bytes.Buffer)(nil)
|
||||
_ = (*strings.Builder)(nil)
|
||||
_ = reflect.Type(nil)
|
||||
_ = thrift.TProtocol(nil)
|
||||
_ = bthrift.BinaryWriter(nil)
|
||||
)
|
||||
|
||||
func (p *PushConfig) FastRead(buf []byte) (int, error) {
|
||||
var err error
|
||||
var offset int
|
||||
var l int
|
||||
var fieldTypeId thrift.TType
|
||||
var fieldId int16
|
||||
_, l, err = bthrift.Binary.ReadStructBegin(buf)
|
||||
offset += l
|
||||
if err != nil {
|
||||
goto ReadStructBeginError
|
||||
}
|
||||
|
||||
for {
|
||||
_, fieldTypeId, fieldId, l, err = bthrift.Binary.ReadFieldBegin(buf[offset:])
|
||||
offset += l
|
||||
if err != nil {
|
||||
goto ReadFieldBeginError
|
||||
}
|
||||
if fieldTypeId == thrift.STOP {
|
||||
break
|
||||
}
|
||||
switch fieldId {
|
||||
case 1:
|
||||
if fieldTypeId == thrift.I64 {
|
||||
l, err = p.FastReadField1(buf[offset:])
|
||||
offset += l
|
||||
if err != nil {
|
||||
goto ReadFieldError
|
||||
}
|
||||
} else {
|
||||
l, err = bthrift.Binary.Skip(buf[offset:], fieldTypeId)
|
||||
offset += l
|
||||
if err != nil {
|
||||
goto SkipFieldError
|
||||
}
|
||||
}
|
||||
case 2:
|
||||
if fieldTypeId == thrift.I64 {
|
||||
l, err = p.FastReadField2(buf[offset:])
|
||||
offset += l
|
||||
if err != nil {
|
||||
goto ReadFieldError
|
||||
}
|
||||
} else {
|
||||
l, err = bthrift.Binary.Skip(buf[offset:], fieldTypeId)
|
||||
offset += l
|
||||
if err != nil {
|
||||
goto SkipFieldError
|
||||
}
|
||||
}
|
||||
case 3:
|
||||
if fieldTypeId == thrift.BYTE {
|
||||
l, err = p.FastReadField3(buf[offset:])
|
||||
offset += l
|
||||
if err != nil {
|
||||
goto ReadFieldError
|
||||
}
|
||||
} else {
|
||||
l, err = bthrift.Binary.Skip(buf[offset:], fieldTypeId)
|
||||
offset += l
|
||||
if err != nil {
|
||||
goto SkipFieldError
|
||||
}
|
||||
}
|
||||
case 4:
|
||||
if fieldTypeId == thrift.STRING {
|
||||
l, err = p.FastReadField4(buf[offset:])
|
||||
offset += l
|
||||
if err != nil {
|
||||
goto ReadFieldError
|
||||
}
|
||||
} else {
|
||||
l, err = bthrift.Binary.Skip(buf[offset:], fieldTypeId)
|
||||
offset += l
|
||||
if err != nil {
|
||||
goto SkipFieldError
|
||||
}
|
||||
}
|
||||
case 5:
|
||||
if fieldTypeId == thrift.STRING {
|
||||
l, err = p.FastReadField5(buf[offset:])
|
||||
offset += l
|
||||
if err != nil {
|
||||
goto ReadFieldError
|
||||
}
|
||||
} else {
|
||||
l, err = bthrift.Binary.Skip(buf[offset:], fieldTypeId)
|
||||
offset += l
|
||||
if err != nil {
|
||||
goto SkipFieldError
|
||||
}
|
||||
}
|
||||
case 6:
|
||||
if fieldTypeId == thrift.STRING {
|
||||
l, err = p.FastReadField6(buf[offset:])
|
||||
offset += l
|
||||
if err != nil {
|
||||
goto ReadFieldError
|
||||
}
|
||||
} else {
|
||||
l, err = bthrift.Binary.Skip(buf[offset:], fieldTypeId)
|
||||
offset += l
|
||||
if err != nil {
|
||||
goto SkipFieldError
|
||||
}
|
||||
}
|
||||
default:
|
||||
l, err = bthrift.Binary.Skip(buf[offset:], fieldTypeId)
|
||||
offset += l
|
||||
if err != nil {
|
||||
goto SkipFieldError
|
||||
}
|
||||
}
|
||||
|
||||
l, err = bthrift.Binary.ReadFieldEnd(buf[offset:])
|
||||
offset += l
|
||||
if err != nil {
|
||||
goto ReadFieldEndError
|
||||
}
|
||||
}
|
||||
l, err = bthrift.Binary.ReadStructEnd(buf[offset:])
|
||||
offset += l
|
||||
if err != nil {
|
||||
goto ReadStructEndError
|
||||
}
|
||||
|
||||
return offset, nil
|
||||
ReadStructBeginError:
|
||||
return offset, thrift.PrependError(fmt.Sprintf("%T read struct begin error: ", p), err)
|
||||
ReadFieldBeginError:
|
||||
return offset, thrift.PrependError(fmt.Sprintf("%T read field %d begin error: ", p, fieldId), err)
|
||||
ReadFieldError:
|
||||
return offset, thrift.PrependError(fmt.Sprintf("%T read field %d '%s' error: ", p, fieldId, fieldIDToName_PushConfig[fieldId]), err)
|
||||
SkipFieldError:
|
||||
return offset, thrift.PrependError(fmt.Sprintf("%T field %d skip type %d error: ", p, fieldId, fieldTypeId), err)
|
||||
ReadFieldEndError:
|
||||
return offset, thrift.PrependError(fmt.Sprintf("%T read field end error", p), err)
|
||||
ReadStructEndError:
|
||||
return offset, thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
|
||||
}
|
||||
|
||||
func (p *PushConfig) FastReadField1(buf []byte) (int, error) {
|
||||
offset := 0
|
||||
|
||||
if v, l, err := bthrift.Binary.ReadI64(buf[offset:]); err != nil {
|
||||
return offset, err
|
||||
} else {
|
||||
offset += l
|
||||
|
||||
p.Id = v
|
||||
|
||||
}
|
||||
return offset, nil
|
||||
}
|
||||
|
||||
func (p *PushConfig) FastReadField2(buf []byte) (int, error) {
|
||||
offset := 0
|
||||
|
||||
if v, l, err := bthrift.Binary.ReadI64(buf[offset:]); err != nil {
|
||||
return offset, err
|
||||
} else {
|
||||
offset += l
|
||||
|
||||
p.CreatedAt = v
|
||||
|
||||
}
|
||||
return offset, nil
|
||||
}
|
||||
|
||||
func (p *PushConfig) FastReadField3(buf []byte) (int, error) {
|
||||
offset := 0
|
||||
|
||||
if v, l, err := bthrift.Binary.ReadByte(buf[offset:]); err != nil {
|
||||
return offset, err
|
||||
} else {
|
||||
offset += l
|
||||
|
||||
p.Type = v
|
||||
|
||||
}
|
||||
return offset, nil
|
||||
}
|
||||
|
||||
func (p *PushConfig) FastReadField4(buf []byte) (int, error) {
|
||||
offset := 0
|
||||
|
||||
if v, l, err := bthrift.Binary.ReadString(buf[offset:]); err != nil {
|
||||
return offset, err
|
||||
} else {
|
||||
offset += l
|
||||
|
||||
p.Name = v
|
||||
|
||||
}
|
||||
return offset, nil
|
||||
}
|
||||
|
||||
func (p *PushConfig) FastReadField5(buf []byte) (int, error) {
|
||||
offset := 0
|
||||
|
||||
if v, l, err := bthrift.Binary.ReadString(buf[offset:]); err != nil {
|
||||
return offset, err
|
||||
} else {
|
||||
offset += l
|
||||
|
||||
p.Remark = v
|
||||
|
||||
}
|
||||
return offset, nil
|
||||
}
|
||||
|
||||
func (p *PushConfig) FastReadField6(buf []byte) (int, error) {
|
||||
offset := 0
|
||||
|
||||
if v, l, err := bthrift.Binary.ReadString(buf[offset:]); err != nil {
|
||||
return offset, err
|
||||
} else {
|
||||
offset += l
|
||||
|
||||
p.Option = v
|
||||
|
||||
}
|
||||
return offset, nil
|
||||
}
|
||||
|
||||
// for compatibility
|
||||
func (p *PushConfig) FastWrite(buf []byte) int {
|
||||
return 0
|
||||
}
|
||||
|
||||
func (p *PushConfig) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int {
|
||||
offset := 0
|
||||
offset += bthrift.Binary.WriteStructBegin(buf[offset:], "PushConfig")
|
||||
if p != nil {
|
||||
offset += p.fastWriteField1(buf[offset:], binaryWriter)
|
||||
offset += p.fastWriteField2(buf[offset:], binaryWriter)
|
||||
offset += p.fastWriteField3(buf[offset:], binaryWriter)
|
||||
offset += p.fastWriteField4(buf[offset:], binaryWriter)
|
||||
offset += p.fastWriteField5(buf[offset:], binaryWriter)
|
||||
offset += p.fastWriteField6(buf[offset:], binaryWriter)
|
||||
}
|
||||
offset += bthrift.Binary.WriteFieldStop(buf[offset:])
|
||||
offset += bthrift.Binary.WriteStructEnd(buf[offset:])
|
||||
return offset
|
||||
}
|
||||
|
||||
func (p *PushConfig) BLength() int {
|
||||
l := 0
|
||||
l += bthrift.Binary.StructBeginLength("PushConfig")
|
||||
if p != nil {
|
||||
l += p.field1Length()
|
||||
l += p.field2Length()
|
||||
l += p.field3Length()
|
||||
l += p.field4Length()
|
||||
l += p.field5Length()
|
||||
l += p.field6Length()
|
||||
}
|
||||
l += bthrift.Binary.FieldStopLength()
|
||||
l += bthrift.Binary.StructEndLength()
|
||||
return l
|
||||
}
|
||||
|
||||
func (p *PushConfig) fastWriteField1(buf []byte, binaryWriter bthrift.BinaryWriter) int {
|
||||
offset := 0
|
||||
offset += bthrift.Binary.WriteFieldBegin(buf[offset:], "id", thrift.I64, 1)
|
||||
offset += bthrift.Binary.WriteI64(buf[offset:], p.Id)
|
||||
|
||||
offset += bthrift.Binary.WriteFieldEnd(buf[offset:])
|
||||
return offset
|
||||
}
|
||||
|
||||
func (p *PushConfig) fastWriteField2(buf []byte, binaryWriter bthrift.BinaryWriter) int {
|
||||
offset := 0
|
||||
offset += bthrift.Binary.WriteFieldBegin(buf[offset:], "createdAt", thrift.I64, 2)
|
||||
offset += bthrift.Binary.WriteI64(buf[offset:], p.CreatedAt)
|
||||
|
||||
offset += bthrift.Binary.WriteFieldEnd(buf[offset:])
|
||||
return offset
|
||||
}
|
||||
|
||||
func (p *PushConfig) fastWriteField3(buf []byte, binaryWriter bthrift.BinaryWriter) int {
|
||||
offset := 0
|
||||
offset += bthrift.Binary.WriteFieldBegin(buf[offset:], "type", thrift.BYTE, 3)
|
||||
offset += bthrift.Binary.WriteByte(buf[offset:], p.Type)
|
||||
|
||||
offset += bthrift.Binary.WriteFieldEnd(buf[offset:])
|
||||
return offset
|
||||
}
|
||||
|
||||
func (p *PushConfig) fastWriteField4(buf []byte, binaryWriter bthrift.BinaryWriter) int {
|
||||
offset := 0
|
||||
offset += bthrift.Binary.WriteFieldBegin(buf[offset:], "name", thrift.STRING, 4)
|
||||
offset += bthrift.Binary.WriteStringNocopy(buf[offset:], binaryWriter, p.Name)
|
||||
|
||||
offset += bthrift.Binary.WriteFieldEnd(buf[offset:])
|
||||
return offset
|
||||
}
|
||||
|
||||
func (p *PushConfig) fastWriteField5(buf []byte, binaryWriter bthrift.BinaryWriter) int {
|
||||
offset := 0
|
||||
offset += bthrift.Binary.WriteFieldBegin(buf[offset:], "remark", thrift.STRING, 5)
|
||||
offset += bthrift.Binary.WriteStringNocopy(buf[offset:], binaryWriter, p.Remark)
|
||||
|
||||
offset += bthrift.Binary.WriteFieldEnd(buf[offset:])
|
||||
return offset
|
||||
}
|
||||
|
||||
func (p *PushConfig) fastWriteField6(buf []byte, binaryWriter bthrift.BinaryWriter) int {
|
||||
offset := 0
|
||||
offset += bthrift.Binary.WriteFieldBegin(buf[offset:], "option", thrift.STRING, 6)
|
||||
offset += bthrift.Binary.WriteStringNocopy(buf[offset:], binaryWriter, p.Option)
|
||||
|
||||
offset += bthrift.Binary.WriteFieldEnd(buf[offset:])
|
||||
return offset
|
||||
}
|
||||
|
||||
func (p *PushConfig) field1Length() int {
|
||||
l := 0
|
||||
l += bthrift.Binary.FieldBeginLength("id", thrift.I64, 1)
|
||||
l += bthrift.Binary.I64Length(p.Id)
|
||||
|
||||
l += bthrift.Binary.FieldEndLength()
|
||||
return l
|
||||
}
|
||||
|
||||
func (p *PushConfig) field2Length() int {
|
||||
l := 0
|
||||
l += bthrift.Binary.FieldBeginLength("createdAt", thrift.I64, 2)
|
||||
l += bthrift.Binary.I64Length(p.CreatedAt)
|
||||
|
||||
l += bthrift.Binary.FieldEndLength()
|
||||
return l
|
||||
}
|
||||
|
||||
func (p *PushConfig) field3Length() int {
|
||||
l := 0
|
||||
l += bthrift.Binary.FieldBeginLength("type", thrift.BYTE, 3)
|
||||
l += bthrift.Binary.ByteLength(p.Type)
|
||||
|
||||
l += bthrift.Binary.FieldEndLength()
|
||||
return l
|
||||
}
|
||||
|
||||
func (p *PushConfig) field4Length() int {
|
||||
l := 0
|
||||
l += bthrift.Binary.FieldBeginLength("name", thrift.STRING, 4)
|
||||
l += bthrift.Binary.StringLengthNocopy(p.Name)
|
||||
|
||||
l += bthrift.Binary.FieldEndLength()
|
||||
return l
|
||||
}
|
||||
|
||||
func (p *PushConfig) field5Length() int {
|
||||
l := 0
|
||||
l += bthrift.Binary.FieldBeginLength("remark", thrift.STRING, 5)
|
||||
l += bthrift.Binary.StringLengthNocopy(p.Remark)
|
||||
|
||||
l += bthrift.Binary.FieldEndLength()
|
||||
return l
|
||||
}
|
||||
|
||||
func (p *PushConfig) field6Length() int {
|
||||
l := 0
|
||||
l += bthrift.Binary.FieldBeginLength("option", thrift.STRING, 6)
|
||||
l += bthrift.Binary.StringLengthNocopy(p.Option)
|
||||
|
||||
l += bthrift.Binary.FieldEndLength()
|
||||
return l
|
||||
}
|
4
kitex_gen/config/k-consts.go
Normal file
4
kitex_gen/config/k-consts.go
Normal file
@ -0,0 +1,4 @@
|
||||
package config
|
||||
|
||||
// KitexUnusedProtection is used to prevent 'imported and not used' error.
|
||||
var KitexUnusedProtection = struct{}{}
|
4
kitex_gen/push/k-consts.go
Normal file
4
kitex_gen/push/k-consts.go
Normal file
@ -0,0 +1,4 @@
|
||||
package push
|
||||
|
||||
// KitexUnusedProtection is used to prevent 'imported and not used' error.
|
||||
var KitexUnusedProtection = struct{}{}
|
1736
kitex_gen/push/k-push.go
Normal file
1736
kitex_gen/push/k-push.go
Normal file
File diff suppressed because it is too large
Load Diff
2417
kitex_gen/push/push.go
Normal file
2417
kitex_gen/push/push.go
Normal file
File diff suppressed because it is too large
Load Diff
62
kitex_gen/push/pushservice/client.go
Normal file
62
kitex_gen/push/pushservice/client.go
Normal file
@ -0,0 +1,62 @@
|
||||
// Code generated by Kitex v0.9.0. DO NOT EDIT.
|
||||
|
||||
package pushservice
|
||||
|
||||
import (
|
||||
"context"
|
||||
config "gitea.timerzz.com/kedaya_haitao/pusher/kitex_gen/config"
|
||||
push "gitea.timerzz.com/kedaya_haitao/pusher/kitex_gen/push"
|
||||
client "github.com/cloudwego/kitex/client"
|
||||
callopt "github.com/cloudwego/kitex/client/callopt"
|
||||
)
|
||||
|
||||
// Client is designed to provide IDL-compatible methods with call-option parameter for kitex framework.
|
||||
type Client interface {
|
||||
Push(ctx context.Context, req *push.PushReq, callOptions ...callopt.Option) (r *push.PushResp, err error)
|
||||
Add(ctx context.Context, req *config.PushConfig, callOptions ...callopt.Option) (err error)
|
||||
List(ctx context.Context, req *push.ListPusherRequest, callOptions ...callopt.Option) (r *push.ListPusherResponse, err error)
|
||||
}
|
||||
|
||||
// NewClient creates a client for the service defined in IDL.
|
||||
func NewClient(destService string, opts ...client.Option) (Client, error) {
|
||||
var options []client.Option
|
||||
options = append(options, client.WithDestService(destService))
|
||||
|
||||
options = append(options, opts...)
|
||||
|
||||
kc, err := client.NewClient(serviceInfoForClient(), options...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &kPushServiceClient{
|
||||
kClient: newServiceClient(kc),
|
||||
}, nil
|
||||
}
|
||||
|
||||
// MustNewClient creates a client for the service defined in IDL. It panics if any error occurs.
|
||||
func MustNewClient(destService string, opts ...client.Option) Client {
|
||||
kc, err := NewClient(destService, opts...)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
return kc
|
||||
}
|
||||
|
||||
type kPushServiceClient struct {
|
||||
*kClient
|
||||
}
|
||||
|
||||
func (p *kPushServiceClient) Push(ctx context.Context, req *push.PushReq, callOptions ...callopt.Option) (r *push.PushResp, err error) {
|
||||
ctx = client.NewCtxWithCallOptions(ctx, callOptions)
|
||||
return p.kClient.Push(ctx, req)
|
||||
}
|
||||
|
||||
func (p *kPushServiceClient) Add(ctx context.Context, req *config.PushConfig, callOptions ...callopt.Option) (err error) {
|
||||
ctx = client.NewCtxWithCallOptions(ctx, callOptions)
|
||||
return p.kClient.Add(ctx, req)
|
||||
}
|
||||
|
||||
func (p *kPushServiceClient) List(ctx context.Context, req *push.ListPusherRequest, callOptions ...callopt.Option) (r *push.ListPusherResponse, err error) {
|
||||
ctx = client.NewCtxWithCallOptions(ctx, callOptions)
|
||||
return p.kClient.List(ctx, req)
|
||||
}
|
24
kitex_gen/push/pushservice/invoker.go
Normal file
24
kitex_gen/push/pushservice/invoker.go
Normal file
@ -0,0 +1,24 @@
|
||||
// Code generated by Kitex v0.9.0. DO NOT EDIT.
|
||||
|
||||
package pushservice
|
||||
|
||||
import (
|
||||
push "gitea.timerzz.com/kedaya_haitao/pusher/kitex_gen/push"
|
||||
server "github.com/cloudwego/kitex/server"
|
||||
)
|
||||
|
||||
// NewInvoker creates a server.Invoker with the given handler and options.
|
||||
func NewInvoker(handler push.PushService, opts ...server.Option) server.Invoker {
|
||||
var options []server.Option
|
||||
|
||||
options = append(options, opts...)
|
||||
|
||||
s := server.NewInvoker(options...)
|
||||
if err := s.RegisterService(serviceInfo(), handler); err != nil {
|
||||
panic(err)
|
||||
}
|
||||
if err := s.Init(); err != nil {
|
||||
panic(err)
|
||||
}
|
||||
return s
|
||||
}
|
196
kitex_gen/push/pushservice/pushservice.go
Normal file
196
kitex_gen/push/pushservice/pushservice.go
Normal file
@ -0,0 +1,196 @@
|
||||
// Code generated by Kitex v0.9.0. DO NOT EDIT.
|
||||
|
||||
package pushservice
|
||||
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
config "gitea.timerzz.com/kedaya_haitao/pusher/kitex_gen/config"
|
||||
push "gitea.timerzz.com/kedaya_haitao/pusher/kitex_gen/push"
|
||||
client "github.com/cloudwego/kitex/client"
|
||||
kitex "github.com/cloudwego/kitex/pkg/serviceinfo"
|
||||
)
|
||||
|
||||
var errInvalidMessageType = errors.New("invalid message type for service method handler")
|
||||
|
||||
var serviceMethods = map[string]kitex.MethodInfo{
|
||||
"Push": kitex.NewMethodInfo(
|
||||
pushHandler,
|
||||
newPushServicePushArgs,
|
||||
newPushServicePushResult,
|
||||
false,
|
||||
kitex.WithStreamingMode(kitex.StreamingNone),
|
||||
),
|
||||
"Add": kitex.NewMethodInfo(
|
||||
addHandler,
|
||||
newPushServiceAddArgs,
|
||||
newPushServiceAddResult,
|
||||
false,
|
||||
kitex.WithStreamingMode(kitex.StreamingNone),
|
||||
),
|
||||
"List": kitex.NewMethodInfo(
|
||||
listHandler,
|
||||
newPushServiceListArgs,
|
||||
newPushServiceListResult,
|
||||
false,
|
||||
kitex.WithStreamingMode(kitex.StreamingNone),
|
||||
),
|
||||
}
|
||||
|
||||
var (
|
||||
pushServiceServiceInfo = NewServiceInfo()
|
||||
pushServiceServiceInfoForClient = NewServiceInfoForClient()
|
||||
pushServiceServiceInfoForStreamClient = NewServiceInfoForStreamClient()
|
||||
)
|
||||
|
||||
// for server
|
||||
func serviceInfo() *kitex.ServiceInfo {
|
||||
return pushServiceServiceInfo
|
||||
}
|
||||
|
||||
// for client
|
||||
func serviceInfoForStreamClient() *kitex.ServiceInfo {
|
||||
return pushServiceServiceInfoForStreamClient
|
||||
}
|
||||
|
||||
// for stream client
|
||||
func serviceInfoForClient() *kitex.ServiceInfo {
|
||||
return pushServiceServiceInfoForClient
|
||||
}
|
||||
|
||||
// NewServiceInfo creates a new ServiceInfo containing all methods
|
||||
func NewServiceInfo() *kitex.ServiceInfo {
|
||||
return newServiceInfo(false, true, true)
|
||||
}
|
||||
|
||||
// NewServiceInfo creates a new ServiceInfo containing non-streaming methods
|
||||
func NewServiceInfoForClient() *kitex.ServiceInfo {
|
||||
return newServiceInfo(false, false, true)
|
||||
}
|
||||
func NewServiceInfoForStreamClient() *kitex.ServiceInfo {
|
||||
return newServiceInfo(true, true, false)
|
||||
}
|
||||
|
||||
func newServiceInfo(hasStreaming bool, keepStreamingMethods bool, keepNonStreamingMethods bool) *kitex.ServiceInfo {
|
||||
serviceName := "PushService"
|
||||
handlerType := (*push.PushService)(nil)
|
||||
methods := map[string]kitex.MethodInfo{}
|
||||
for name, m := range serviceMethods {
|
||||
if m.IsStreaming() && !keepStreamingMethods {
|
||||
continue
|
||||
}
|
||||
if !m.IsStreaming() && !keepNonStreamingMethods {
|
||||
continue
|
||||
}
|
||||
methods[name] = m
|
||||
}
|
||||
extra := map[string]interface{}{
|
||||
"PackageName": "push",
|
||||
}
|
||||
if hasStreaming {
|
||||
extra["streaming"] = hasStreaming
|
||||
}
|
||||
svcInfo := &kitex.ServiceInfo{
|
||||
ServiceName: serviceName,
|
||||
HandlerType: handlerType,
|
||||
Methods: methods,
|
||||
PayloadCodec: kitex.Thrift,
|
||||
KiteXGenVersion: "v0.9.0",
|
||||
Extra: extra,
|
||||
}
|
||||
return svcInfo
|
||||
}
|
||||
|
||||
func pushHandler(ctx context.Context, handler interface{}, arg, result interface{}) error {
|
||||
realArg := arg.(*push.PushServicePushArgs)
|
||||
realResult := result.(*push.PushServicePushResult)
|
||||
success, err := handler.(push.PushService).Push(ctx, realArg.Req)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
realResult.Success = success
|
||||
return nil
|
||||
}
|
||||
func newPushServicePushArgs() interface{} {
|
||||
return push.NewPushServicePushArgs()
|
||||
}
|
||||
|
||||
func newPushServicePushResult() interface{} {
|
||||
return push.NewPushServicePushResult()
|
||||
}
|
||||
|
||||
func addHandler(ctx context.Context, handler interface{}, arg, result interface{}) error {
|
||||
realArg := arg.(*push.PushServiceAddArgs)
|
||||
|
||||
err := handler.(push.PushService).Add(ctx, realArg.Req)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
func newPushServiceAddArgs() interface{} {
|
||||
return push.NewPushServiceAddArgs()
|
||||
}
|
||||
|
||||
func newPushServiceAddResult() interface{} {
|
||||
return push.NewPushServiceAddResult()
|
||||
}
|
||||
|
||||
func listHandler(ctx context.Context, handler interface{}, arg, result interface{}) error {
|
||||
realArg := arg.(*push.PushServiceListArgs)
|
||||
realResult := result.(*push.PushServiceListResult)
|
||||
success, err := handler.(push.PushService).List(ctx, realArg.Req)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
realResult.Success = success
|
||||
return nil
|
||||
}
|
||||
func newPushServiceListArgs() interface{} {
|
||||
return push.NewPushServiceListArgs()
|
||||
}
|
||||
|
||||
func newPushServiceListResult() interface{} {
|
||||
return push.NewPushServiceListResult()
|
||||
}
|
||||
|
||||
type kClient struct {
|
||||
c client.Client
|
||||
}
|
||||
|
||||
func newServiceClient(c client.Client) *kClient {
|
||||
return &kClient{
|
||||
c: c,
|
||||
}
|
||||
}
|
||||
|
||||
func (p *kClient) Push(ctx context.Context, req *push.PushReq) (r *push.PushResp, err error) {
|
||||
var _args push.PushServicePushArgs
|
||||
_args.Req = req
|
||||
var _result push.PushServicePushResult
|
||||
if err = p.c.Call(ctx, "Push", &_args, &_result); err != nil {
|
||||
return
|
||||
}
|
||||
return _result.GetSuccess(), nil
|
||||
}
|
||||
|
||||
func (p *kClient) Add(ctx context.Context, req *config.PushConfig) (err error) {
|
||||
var _args push.PushServiceAddArgs
|
||||
_args.Req = req
|
||||
var _result push.PushServiceAddResult
|
||||
if err = p.c.Call(ctx, "Add", &_args, &_result); err != nil {
|
||||
return
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (p *kClient) List(ctx context.Context, req *push.ListPusherRequest) (r *push.ListPusherResponse, err error) {
|
||||
var _args push.PushServiceListArgs
|
||||
_args.Req = req
|
||||
var _result push.PushServiceListResult
|
||||
if err = p.c.Call(ctx, "List", &_args, &_result); err != nil {
|
||||
return
|
||||
}
|
||||
return _result.GetSuccess(), nil
|
||||
}
|
25
kitex_gen/push/pushservice/server.go
Normal file
25
kitex_gen/push/pushservice/server.go
Normal file
@ -0,0 +1,25 @@
|
||||
// Code generated by Kitex v0.9.0. DO NOT EDIT.
|
||||
package pushservice
|
||||
|
||||
import (
|
||||
push "gitea.timerzz.com/kedaya_haitao/pusher/kitex_gen/push"
|
||||
server "github.com/cloudwego/kitex/server"
|
||||
)
|
||||
|
||||
// NewServer creates a server.Server with the given handler and options.
|
||||
func NewServer(handler push.PushService, opts ...server.Option) server.Server {
|
||||
var options []server.Option
|
||||
|
||||
options = append(options, opts...)
|
||||
options = append(options, server.WithCompatibleMiddlewareForUnary())
|
||||
|
||||
svr := server.NewServer(options...)
|
||||
if err := svr.RegisterService(serviceInfo(), handler); err != nil {
|
||||
panic(err)
|
||||
}
|
||||
return svr
|
||||
}
|
||||
|
||||
func RegisterService(svr server.Server, handler push.PushService, opts ...server.RegisterOption) error {
|
||||
return svr.RegisterService(serviceInfo(), handler, opts...)
|
||||
}
|
3
kitex_info.yaml
Normal file
3
kitex_info.yaml
Normal file
@ -0,0 +1,3 @@
|
||||
kitexinfo:
|
||||
ServiceName: 'pusher'
|
||||
ToolVersion: 'v0.9.0'
|
65
main.go
Normal file
65
main.go
Normal file
@ -0,0 +1,65 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"net"
|
||||
"time"
|
||||
|
||||
"gitea.timerzz.com/kedaya_haitao/pusher/conf"
|
||||
"gitea.timerzz.com/kedaya_haitao/pusher/kitex_gen/push/pushservice"
|
||||
"github.com/cloudwego/kitex/pkg/klog"
|
||||
"github.com/cloudwego/kitex/pkg/rpcinfo"
|
||||
"github.com/cloudwego/kitex/pkg/transmeta"
|
||||
"github.com/cloudwego/kitex/server"
|
||||
kitexlogrus "github.com/kitex-contrib/obs-opentelemetry/logging/logrus"
|
||||
"go.uber.org/zap/zapcore"
|
||||
"gopkg.in/natefinch/lumberjack.v2"
|
||||
)
|
||||
|
||||
func main() {
|
||||
opts := kitexInit()
|
||||
|
||||
svr := pushservice.NewServer(new(PushServiceImpl), opts...)
|
||||
|
||||
err := svr.Run()
|
||||
if err != nil {
|
||||
klog.Error(err.Error())
|
||||
}
|
||||
}
|
||||
|
||||
func kitexInit() (opts []server.Option) {
|
||||
opts = append(opts, server.
|
||||
WithTransHandlerFactory(&mixTransHandlerFactory{nil}))
|
||||
|
||||
// address
|
||||
addr, err := net.ResolveTCPAddr("tcp", conf.GetConf().Kitex.Address)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
opts = append(opts, server.WithServiceAddr(addr))
|
||||
|
||||
// service info
|
||||
opts = append(opts, server.WithServerBasicInfo(&rpcinfo.EndpointBasicInfo{
|
||||
ServiceName: conf.GetConf().Kitex.Service,
|
||||
}))
|
||||
// thrift meta handler
|
||||
opts = append(opts, server.WithMetaHandler(transmeta.ServerTTHeaderHandler))
|
||||
|
||||
// klog
|
||||
logger := kitexlogrus.NewLogger()
|
||||
klog.SetLogger(logger)
|
||||
klog.SetLevel(conf.LogLevel())
|
||||
asyncWriter := &zapcore.BufferedWriteSyncer{
|
||||
WS: zapcore.AddSync(&lumberjack.Logger{
|
||||
Filename: conf.GetConf().Kitex.LogFileName,
|
||||
MaxSize: conf.GetConf().Kitex.LogMaxSize,
|
||||
MaxBackups: conf.GetConf().Kitex.LogMaxBackups,
|
||||
MaxAge: conf.GetConf().Kitex.LogMaxAge,
|
||||
}),
|
||||
FlushInterval: time.Minute,
|
||||
}
|
||||
klog.SetOutput(asyncWriter)
|
||||
server.RegisterShutdownHook(func() {
|
||||
asyncWriter.Sync()
|
||||
})
|
||||
return
|
||||
}
|
4
script/bootstrap.sh
Normal file
4
script/bootstrap.sh
Normal file
@ -0,0 +1,4 @@
|
||||
#! /usr/bin/env bash
|
||||
CURDIR=$(cd $(dirname $0); pwd)
|
||||
echo "$CURDIR/bin/pusher"
|
||||
exec "$CURDIR/bin/pusher"
|
Loading…
Reference in New Issue
Block a user