add dal
parent
0c4eb2b4bf
commit
9ea52360b3
|
|
@ -1,3 +1,4 @@
|
||||||
|
// Package config provides configuration management functionality for the application including database, Redis, web, and logging settings.
|
||||||
package config
|
package config
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
package storage
|
// Package dal provides data access layer implementations including local caching and Redis operations.
|
||||||
|
package dal
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"time"
|
"time"
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
package storage
|
package dal
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"net"
|
"net"
|
||||||
|
|
@ -15,7 +15,7 @@ type RedisSession struct {
|
||||||
Client *redis.Client
|
Client *redis.Client
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewRedisSession
|
// NewRedisSession ...
|
||||||
func NewRedisSession(redisConf *config.RedisConf) (*RedisSession, error) {
|
func NewRedisSession(redisConf *config.RedisConf) (*RedisSession, error) {
|
||||||
client := redis.NewClient(&redis.Options{
|
client := redis.NewClient(&redis.Options{
|
||||||
Addr: net.JoinHostPort(redisConf.Host, strconv.Itoa(redisConf.Port)),
|
Addr: net.JoinHostPort(redisConf.Host, strconv.Itoa(redisConf.Port)),
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
// Package healthz provides health check endpoints for monitoring application status and readiness.
|
||||||
package healthz
|
package healthz
|
||||||
|
|
||||||
import "net/http"
|
import "net/http"
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
// Package httpserver provides HTTP server utilities including buffered I/O operations and request handling.
|
||||||
package httpserver
|
package httpserver
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|
|
||||||
|
|
@ -8,12 +8,12 @@ import (
|
||||||
"net/url"
|
"net/url"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"git.ifooth.com/common/pkg/rest"
|
|
||||||
"git.ifooth.com/common/pkg/validator"
|
|
||||||
"github.com/samber/lo"
|
"github.com/samber/lo"
|
||||||
|
|
||||||
|
"git.ifooth.com/common/pkg/rest"
|
||||||
istore "git.ifooth.com/common/pkg/task/stores/iface"
|
istore "git.ifooth.com/common/pkg/task/stores/iface"
|
||||||
"git.ifooth.com/common/pkg/task/types"
|
"git.ifooth.com/common/pkg/task/types"
|
||||||
|
"git.ifooth.com/common/pkg/validator"
|
||||||
)
|
)
|
||||||
|
|
||||||
type service struct {
|
type service struct {
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
// Package version provides version information and build details for the application.
|
||||||
package version
|
package version
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue