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
|
||||
|
||||
import (
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
package storage
|
||||
// Package dal provides data access layer implementations including local caching and Redis operations.
|
||||
package dal
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package storage
|
||||
package dal
|
||||
|
||||
import (
|
||||
"net"
|
||||
|
|
@ -15,7 +15,7 @@ type RedisSession struct {
|
|||
Client *redis.Client
|
||||
}
|
||||
|
||||
// NewRedisSession
|
||||
// NewRedisSession ...
|
||||
func NewRedisSession(redisConf *config.RedisConf) (*RedisSession, error) {
|
||||
client := redis.NewClient(&redis.Options{
|
||||
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
|
||||
|
||||
import "net/http"
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
// Package httpserver provides HTTP server utilities including buffered I/O operations and request handling.
|
||||
package httpserver
|
||||
|
||||
import (
|
||||
|
|
|
|||
|
|
@ -8,12 +8,12 @@ import (
|
|||
"net/url"
|
||||
"time"
|
||||
|
||||
"git.ifooth.com/common/pkg/rest"
|
||||
"git.ifooth.com/common/pkg/validator"
|
||||
"github.com/samber/lo"
|
||||
|
||||
"git.ifooth.com/common/pkg/rest"
|
||||
istore "git.ifooth.com/common/pkg/task/stores/iface"
|
||||
"git.ifooth.com/common/pkg/task/types"
|
||||
"git.ifooth.com/common/pkg/validator"
|
||||
)
|
||||
|
||||
type service struct {
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
// Package version provides version information and build details for the application.
|
||||
package version
|
||||
|
||||
import (
|
||||
|
|
|
|||
Loading…
Reference in New Issue