github.com/resonatecoop/user-api@v1.0.0-13.0.20220915120639-05dc9c04014a/server/server.go (about)

     1  package server
     2  
     3  import (
     4  	"github.com/uptrace/bun"
     5  )
     6  
     7  // Server implements the UserService
     8  type Server struct {
     9  	db *bun.DB
    10  }
    11  
    12  // New creates an instance of our server
    13  func New(db *bun.DB) *Server {
    14  	return &Server{db: db}
    15  }