forked from TrueCloudLab/certificates
Fix comments.
This commit is contained in:
parent
e8498bf612
commit
dbd3131068
1 changed files with 4 additions and 4 deletions
|
@ -32,8 +32,8 @@ type Authority struct {
|
||||||
// Option sets options to the Authority.
|
// Option sets options to the Authority.
|
||||||
type Option func(*Authority)
|
type Option func(*Authority)
|
||||||
|
|
||||||
// WithDatabase sets an already initialize authority database to a new
|
// WithDatabase sets an already initialized authority database to a new
|
||||||
// authority. This options is intended to be use on graceful reloads.
|
// authority. This option is intended to be use on graceful reloads.
|
||||||
func WithDatabase(db db.AuthDB) Option {
|
func WithDatabase(db db.AuthDB) Option {
|
||||||
return func(a *Authority) {
|
return func(a *Authority) {
|
||||||
a.db = db
|
a.db = db
|
||||||
|
@ -133,8 +133,8 @@ func (a *Authority) init() error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetDatabase returns the authority database. It will return null if it's not
|
// GetDatabase returns the authority database. If the configuration does not
|
||||||
// enabled.
|
// define a database, GetDatabase will return a db.SimpleDB instance.
|
||||||
func (a *Authority) GetDatabase() db.AuthDB {
|
func (a *Authority) GetDatabase() db.AuthDB {
|
||||||
return a.db
|
return a.db
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue