-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Well... Starting the shit a bit slowly
- Loading branch information
Showing
7 changed files
with
80 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package cmd | ||
|
||
import ( | ||
"github.com/urfave/cli/v2" | ||
) | ||
|
||
// ServerCommand returns a cli.Command that benchmarks the real client | ||
func ServerCommand() *cli.Command { | ||
return &cli.Command{ | ||
Name: "server", | ||
Usage: "Manage (f)db server", | ||
Action: func(c *cli.Context) error { | ||
return nil | ||
}, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package fdb | ||
|
||
import ( | ||
"context" | ||
"github.com/pkg/errors" | ||
) | ||
|
||
type FDB struct { | ||
ctx context.Context | ||
config Config | ||
} | ||
|
||
func New(ctx context.Context, config Config) (*FDB, error) { | ||
if err := config.Validate(); err != nil { | ||
return nil, errors.Wrap(err, "failure to validate (f)db configuration") | ||
} | ||
|
||
return &FDB{ | ||
ctx: ctx, | ||
config: config, | ||
}, nil | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters