github.com/litesolutions/justifay-api@v1.0.0-2.0.20220707114139-46f28a909481/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 }