solution

package
v0.0.0-...-a9f0ac7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 26, 2015 License: GPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hasher

type Hasher interface {
	Hash(key string, number int) string
}

type Md5Hasher

type Md5Hasher struct{}

func (Md5Hasher) Hash

func (this Md5Hasher) Hash(key string, number int) string

type Miner

type Miner struct {
	CoinPrefix string
	Hash       Hasher
}

func (*Miner) Mine

func (this *Miner) Mine(key string) (string, int)

type MockHasher

type MockHasher struct {
	// contains filtered or unexported fields
}

Mock of Hasher interface

func NewMockHasher

func NewMockHasher(ctrl *gomock.Controller) *MockHasher

func (*MockHasher) EXPECT

func (_m *MockHasher) EXPECT() *_MockHasherRecorder

func (*MockHasher) Hash

func (_m *MockHasher) Hash(_param0 string, _param1 int) string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL