Skip to content

Commit

Permalink
Readme, example: use Service instead of Server
Browse files Browse the repository at this point in the history
  • Loading branch information
svrana committed Jul 26, 2023
1 parent c901260 commit a86c7fe
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,15 @@ import (
"github.com/bommie/b6/db"
)
type {{.service_name | Title}}Server struct {
type {{.service_name | Title}}Service struct {
db *db.DB
cfg *config.AuthConfig
}
var _ {{.service_name}}v1connect.{{.service_name | Title}}ServiceClient = (*{{.service_name | Title }}Server)(nil)
var _ {{.service_name}}v1connect.{{.service_name | Title}}ServiceClient = (*{{.service_name | Title }}Service)(nil)
func NewServer(_ context.Context, db *db.DB, cfg *config.AuthConfig) *{{.service_name | Title }}Server {
return &{{.service_name | Title}}Server{
func NewService(_ context.Context, db *db.DB, cfg *config.AuthConfig) *{{.service_name | Title }}Service {
return &{{.service_name | Title}}Service{
db: db,
cfg: cfg,
}
Expand Down
8 changes: 4 additions & 4 deletions example/.geniveev.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ import (
"github.com/bommie/b6/db"
)
type {{.service_name | Title}}Server struct {
type {{.service_name | Title}}Service struct {
db *db.DB
cfg *config.AuthConfig
}
var _ {{.service_name}}v1connect.{{.service_name | Title}}ServiceClient = (*{{.service_name | Title }}Server)(nil)
var _ {{.service_name}}v1connect.{{.service_name | Title}}ServiceClient = (*{{.service_name | Title }}Service)(nil)
func NewServer(_ context.Context, db *db.DB, cfg *config.AuthConfig) *{{.service_name | Title }}Server {
return &{{.service_name | Title}}Server{
func NewService(_ context.Context, db *db.DB, cfg *config.AuthConfig) *{{.service_name | Title }}Service {
return &{{.service_name | Title}}Service{
db: db,
cfg: cfg,
}
Expand Down

0 comments on commit a86c7fe

Please sign in to comment.