diff --git a/.version b/.version index 50aea0e..e3a4f19 100644 --- a/.version +++ b/.version @@ -1 +1 @@ -2.1.0 \ No newline at end of file +2.2.0 \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 09ed6e6..c0eb374 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,5 @@ +### v2.2.0 +* update libs ### v2.1.0 * update to go mod ### v2.0.0 diff --git a/controller/access_list.go b/controller/access_list.go index 9c85e51..bd6c5e8 100644 --- a/controller/access_list.go +++ b/controller/access_list.go @@ -1,9 +1,10 @@ package controller import ( + "context" "fmt" - rd "github.com/go-redis/redis" + rd "github.com/go-redis/redis/v8" rdLib "github.com/integration-system/isp-lib/v2/redis" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" @@ -28,14 +29,13 @@ type accessListController struct{} // @Failure 404 {object} structure.GrpcError // @Failure 500 {object} structure.GrpcError // @Router /access_list/get_by_id [POST] -func (c accessListController) GetById(req domain.Identity) ([]domain.MethodInfo, error) { - if app, err := model.AppRep.GetApplicationById(req.Id); err != nil { +func (c accessListController) GetById(request domain.Identity) ([]domain.MethodInfo, error) { + err := c.checkAppById(request.Id) + if err != nil { return nil, err - } else if app == nil { - return nil, status.Errorf(codes.NotFound, "application '%d' not found", req.Id) } - return c.getAccessListById(req.Id) + return c.getAccessListById(request.Id) } // SetOne godoc @@ -50,37 +50,30 @@ func (c accessListController) GetById(req domain.Identity) ([]domain.MethodInfo, // @Failure 500 {object} structure.GrpcError // @Router /access_list/set_one [POST] func (c accessListController) SetOne(request entity.AccessList) (*domain.CountResponse, error) { - if app, err := model.AppRep.GetApplicationById(request.AppId); err != nil { + err := c.checkAppById(request.AppId) + if err != nil { return nil, err - } else if app == nil { - return nil, status.Errorf(codes.NotFound, "application '%d' not found", request.AppId) } - var ( - resp = 0 - err error - ) - if err := model.DbClient.RunInTransaction(func(repository model.AccessListRepository) error { - if resp, err = repository.Upsert(request); err != nil { + resp := 0 + err = model.DbClient.RunInTransaction(func(repository model.AccessListRepository) error { + resp, err = repository.Upsert(request) + if err != nil { return err } - if _, err := redis.Client.Get().UseDb(rdLib.ApplicationPermissionDb, func(p rd.Pipeliner) error { + _, err = redis.Client.Get().UseDb(rdLib.ApplicationPermissionDb, func(p rd.Pipeliner) error { key := fmt.Sprintf("%d|%s", request.AppId, request.Method) - if _, err := p.Set(key, request.Value, 0).Result(); err != nil { - return err - } - return nil - }); err != nil { + _, err := p.Set(context.Background(), key, request.Value, 0).Result() return err - } else { - return nil - } - }); err != nil { + }) + return err + }) + if err != nil { return nil, err - } else { - return &domain.CountResponse{Count: resp}, nil } + + return &domain.CountResponse{Count: resp}, nil } // SetList godoc @@ -95,18 +88,13 @@ func (c accessListController) SetOne(request entity.AccessList) (*domain.CountRe // @Failure 500 {object} structure.GrpcError // @Router /access_list/set_list [POST] func (c accessListController) SetList(request domain.SetListRequest) ([]domain.MethodInfo, error) { - if app, err := model.AppRep.GetApplicationById(request.AppId); err != nil { + err := c.checkAppById(request.AppId) + if err != nil { return nil, err - } else if app == nil { - return nil, status.Errorf(codes.NotFound, "application '%d' not found", request.AppId) } - var ( - oldAccessList = make([]entity.AccessList, 0) - err error - ) - - if err := model.DbClient.RunInTransaction(func(repository model.AccessListRepository) error { + oldAccessList := make([]entity.AccessList, 0) + err = model.DbClient.RunInTransaction(func(repository model.AccessListRepository) error { if request.RemoveOld == true { oldAccessList, err = repository.DeleteById(request.AppId) if err != nil { @@ -131,41 +119,45 @@ func (c accessListController) SetList(request domain.SetListRequest) ([]domain.M } if len(newAccessList) > 0 { - if _, err := repository.UpsertArray(newAccessList); err != nil { + _, err := repository.UpsertArray(newAccessList) + if err != nil { return err } } - if _, err := redis.Client.Get().UseDb(rdLib.ApplicationPermissionDb, func(p rd.Pipeliner) error { + _, err := redis.Client.Get().UseDb(rdLib.ApplicationPermissionDb, func(p rd.Pipeliner) error { if len(redisDelRequest) > 0 { - if _, err := p.Del(redisDelRequest...).Result(); err != nil { + _, err := p.Del(context.Background(), redisDelRequest...).Result() + if err != nil { return err } } + if len(redisMsetRequest) > 0 { - if _, err := p.MSet(redisMsetRequest...).Result(); err != nil { + _, err := p.MSet(context.Background(), redisMsetRequest...).Result() + if err != nil { return err } } + return nil - }); err != nil { - return err - } else { - return nil - } - }); err != nil { + }) + return err + }) + if err != nil { return nil, err - } else { - return c.getAccessListById(request.AppId) } + + return c.getAccessListById(request.AppId) } func (c accessListController) getAccessListById(id int32) ([]domain.MethodInfo, error) { - if accessList, err := model.AccessListRep.GetByAppId(id); err != nil { + accessList, err := model.AccessListRep.GetByAppId(id) + if err != nil { return nil, err - } else { - return c.convertAccessList(accessList), nil } + + return c.convertAccessList(accessList), nil } func (accessListController) convertAccessList(accessLists []entity.AccessList) []domain.MethodInfo { @@ -178,3 +170,14 @@ func (accessListController) convertAccessList(accessLists []entity.AccessList) [ } return methodInfos } + +func (accessListController) checkAppById(appId int32) error { + app, err := model.AppRep.GetApplicationById(appId) + if err != nil { + return err + } + if app == nil { + return status.Errorf(codes.NotFound, "application '%d' not found", appId) + } + return nil +} diff --git a/controller/application.go b/controller/application.go index 4bea090..a40d289 100644 --- a/controller/application.go +++ b/controller/application.go @@ -1,9 +1,10 @@ package controller import ( + "context" "fmt" - rd "github.com/go-redis/redis" + rd "github.com/go-redis/redis/v8" "github.com/integration-system/isp-lib/v2/config" rdLib "github.com/integration-system/isp-lib/v2/redis" _ "github.com/integration-system/isp-lib/v2/structure" @@ -76,41 +77,56 @@ func (c applicationController) CreateUpdateApplication(app entity.Application) ( if err != nil { return nil, err } - s, e := model.ServiceRep.GetServiceById(app.ServiceId) - if e != nil { - return nil, e + + s, err := model.ServiceRep.GetServiceById(app.ServiceId) + if err != nil { + return nil, err } if s == nil { return nil, status.Errorf(codes.InvalidArgument, "Service with id %d not found", app.ServiceId) } + if app.Id == 0 { if existed != nil { return nil, status.Errorf(codes.AlreadyExists, "Application with name %s already exists", app.Name) } - app, e := model.AppRep.CreateApplication(app) - _, _ = c.enrichWithTokens(app) - return &domain.AppWithToken{App: app, Tokens: []entity.Token{}}, e - } else { - if existed != nil && existed.Id != app.Id { - return nil, status.Errorf(codes.AlreadyExists, "Application with name %s already exists", app.Name) - } - existed, err = model.AppRep.GetApplicationById(app.Id) + + app, err = model.AppRep.CreateApplication(app) if err != nil { return nil, err } - if existed == nil { - return nil, status.Errorf(codes.NotFound, "Application with id %d not found", app.Id) - } - app, e := model.AppRep.UpdateApplication(app) - if e != nil { - return nil, e - } - arr, err := c.enrichWithTokens(app) + + _, err = c.enrichWithTokens(app) if err != nil { return nil, err } - return arr[0], nil + + return &domain.AppWithToken{App: app, Tokens: []entity.Token{}}, nil } + + if existed != nil && existed.Id != app.Id { + return nil, status.Errorf(codes.AlreadyExists, "Application with name %s already exists", app.Name) + } + + existed, err = model.AppRep.GetApplicationById(app.Id) + if err != nil { + return nil, err + } + if existed == nil { + return nil, status.Errorf(codes.NotFound, "Application with id %d not found", app.Id) + } + + app, err = model.AppRep.UpdateApplication(app) + if err != nil { + return nil, err + } + arr, err := c.enrichWithTokens(app) + if err != nil { + return nil, err + } + + return arr[0], nil + } // GetApplicationById godoc @@ -133,6 +149,7 @@ func (c applicationController) GetApplicationById(identity domain.Identity) (*do if application == nil { return nil, status.Errorf(codes.NotFound, "Application with id %d not found", identity.Id) } + arr, err := c.enrichWithTokens(*application) if err != nil { return nil, err @@ -160,8 +177,7 @@ func (applicationController) DeleteApplications(list []int32) (domain.DeleteResp count = 0 instanceUuid = config.Get().(*conf.Configuration).InstanceUuid ) - - if _, err := redis.Client.Get().UseDb(rdLib.ApplicationTokenDb, func(p rd.Pipeliner) error { + _, err := redis.Client.Get().UseDb(rdLib.ApplicationTokenDb, func(p rd.Pipeliner) error { return model.DbClient.RunInTransaction(func( appRep model.AppRepository, tokenRep model.TokenRepository, accessRep model.AccessListRepository) error { @@ -190,33 +206,34 @@ func (applicationController) DeleteApplications(list []int32) (domain.DeleteResp for i, token := range tokenIdList { keys[i] = fmt.Sprintf("%s|%s", token, instanceUuid) } - if _, err := p.Del(keys...).Result(); err != nil { + + _, err := p.Del(context.Background(), keys...).Result() + if err != nil { return err } } - if count, err = appRep.DeleteApplications(list); err != nil { + count, err = appRep.DeleteApplications(list) + if err != nil { return err } if len(redisDelRequest) > 0 { - if _, err := redis.Client.Get().UseDb(rdLib.ApplicationPermissionDb, func(p rd.Pipeliner) error { - if _, err := p.Del(redisDelRequest...).Result(); err != nil { - return err - } else { - return nil - } - }); err != nil { + _, err := redis.Client.Get().UseDb(rdLib.ApplicationPermissionDb, func(p rd.Pipeliner) error { + _, err := p.Del(context.Background(), redisDelRequest...).Result() + return err + }) + if err != nil { return err } } return nil }) - }); err != nil { + }) + if err != nil { return domain.DeleteResponse{}, err - } else { - return domain.DeleteResponse{Deleted: count}, nil } + return domain.DeleteResponse{Deleted: count}, nil } // GetSystemTree godoc @@ -302,6 +319,7 @@ func (applicationController) enrichWithTokens(apps ...entity.Application) ([]*do if err != nil { return nil, err } + for _, v := range tokens { app := appMap[v.AppId] app.Tokens = append(app.Tokens, v) diff --git a/controller/domain.go b/controller/domain.go index 8699682..b610d15 100644 --- a/controller/domain.go +++ b/controller/domain.go @@ -55,33 +55,43 @@ func (domainController) CreateUpdateDomain(domain entity.Domain, md metadata.MD) } domain.SystemId = int32(sysId) - sys, e := model.SystemRep.GetSystemById(domain.SystemId) - if e != nil { + sys, err := model.SystemRep.GetSystemById(domain.SystemId) + if err != nil { return nil, err } if sys == nil { return nil, status.Errorf(codes.InvalidArgument, "System with id %d not found", domain.SystemId) } + if domain.Id == 0 { if existed != nil { return nil, status.Errorf(codes.AlreadyExists, "Domain with name %s already exists", domain.Name) } - domain, e := model.DomainRep.CreateDomain(domain) - return &domain, e - } else { - if existed != nil && existed.Id != domain.Id { - return nil, status.Errorf(codes.AlreadyExists, "Domain with name %s already exists", domain.Name) - } - existed, err = model.DomainRep.GetDomainById(domain.Id) + + domain, err = model.DomainRep.CreateDomain(domain) if err != nil { return nil, err } - if existed == nil { - return nil, status.Errorf(codes.NotFound, "Domain with id %d not found", domain.Id) - } - domain, e := model.DomainRep.UpdateDomain(domain) - return &domain, e + return &domain, nil } + + if existed != nil && existed.Id != domain.Id { + return nil, status.Errorf(codes.AlreadyExists, "Domain with name %s already exists", domain.Name) + } + + existed, err = model.DomainRep.GetDomainById(domain.Id) + if err != nil { + return nil, err + } + if existed == nil { + return nil, status.Errorf(codes.NotFound, "Domain with id %d not found", domain.Id) + } + + domain, err = model.DomainRep.UpdateDomain(domain) + if err != nil { + return nil, err + } + return &domain, nil } // GetDomainById godoc @@ -96,14 +106,14 @@ func (domainController) CreateUpdateDomain(domain entity.Domain, md metadata.MD) // @Failure 500 {object} structure.GrpcError // @Router /domain/get_domain_by_id [POST] func (domainController) GetDomainById(identity domain.Identity) (*entity.Domain, error) { - domain, err := model.DomainRep.GetDomainById(identity.Id) + d, err := model.DomainRep.GetDomainById(identity.Id) if err != nil { return nil, err } - if domain == nil { + if d == nil { return nil, status.Errorf(codes.NotFound, "Domain with id %d not found", identity.Id) } - return domain, err + return d, err } // DeleteDomains godoc @@ -121,6 +131,10 @@ func (domainController) DeleteDomains(list []int32) (domain.DeleteResponse, erro if len(list) == 0 { return domain.DeleteResponse{Deleted: 0}, status.Errorf(codes.InvalidArgument, "At least one id are required") } + res, err := model.DomainRep.DeleteDomains(list) - return domain.DeleteResponse{Deleted: res}, err + if err != nil { + return domain.DeleteResponse{}, err + } + return domain.DeleteResponse{Deleted: res}, nil } diff --git a/controller/service.go b/controller/service.go index 805636a..e318f72 100644 --- a/controller/service.go +++ b/controller/service.go @@ -62,33 +62,44 @@ func (serviceController) CreateUpdateService(service entity.Service) (*entity.Se if err != nil { return nil, err } - domain, e := model.DomainRep.GetDomainById(service.DomainId) - if e != nil { + + d, err := model.DomainRep.GetDomainById(service.DomainId) + if err != nil { return nil, err } - if domain == nil { + if d == nil { return nil, status.Errorf(codes.InvalidArgument, "Domain with id %d not found", service.DomainId) } + if service.Id == 0 { if existed != nil { return nil, status.Errorf(codes.AlreadyExists, "Service with name %s already exists", service.Name) } - service, e := model.ServiceRep.CreateService(service) - return &service, e - } else { - if existed != nil && existed.Id != service.Id { - return nil, status.Errorf(codes.AlreadyExists, "Service with name %s already exists", service.Name) - } - existed, err = model.ServiceRep.GetServiceById(service.Id) + service, err = model.ServiceRep.CreateService(service) if err != nil { return nil, err } - if existed == nil { - return nil, status.Errorf(codes.NotFound, "Service with id %d not found", service.Id) - } - service, e := model.ServiceRep.UpdateService(service) - return &service, e + return &service, nil } + + if existed != nil && existed.Id != service.Id { + return nil, status.Errorf(codes.AlreadyExists, "Service with name %s already exists", service.Name) + } + + existed, err = model.ServiceRep.GetServiceById(service.Id) + if err != nil { + return nil, err + } + if existed == nil { + return nil, status.Errorf(codes.NotFound, "Service with id %d not found", service.Id) + } + + service, err = model.ServiceRep.UpdateService(service) + if err != nil { + return nil, err + } + + return &service, nil } // GetServiceById godoc @@ -110,7 +121,8 @@ func (serviceController) GetServiceById(identity domain.Identity) (*entity.Servi if service == nil { return nil, status.Errorf(codes.NotFound, "Service with id %d not found", identity.Id) } - return service, err + + return service, nil } // DeleteService godoc @@ -128,6 +140,10 @@ func (serviceController) DeleteService(list []int32) (domain.DeleteResponse, err if len(list) == 0 { return domain.DeleteResponse{Deleted: 0}, status.Error(codes.InvalidArgument, "At least one id are required") } + res, err := model.ServiceRep.DeleteServices(list) - return domain.DeleteResponse{Deleted: res}, err + if err != nil { + return domain.DeleteResponse{}, err + } + return domain.DeleteResponse{Deleted: res}, nil } diff --git a/controller/system.go b/controller/system.go index b42a8db..2e692a7 100644 --- a/controller/system.go +++ b/controller/system.go @@ -54,22 +54,32 @@ func (systemController) CreateUpdateSystem(system entity.System) (*entity.System if existed != nil { return nil, status.Errorf(codes.AlreadyExists, "System with name %s already exists", system.Name) } - sys, e := model.SystemRep.CreateSystem(system) - return &sys, e - } else { - if existed != nil && existed.Id != system.Id { - return nil, status.Errorf(codes.AlreadyExists, "System with name %s already exists", system.Name) - } - existed, err = model.SystemRep.GetSystemById(system.Id) + + system, err = model.SystemRep.CreateSystem(system) if err != nil { return nil, err } - if existed == nil { - return nil, status.Error(codes.NotFound, fmt.Sprintf("System with id %d not found", system.Id)) - } - sys, e := model.SystemRep.UpdateSystem(system) - return &sys, e + return &system, nil } + + if existed != nil && existed.Id != system.Id { + return nil, status.Errorf(codes.AlreadyExists, "System with name %s already exists", system.Name) + } + + existed, err = model.SystemRep.GetSystemById(system.Id) + if err != nil { + return nil, err + } + if existed == nil { + return nil, status.Error(codes.NotFound, fmt.Sprintf("System with id %d not found", system.Id)) + } + + system, err = model.SystemRep.UpdateSystem(system) + if err != nil { + return nil, err + } + return &system, nil + } // GetSystemById godoc @@ -91,7 +101,7 @@ func (systemController) GetSystemById(identity domain.Identity) (*entity.System, if sys == nil { return nil, status.Error(codes.NotFound, fmt.Sprintf("System with id %d not found", identity.Id)) } - return sys, err + return sys, nil } // DeleteSystems godoc @@ -109,6 +119,10 @@ func (systemController) DeleteSystems(list []int32) (domain.DeleteResponse, erro if len(list) == 0 { return domain.DeleteResponse{}, status.Error(codes.InvalidArgument, "At least one id are required") } + res, err := model.SystemRep.DeleteSystems(list) - return domain.DeleteResponse{Deleted: res}, err + if err != nil { + return domain.DeleteResponse{}, err + } + return domain.DeleteResponse{Deleted: res}, nil } diff --git a/controller/token.go b/controller/token.go index 10c9faa..ab0783d 100644 --- a/controller/token.go +++ b/controller/token.go @@ -1,10 +1,11 @@ package controller import ( + "context" "fmt" "time" - rd "github.com/go-redis/redis" + rd "github.com/go-redis/redis/v8" "github.com/integration-system/isp-lib/v2/config" redisLib "github.com/integration-system/isp-lib/v2/redis" "google.golang.org/grpc/codes" @@ -143,13 +144,13 @@ func (tokenController) SetIdentityMapForTokenV2(token string, expireTime int64, instanceUuid := config.Get().(*conf.Configuration).InstanceUuid _, e := redis.Client.Get().UseDbTx(redisLib.ApplicationTokenDb, func(p rd.Pipeliner) error { key := fmt.Sprintf("%s|%s", token, instanceUuid) - stat := p.HMSet(key, idMap) + stat := p.HMSet(context.Background(), key, idMap) err := stat.Err() if err != nil { return err } if expireTime > 0 { - err = p.Expire(token, time.Duration(expireTime)*time.Millisecond).Err() + err = p.Expire(context.Background(), token, time.Duration(expireTime)*time.Millisecond).Err() } return err }) @@ -218,28 +219,26 @@ func (tokenController) revokeTokens(tokens []string) (*domain.DeleteResponse, er var ( count = 0 instanceUuid = config.Get().(*conf.Configuration).InstanceUuid + keys = make([]string, len(tokens)) ) - - keys := make([]string, len(tokens)) for i, token := range tokens { keys[i] = fmt.Sprintf("%s|%s", token, instanceUuid) } - - if err := model.DbClient.RunInTransaction(func(rep model.TokenRepository) error { - if deleted, err := rep.DeleteTokens(tokens); err != nil { + err := model.DbClient.RunInTransaction(func(rep model.TokenRepository) error { + deleted, err := rep.DeleteTokens(tokens) + if err != nil { return err - } else { - count = deleted } + count = deleted - _, err := redis.Client.Get().UseDbTx(redisLib.ApplicationTokenDb, func(p rd.Pipeliner) error { - _, err := p.Del(keys...).Result() + _, err = redis.Client.Get().UseDbTx(redisLib.ApplicationTokenDb, func(p rd.Pipeliner) error { + _, err := p.Del(context.Background(), keys...).Result() return err }) return err - }); err != nil { + }) + if err != nil { return nil, err - } else { - return &domain.DeleteResponse{Deleted: count}, nil } + return &domain.DeleteResponse{Deleted: count}, nil } diff --git a/go.mod b/go.mod index 4d5d233..5a82787 100644 --- a/go.mod +++ b/go.mod @@ -4,10 +4,10 @@ go 1.13 require ( github.com/dgrijalva/jwt-go v3.2.0+incompatible - github.com/go-pg/pg/v9 v9.1.4 - github.com/go-redis/redis v6.15.6+incompatible - github.com/integration-system/isp-lib/v2 v2.4.0 - github.com/integration-system/isp-log v1.1.2 + github.com/go-pg/pg/v9 v9.1.5 + github.com/go-redis/redis/v8 v8.0.0-beta.2 + github.com/integration-system/isp-lib/v2 v2.5.0 + github.com/integration-system/isp-log v1.1.3 github.com/pressly/goose v2.6.0+incompatible - google.golang.org/grpc v1.28.0 + google.golang.org/grpc v1.29.1 ) diff --git a/go.sum b/go.sum index 600c592..d85933a 100644 --- a/go.sum +++ b/go.sum @@ -3,17 +3,20 @@ github.com/AndreasBriese/bbloom v0.0.0-20190306092124-e2d15f34fcf9/go.mod h1:bOv github.com/BurntSushi/toml v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/DataDog/datadog-go v2.2.0+incompatible/go.mod h1:LButxg5PwREeZtORoXG3tL4fMGNddJ+vMq1mwgfaqoQ= +github.com/DataDog/sketches-go v0.0.0-20190923095040-43f19ad77ff7 h1:qELHH0AWCvf98Yf+CNIJx9vOZOfHFDDzgDRYsnNk/vs= +github.com/DataDog/sketches-go v0.0.0-20190923095040-43f19ad77ff7/go.mod h1:Q5DbzQ+3AkgGwymQO7aZFNP7ns2lZKGtvRBzRXfdi60= github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU= github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= -github.com/antihax/optional v0.0.0-20180407024304-ca021399b1a6/go.mod h1:V8iCPQYkqmusNa815XgQio277wI47sdRh1dUOLdyC6Q= github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8= github.com/armon/go-metrics v0.0.0-20190430140413-ec5e00d3c878/go.mod h1:3AMJUQhVx52RsWOnlkpikZr01T/yAVN2gn0861vByNg= github.com/asaskevich/govalidator v0.0.0-20180315120708-ccb8e960c48f h1:y2hSFdXeA1y5z5f0vfNO0Dg5qVY036qzlz3Pds0B92o= github.com/asaskevich/govalidator v0.0.0-20180315120708-ccb8e960c48f/go.mod h1:lB+ZfQJz7igIIfQNfa7Ml4HSf2uFQQRzpGGRXenZAgY= github.com/aws/aws-sdk-go v1.29.9/go.mod h1:1KvfttTE3SPKMpo8g2c6jL3ZKfXtFvKscTgahTma5Xg= +github.com/benbjohnson/clock v1.0.0 h1:78Jk/r6m4wCi6sndMpty7A//t4dw/RW5fV4ZgDVfX1w= +github.com/benbjohnson/clock v1.0.0/go.mod h1:bGMdMPoPVvcYyt1gHDf4J2KE153Yf9BuiUKYMaxlTDM= github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8= github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= @@ -61,16 +64,18 @@ github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9 github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk= github.com/go-pg/pg/v9 v9.0.0-beta.14/go.mod h1:T2Sr6bpTCOr2lUqOUMiXLMJqZHSUBKk1LdgSqjwhZfA= github.com/go-pg/pg/v9 v9.0.3/go.mod h1:Tm/Q3Vt6gdQOH6TTN1H/xLlIXc+Qrka7TZ6uREtu/eA= -github.com/go-pg/pg/v9 v9.1.4 h1:9FqHGMSDrgCKwFJ0ANCSOsg8rBjNYVrYfYbpGgw2Whw= -github.com/go-pg/pg/v9 v9.1.4/go.mod h1:QM13HBLkdml4zcKOfUfGLymM6hb72aKTJLrmaH8rsFg= +github.com/go-pg/pg/v9 v9.1.5 h1:9BOm2A6WhzrQmjuaEbqlic6MBycIP1mutJegEDsIsWY= +github.com/go-pg/pg/v9 v9.1.5/go.mod h1:QM13HBLkdml4zcKOfUfGLymM6hb72aKTJLrmaH8rsFg= github.com/go-pg/urlstruct v0.1.0/go.mod h1:2Nag+BIny6G/KYCkdt++ZnqU/VinzimGapKfs4kwlN0= github.com/go-pg/urlstruct v0.2.6/go.mod h1:dxENwVISWSOX+k87hDt0ueEJadD+gZWv3tHzwfmZPu8= github.com/go-pg/urlstruct v0.3.0 h1:ORiTb205uT7v7lvq4VUOQ4ddJ5TjFRlVRWqWsMBgek4= github.com/go-pg/urlstruct v0.3.0/go.mod h1:/XKyiUOUUS3onjF+LJxbfmSywYAdl6qMfVbX33Q8rgg= +github.com/go-pg/urlstruct v0.4.0 h1:3lmbUGYQclB3UOx9akDs2T251zwkKQuPkvPTmCm07+A= +github.com/go-pg/urlstruct v0.4.0/go.mod h1:/XKyiUOUUS3onjF+LJxbfmSywYAdl6qMfVbX33Q8rgg= github.com/go-pg/zerochecker v0.1.1 h1:av77Qe7Gs+1oYGGh51k0sbZ0bUaxJEdeP0r8YE64Dco= github.com/go-pg/zerochecker v0.1.1/go.mod h1:NJZ4wKL0NmTtz0GKCoJ8kym6Xn/EQzXRl2OnAe7MmDo= -github.com/go-redis/redis v6.15.6+incompatible h1:H9evprGPLI8+ci7fxQx6WNZHJSb7be8FqJQRhdQZ5Sg= -github.com/go-redis/redis v6.15.6+incompatible/go.mod h1:NAIEuMOZ/fxfXJIrKDQDz8wamY7mA7PouImQ2Jvg6kA= +github.com/go-redis/redis/v8 v8.0.0-beta.2 h1:9S28J9QMBotgI3tGgXbX1Wk9i8QYC3Orw4bTLoPrQeI= +github.com/go-redis/redis/v8 v8.0.0-beta.2/go.mod h1:o1M7JtsgfDYyv3o+gBn/jJ1LkqpnCrmil7PSppZGBak= github.com/go-sql-driver/mysql v1.5.0/go.mod h1:DCzpHaOWr8IXmIStZouvnhqoel9Qv2LBy8hT2VhHyBg= github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= github.com/gobwas/httphead v0.0.0-20180130184737-2c6c146eadee h1:s+21KNqlpePfkah2I+gwHF8xmJWRjooY+5248k6m4A0= @@ -93,11 +98,16 @@ github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5y github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= github.com/golang/protobuf v1.3.4 h1:87PNWwrRvUSnqS4dlcBU/ftvOIBep4sYuBLlh6rX2wk= github.com/golang/protobuf v1.3.4/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= +github.com/golang/protobuf v1.3.5 h1:F768QJ1E9tib+q5Sc8MkdJi1RxLTbRcTf8LJV56aRls= +github.com/golang/protobuf v1.3.5/go.mod h1:6O5/vntMXwX2lRkT1hjjk0nAC1IDOTvTlVgjlRvqsdk= github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= 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 h1:Xye71clBPdm5HgqGwUkwhbynsUJZhDbS20FvLhQ2izg= github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= +github.com/google/go-cmp v0.4.0 h1:xsAVV57WRhGj6kEIi8ReJzQlHHqcBYCElAvkovg3B/4= +github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/gofuzz v1.0.0 h1:A8PeW59pxE9IoFRqBp37U+mSNaQoZ46F1f0f863XSXw= github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= github.com/gorilla/websocket v1.4.0/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ= @@ -106,7 +116,6 @@ github.com/gorilla/websocket v1.4.1/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/ad github.com/grpc-ecosystem/go-grpc-middleware v1.0.0/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs= github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk= github.com/grpc-ecosystem/grpc-gateway v1.9.0/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY= -github.com/grpc-ecosystem/grpc-gateway v1.13.0/go.mod h1:8XEsbTttt/W+VvjtQhLACqCisSPWTxCZ7sBRjU6iH9c= github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= github.com/hashicorp/go-cleanhttp v0.5.0/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= github.com/hashicorp/go-hclog v0.9.1/go.mod h1:5CU+agLiy3J7N7QjHK5d05KxGsuXiQLrjA0H7acj2lQ= @@ -124,17 +133,17 @@ github.com/hashicorp/raft-boltdb v0.0.0-20171010151810-6e5ba93211ea/go.mod h1:pN github.com/hpcloud/tail v1.0.0 h1:nfCOvKYfkgYP8hkirhJocXT2+zOD8yUNjXaWfTlyFKI= github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8= -github.com/integration-system/bellows v0.0.0-20190821124023-244325e8836c h1:yyIH4qCFf5LD5PKhXoX4BZh3wRjd59xBV4eAQTBwS6k= -github.com/integration-system/bellows v0.0.0-20190821124023-244325e8836c/go.mod h1:6cf4ZNvtzZ/KMiuc+d5Y7rSHjzlYBWEqbVyDfUDhqIE= +github.com/integration-system/bellows v1.0.0 h1:fVFBYo7Oty4IiIWukjSgBoaCi+0EmPz7LMO8ACs+gDc= +github.com/integration-system/bellows v1.0.0/go.mod h1:qHPg1ptN3AHHr0f/wvoicfA2LOCprOyrbXnIa5QIRe0= github.com/integration-system/go-cmp v0.0.0-20190131081942-ac5582987a2f h1:52UOJguw5yqe1y2JjmyVxGcZf3kv2BQeUodR363MkiQ= github.com/integration-system/go-cmp v0.0.0-20190131081942-ac5582987a2f/go.mod h1:w+dmaWojuIwNujSYg6qt1wKHhSdorLOivCEl/XuLzbM= github.com/integration-system/gowsdl v1.0.0/go.mod h1:ZwTCE+Av5aQLnPj2/3PIop6mzCs1FY7jXrcWDvSjrBA= github.com/integration-system/isp-etp-go/v2 v2.1.1 h1:6LU9eE1cGVpp8HNRYu83K4hY49YlNPFd/uj3+Iog4ro= github.com/integration-system/isp-etp-go/v2 v2.1.1/go.mod h1:Ndq5DMM3sDJjZn4cyKKvZrVED0FMeoXMRWHZTq+2Z1o= -github.com/integration-system/isp-lib/v2 v2.4.0 h1:oP7hIY75zLa+IBGzp58A4vMRu1HaD1nckooMmm6DE0Y= -github.com/integration-system/isp-lib/v2 v2.4.0/go.mod h1:hxyzKBD7eIf6Hm4x6zRsLW5p8m/aFeqeezKMFYBAtho= -github.com/integration-system/isp-log v1.1.2 h1:bnWxPjDOC1Y/tEzFxa42aG+xaPRWizuJADAwXgp2i5U= -github.com/integration-system/isp-log v1.1.2/go.mod h1:VVMr3cHW+RuFurPUSeVz71KUnOGQxogxO5atV9N8ISs= +github.com/integration-system/isp-lib/v2 v2.5.0 h1:Y9+x4vf+OTzmuFocGiTgl/V+dhNW3DD5GU5EQKWnweA= +github.com/integration-system/isp-lib/v2 v2.5.0/go.mod h1:slmiYHBnJllvd+zXay+HERPzb/HVakkVf+IIRCod1UA= +github.com/integration-system/isp-log v1.1.3 h1:+oLEF5fxaDUUQI4x44FGifEEFAR2ZvXusYGTD7m+87Y= +github.com/integration-system/isp-log v1.1.3/go.mod h1:VVMr3cHW+RuFurPUSeVz71KUnOGQxogxO5atV9N8ISs= github.com/integration-system/jsonschema v1.0.0 h1:Lci4sHGhOX27qCgZo5rvJ37Bjcfm+qCwU0yvw6ImEX4= github.com/integration-system/jsonschema v1.0.0/go.mod h1:EoqDH7RmC8Epg5EgjboIxDo7Udv3WX2exGqtIVB4hI0= github.com/jinzhu/inflection v1.0.0 h1:K317FqzuhWc8YvSVlFMCCUb36O/S9MCKRDI7QkRKD/E= @@ -151,6 +160,9 @@ github.com/kisielk/errcheck v1.2.0/go.mod h1:/BMXB+zMLi60iA8Vv6Ksmxu/1UDYcXs4uQL github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= github.com/klauspost/compress v1.8.2 h1:Bx0qjetmNjdFXASH02NSAREKpiaDwkO1DRZ3dV2KCcs= github.com/klauspost/compress v1.8.2/go.mod h1:RyIbtBH6LamlWaDj8nUwkbUhJ87Yi3uG0guNDohfE1A= +github.com/klauspost/compress v1.10.0/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= +github.com/klauspost/compress v1.10.4 h1:jFzIFaf586tquEB5EhzQG0HwGNSlgAJpG53G6Ss11wc= +github.com/klauspost/compress v1.10.4/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= github.com/klauspost/cpuid v1.2.1 h1:vJi+O/nMdFt0vqm8NZBI6wzALWdA2X+egi0ogNyrC/w= github.com/klauspost/cpuid v1.2.1/go.mod h1:Pj4uuM528wm8OyEC2QMXAi2YiTZ96dNQPGgoMS4s3ek= github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= @@ -197,6 +209,7 @@ github.com/onsi/ginkgo v1.10.1 h1:q/mM8GF/n0shIN8SaAZ0V+jnLPzen6WIVZdiwrRlMlo= github.com/onsi/ginkgo v1.10.1/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= github.com/onsi/gomega v1.7.0 h1:XPnZz8VVBHjVsy1vzJmRwIcSwiUO+JFfrv/xGiigmME= github.com/onsi/gomega v1.7.0/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= +github.com/opentracing/opentracing-go v1.1.1-0.20190913142402-a7454ce5950e/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o= github.com/pascaldekloe/goe v0.1.0/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= github.com/pelletier/go-toml v1.2.0 h1:T5zMGML61Wp+FlcbWjRDT7yAxhJNAiPPLOFECq181zc= github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic= @@ -237,7 +250,6 @@ github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40T github.com/rcrowley/go-metrics v0.0.0-20190826022208-cac0b30c2563 h1:dY6ETXrvDG7Sa4vE8ZQG4yqWg6UnOcbqTAahkV813vQ= github.com/rcrowley/go-metrics v0.0.0-20190826022208-cac0b30c2563/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg= -github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ= github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= github.com/rs/xid v1.2.2-0.20200205151950-d13a6085d55c/go.mod h1:trrq9SKmegXys3aeAKXMUTdJsYXVwGY3RLcfgqegfbg= github.com/russross/blackfriday v1.5.2/go.mod h1:JO/DiYxRf+HjHt06OyowR9PTA263kcR/rfWxYHBV53g= @@ -246,6 +258,8 @@ github.com/segmentio/encoding v0.1.10/go.mod h1:RWhr02uzMB9gQC1x+MfYxedtmBibb9cZ github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= github.com/sirupsen/logrus v1.4.2 h1:SPIRibHv4MatM3XXNO2BJeFLZwZ2LvZgfQ5+UNI2im4= github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE= +github.com/sirupsen/logrus v1.5.0 h1:1N5EYkVAPEywqZRJd7cwnRtCb6xJx7NH3T3WUTF980Q= +github.com/sirupsen/logrus v1.5.0/go.mod h1:+F7Ogzej0PZc/94MaYx/nvG9jOFMD2osvC3s+Squfpo= github.com/soheilhy/cmux v0.1.4/go.mod h1:IM3LyeVVIOuxMH7sFAkER9+bJ4dT7Ms6E4xg4kGIyLM= github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= github.com/spf13/afero v1.1.2 h1:m8/z1t7/fwjysjQRYbP0RD+bUIF/8tJwPdEZsI83ACI= @@ -282,9 +296,13 @@ github.com/valyala/fasthttp v1.9.0/go.mod h1:FstJa9V+Pj9vQ7OJie2qMHdwemEDaDiSdBn github.com/valyala/tcplisten v0.0.0-20161114210144-ceec8f93295a/go.mod h1:v3UYOV9WzVtRmSR+PDvWpU/qWl4Wa5LApYYX4ZtKbio= github.com/vmihailenco/bufpool v0.1.5 h1:mEO/biwhAgiY97yPMmAdH4PvaIu63C6uGBdfSdoMo/I= github.com/vmihailenco/bufpool v0.1.5/go.mod h1:fL9i/PRTuS7AELqAHwSU1Zf1c70xhkhGe/cD5ud9pJk= +github.com/vmihailenco/bufpool v0.1.11 h1:gOq2WmBrq0i2yW5QJ16ykccQ4wH9UyEsgLm6czKAd94= +github.com/vmihailenco/bufpool v0.1.11/go.mod h1:AFf/MOy3l2CFTKbxwt0mp2MwnqjNEs5H/UxrkA5jxTQ= github.com/vmihailenco/msgpack/v4 v4.3.5/go.mod h1:DuaveEe48abshDmz5UBKyZ+yDugvaeFk5ayfrewUOaw= github.com/vmihailenco/msgpack/v4 v4.3.7 h1:Aj4eMY2qXTRfWRwHKJ2n/CWKVy15pCYN327QMJ/OUVs= github.com/vmihailenco/msgpack/v4 v4.3.7/go.mod h1:Ii+PksJlvFT5ZRcB/4YLAInMIp6a0WOCm0L3BU0aNG4= +github.com/vmihailenco/msgpack/v4 v4.3.11 h1:Q47CePddpNGNhk4GCnAx9DDtASi2rasatE0cd26cZoE= +github.com/vmihailenco/msgpack/v4 v4.3.11/go.mod h1:gborTTJjAo/GWTqqRjrLCn9pgNN+NXzzngzBKDPIqw4= github.com/vmihailenco/tagparser v0.1.0/go.mod h1:OeAg3pn3UbLjkWt+rN9oFYB6u/cQgqMEUPoW2WPyhdI= github.com/vmihailenco/tagparser v0.1.1 h1:quXMXlA39OCbd2wAdTsGDlK9RkOk6Wuw+x37wVyIuWY= github.com/vmihailenco/tagparser v0.1.1/go.mod h1:OeAg3pn3UbLjkWt+rN9oFYB6u/cQgqMEUPoW2WPyhdI= @@ -292,6 +310,8 @@ github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77/go.mod h1:aYKd//L2LvnjZzWKhF00oedf4jCCReLcmhLdhm1A27Q= go.etcd.io/bbolt v1.3.2/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU= go.etcd.io/bbolt v1.3.3/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU= +go.opentelemetry.io/otel v0.5.0 h1:tdIR1veg/z+VRJaw/6SIxz+QX3l+m+BDleYLTs+GC1g= +go.opentelemetry.io/otel v0.5.0/go.mod h1:jzBIgIzK43Iu1BpDAXwqOd6UPsSAk+ewVZ5ofSXw4Ek= go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= go.uber.org/atomic v1.5.0 h1:OI5t8sDa1Or+q8AeE+yKeB/SDYioSHAgcVljj9JIETY= go.uber.org/atomic v1.5.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ= @@ -315,6 +335,8 @@ golang.org/x/crypto v0.0.0-20191128160524-b544559bb6d1/go.mod h1:LzIPMQfyMNhhGPh golang.org/x/crypto v0.0.0-20200206161412-a0c6ece9d31a/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200221231518-2aa609cf4a9d h1:1ZiEyfaQIg3Qh0EoqpwAakHVhecoE5wlSg5GjnafJGw= golang.org/x/crypto v0.0.0-20200221231518-2aa609cf4a9d/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.0.0-20200406173513-056763e48d71 h1:DOmugCavvUtnUD114C1Wh+UgTgQZ4pMLzXxi1pSt+/Y= +golang.org/x/crypto v0.0.0-20200406173513-056763e48d71/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= 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= @@ -340,12 +362,12 @@ golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod h1:z5CRVTTTmAJ677TzLL golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190827160401-ba9fcec4b297/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190923162816-aa69164e4478/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20191002035440-2ec189313ef0/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200222033325-078779b8f2d8/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200226121028-0de0cce0169b h1:0mm1VjtFUOIlE1SbDlwjYaDxZVDP2S5ou6y0gSgXHu8= -golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200301022130-244492dfa37a/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e h1:3G+cUijn7XD+S4eJFddp53Pv7+slrESplyjG25HgL+k= +golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= 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= @@ -372,11 +394,16 @@ golang.org/x/sys v0.0.0-20191010194322-b09406accb47/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4 h1:sfkvUWPNGwSV+8/fNqctR5lS2AqCSqYwXdrjCxp/dXo= golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200409092240-59c9f1ba88fa h1:mQTN3ECqfsViCNBgq+A40vdwhkGykrrQlYe3mPj6BoU= +golang.org/x/sys v0.0.0-20200409092240-59c9f1ba88fa/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2 h1:tW2bmiBqwgJj/UpqtC8EpXEZVYOwU0yG4iWbprSVAcs= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4 h1:SvFZT6jyqRaOeXpc5h/JSfZenJ2O330aBsf7JfSUXmQ= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.0.0-20191024005414-555d28b269f0 h1:/5xXl8Y5W96D+TtHSlonuFqGHIWVuyCkGJLwGh9JJFs= +golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/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-20181030221726-6c7e314b6563/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= @@ -393,24 +420,26 @@ golang.org/x/tools v0.0.0-20200220224806-8a925fa4c0df/go.mod h1:TB2adYChydJhpapK golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898 h1:/atklqdjdhuosWIl6AIbOeHJjicWYPqR9bpxqxYG2pA= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4= +golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 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/appengine v1.6.5 h1:tycE03LOZYQNhDpS27tcQdAzLCVMaj7QT2SXxebnpCM= google.golang.org/appengine v1.6.5/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= 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-20190927181202-20e1ac93f88c/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8= -google.golang.org/genproto v0.0.0-20200211111953-2dc5924e3898 h1:bKX1IGaSj2XD9yfWNts9HKRdQRH0lOZ0S7Nb8meQSlY= -google.golang.org/genproto v0.0.0-20200211111953-2dc5924e3898/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20191009194640-548a555dbc03/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20200413115906-b5235f65be36 h1:j7CmVRD4Kec0+f8VuBAc2Ak2MFfXm5Q2/RxuJLL+76E= +google.golang.org/genproto v0.0.0-20200413115906-b5235f65be36/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.21.0/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= -google.golang.org/grpc v1.24.0/go.mod h1:XDChyiUovWa60DnaeDeZmSW86xtLtjtZbwvSiRnRtcA= google.golang.org/grpc v1.25.1 h1:wdKvqQk7IttEw92GoRyKG2IDrUIpgpj6H6m81yfeMW0= 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.28.0 h1:bO/TA4OxCOummhSf10siHuG7vJOiwh7SpRpFZDkOgl4= -google.golang.org/grpc v1.28.0/go.mod h1:rpkK4SK4GF4Ach/+MFLZUBavHOvF2JJB5uozKKal+60= +google.golang.org/grpc v1.27.1/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= +google.golang.org/grpc v1.29.1 h1:EC2SB8S04d2r73uptxphDSUG+kTKVgjRPF+N3xpxRB4= +google.golang.org/grpc v1.29.1/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3IjizoKk= gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 h1:qIbj1fsPNlZgppZ+VLlY7N33q108Sa+fhmuc+sWQYwY= @@ -426,9 +455,10 @@ gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWD gopkg.in/yaml.v2 v2.0.0-20170812160011-eb3733d160e7/go.mod h1:JAlM8MvJe8wmxCU4Bli9HhUf9+ttbYbLASfIpnQbh74= gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.2.3/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.4 h1:/eiJrUcujPVeJ3xlSWaiNi3uSVmDGBK1pDHUHAnao1I= gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.7 h1:VUgggvou5XRW9mHwD/yXxIYSMtY0zoKQf/v226p2nyo= +gopkg.in/yaml.v2 v2.2.7/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= 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-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg= @@ -438,3 +468,5 @@ mellium.im/sasl v0.2.1 h1:nspKSRg7/SyO0cRGY71OkfHab8tf9kCts6a6oTDut0w= mellium.im/sasl v0.2.1/go.mod h1:ROaEDLQNuf9vjKqE1SrAfnsobm2YKXT1gnN1uDp1PjQ= nhooyr.io/websocket v1.7.4 h1:w/LGB2sZT0RV8lZYR7nfyaYz4PUbYZ5oF7NBon2M0NY= nhooyr.io/websocket v1.7.4/go.mod h1:PxYxCwFdFYQ0yRvtQz3s/dC+VEm7CSuC/4b9t8MQQxw= +nhooyr.io/websocket v1.8.4 h1:P43INlkmY2eCxLvHeiMFK/ROUiOm0NdzRGGDtURbe58= +nhooyr.io/websocket v1.8.4/go.mod h1:LiqdCg1Cu7TPWxEvPjPa0TGYxCsy4pHNTN9gGluwBpQ= diff --git a/main.go b/main.go index 8fe4ba1..875ffcd 100644 --- a/main.go +++ b/main.go @@ -45,6 +45,7 @@ func main() { OnShutdown(onShutdown). OnSocketErrorReceive(onRemoteErrorReceive). OnConfigErrorReceive(onRemoteConfigErrorReceive). + SubscribeBroadcastEvent(bootstrap.ListenRestartEvent()). Run() }