[#1] Fix comments and error messages
Signed-off-by: Stanislav Bogatyrev <s.bogatyrev@yadro.com>
This commit is contained in:
parent
c761a95eef
commit
cb016d53a6
96 changed files with 167 additions and 167 deletions
|
@ -6,7 +6,7 @@ import (
|
|||
)
|
||||
|
||||
// Record is an interface of read-only
|
||||
// NeoFS LOCODE database single entry.
|
||||
// FrostFS LOCODE database single entry.
|
||||
type Record interface {
|
||||
// Must return ISO 3166-1 alpha-2
|
||||
// country code.
|
||||
|
@ -47,7 +47,7 @@ type Record interface {
|
|||
}
|
||||
|
||||
// DB is an interface of read-only
|
||||
// NeoFS LOCODE database.
|
||||
// FrostFS LOCODE database.
|
||||
type DB interface {
|
||||
// Must find the record that corresponds to
|
||||
// LOCODE and provides the Record interface.
|
||||
|
|
|
@ -6,7 +6,7 @@ package locode
|
|||
// Passing incorrect parameter values will result in constructor
|
||||
// failure (error or panic depending on the implementation).
|
||||
type Prm struct {
|
||||
// NeoFS LOCODE database interface.
|
||||
// FrostFS LOCODE database interface.
|
||||
//
|
||||
// Must not be nil.
|
||||
DB DB
|
||||
|
|
|
@ -15,7 +15,7 @@ import (
|
|||
// ErrMaintenanceModeDisallowed is returned when maintenance mode is disallowed.
|
||||
var ErrMaintenanceModeDisallowed = errors.New("maintenance mode is disallowed")
|
||||
|
||||
// NetworkSettings encapsulates current settings of the NeoFS network and
|
||||
// NetworkSettings encapsulates current settings of the FrostFS network and
|
||||
// provides interface used for processing the network map candidates.
|
||||
type NetworkSettings interface {
|
||||
// MaintenanceModeAllowed checks if maintenance state of the storage nodes
|
||||
|
@ -27,7 +27,7 @@ type NetworkSettings interface {
|
|||
}
|
||||
|
||||
// NetMapCandidateValidator represents tool which checks state of nodes which
|
||||
// are going to register in the NeoFS network (enter the network map).
|
||||
// are going to register in the FrostFS network (enter the network map).
|
||||
//
|
||||
// NetMapCandidateValidator can be instantiated using built-in var declaration
|
||||
// and currently doesn't require any additional initialization.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue