-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
92 additions
and
90 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
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 |
---|---|---|
@@ -1,25 +1,25 @@ | ||
package kvs | ||
|
||
// Consul struct | ||
// Consul struct. | ||
type Consul struct { | ||
items map[string]*item //nolint | ||
Host string | ||
Port int | ||
Password string | ||
} | ||
|
||
// Read data on Consul | ||
// Read data on Consul. | ||
func (c *Consul) Read(key string) { | ||
} | ||
|
||
// Write data to Consul | ||
// Write data to Consul. | ||
func (c *Consul) Write(data string) { | ||
} | ||
|
||
// Delete data on Consul | ||
// Delete data on Consul. | ||
func (c *Consul) Delete(key string) { | ||
} | ||
|
||
// List returns key from Consul | ||
// List returns key from Consul. | ||
func (c *Consul) List() { | ||
} |
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 |
---|---|---|
@@ -1,25 +1,25 @@ | ||
package kvs | ||
|
||
// Memory struct | ||
// Memory struct. | ||
type Memory struct { | ||
items map[string]*item //nolint | ||
} | ||
|
||
// Read data by key on memory | ||
// Read data by key on memory. | ||
func (m *Memory) Read(key string) string { | ||
return "" | ||
} | ||
|
||
// Write data to memory | ||
// Write data to memory. | ||
func (m *Memory) Write(data string) bool { | ||
return true | ||
} | ||
|
||
// Delete data by key on memory | ||
// Delete data by key on memory. | ||
func (m *Memory) Delete(key string) bool { | ||
return true | ||
} | ||
|
||
// List returns keys from memory | ||
// List returns keys from memory. | ||
func (m *Memory) List() { | ||
} |
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
Oops, something went wrong.