package name changed
This commit is contained in:
parent
3586f61719
commit
ddd9ee5f34
@ -1,6 +1,6 @@
|
|||||||
package config
|
package config
|
||||||
|
|
||||||
import common_utils "nettools/common"
|
import common_utils "git.mic.pp.ua/anderson/nettools/common"
|
||||||
|
|
||||||
type FileTLS struct {
|
type FileTLS struct {
|
||||||
Enable bool `yaml:"enable" json:"enable"`
|
Enable bool `yaml:"enable" json:"enable"`
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
package config
|
package config
|
||||||
|
|
||||||
import common_utils "nettools/common"
|
import common_utils "git.mic.pp.ua/anderson/nettools/common"
|
||||||
|
|
||||||
type FileRange[T common_utils.Num] struct {
|
type FileRange[T common_utils.Num] struct {
|
||||||
Begin T `json:"begin" yaml:"begin"`
|
Begin T `json:"begin" yaml:"begin"`
|
||||||
|
@ -6,7 +6,7 @@ import (
|
|||||||
"io"
|
"io"
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
common "nettools/common"
|
common "git.mic.pp.ua/anderson/nettools/common"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
@ -3,7 +3,7 @@ package ds_utils
|
|||||||
import (
|
import (
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
common "nettools/common"
|
common "git.mic.pp.ua/anderson/nettools/common"
|
||||||
)
|
)
|
||||||
|
|
||||||
type IIdSyncMap[IDType common.Int, ItemType any] interface {
|
type IIdSyncMap[IDType common.Int, ItemType any] interface {
|
||||||
|
@ -7,7 +7,7 @@ import (
|
|||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
common "nettools/common"
|
common "git.mic.pp.ua/anderson/nettools/common"
|
||||||
)
|
)
|
||||||
|
|
||||||
type WorkersCount struct {
|
type WorkersCount struct {
|
||||||
|
@ -3,7 +3,7 @@ package ds_utils
|
|||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
common "nettools/common"
|
common "git.mic.pp.ua/anderson/nettools/common"
|
||||||
)
|
)
|
||||||
|
|
||||||
// RunWorkerPool is a single function worker pool implementation
|
// RunWorkerPool is a single function worker pool implementation
|
||||||
|
@ -5,8 +5,8 @@ import (
|
|||||||
"math/rand"
|
"math/rand"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
common_utils "nettools/common"
|
common_utils "git.mic.pp.ua/anderson/nettools/common"
|
||||||
ds_utils "nettools/data_structures"
|
ds_utils "git.mic.pp.ua/anderson/nettools/data_structures"
|
||||||
)
|
)
|
||||||
|
|
||||||
func BenchmarkWorkerPool(b *testing.B) {
|
func BenchmarkWorkerPool(b *testing.B) {
|
||||||
|
2
env/env.go
vendored
2
env/env.go
vendored
@ -5,7 +5,7 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
common "nettools/common"
|
common "git.mic.pp.ua/anderson/nettools/common"
|
||||||
)
|
)
|
||||||
|
|
||||||
func Getenv(envName string) (env string, ok bool) {
|
func Getenv(envName string) (env string, ok bool) {
|
||||||
|
2
go.mod
2
go.mod
@ -1,4 +1,4 @@
|
|||||||
module nettools
|
module git.mic.pp.ua/anderson/nettools
|
||||||
|
|
||||||
go 1.23.1
|
go 1.23.1
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ import (
|
|||||||
"net"
|
"net"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
common_utils "nettools/common"
|
common_utils "git.mic.pp.ua/anderson/nettools/common"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package net_utils
|
package net_utils
|
||||||
|
|
||||||
import (
|
import (
|
||||||
common_utils "nettools/common"
|
common_utils "git.mic.pp.ua/anderson/nettools/common"
|
||||||
)
|
)
|
||||||
|
|
||||||
type IPortRange common_utils.IRange[int]
|
type IPortRange common_utils.IRange[int]
|
||||||
|
2
pg/pg.go
2
pg/pg.go
@ -3,9 +3,9 @@ package pgUtils
|
|||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"errors"
|
"errors"
|
||||||
|
reflectUtils "git.mic.pp.ua/anderson/nettools/reflect"
|
||||||
"github.com/jackc/pgx/v5"
|
"github.com/jackc/pgx/v5"
|
||||||
"github.com/jackc/pgx/v5/pgxpool"
|
"github.com/jackc/pgx/v5/pgxpool"
|
||||||
reflectUtils "nettools/reflect"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
Loading…
Reference in New Issue
Block a user