github.com/machinefi/w3bstream@v1.6.5-rc9.0.20240426031326-b8c7c4876e72/pkg/depends/testutil/redistestutil/init.go (about)

     1  package redistestutil
     2  
     3  import (
     4  	"github.com/machinefi/w3bstream/pkg/depends/conf/app"
     5  	conflogger "github.com/machinefi/w3bstream/pkg/depends/conf/logger"
     6  	"github.com/machinefi/w3bstream/pkg/depends/conf/redis"
     7  )
     8  
     9  var (
    10  	Endpoint = &redis.Endpoint{}
    11  	Redis    = &redis.Redis{}
    12  )
    13  
    14  func init() {
    15  	app.New(
    16  		app.WithName("test"),
    17  		app.WithLogger(conflogger.Std()),
    18  		app.WithRoot("."),
    19  	).Conf(Redis, Endpoint)
    20  }