Documentation
¶
Index ¶
- func RegisterCommissioner(server *otohttp.Server, commissioner Commissioner)
- type CastVoteRequest
- type CastVoteResponse
- type Commissioner
- type CreateElectionRequest
- type CreateElectionResponse
- type CreateMinterRequest
- type CreateMinterResponse
- type CreateVoterRequest
- type CreateVoterResponse
- type Key
- type MintVoteRequest
- type MintVoteResponse
- type QueryAddressRequest
- type QueryAddressResponse
- type UnspentTransaction
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterCommissioner ¶
func RegisterCommissioner(server *otohttp.Server, commissioner Commissioner)
Types ¶
type CastVoteRequest ¶
type CastVoteResponse ¶
type Commissioner ¶
type Commissioner interface { CastVote(context.Context, CastVoteRequest) (*CastVoteResponse, error) CreateElection(context.Context, CreateElectionRequest) (*CreateElectionResponse, error) CreateMinter(context.Context, CreateMinterRequest) (*CreateMinterResponse, error) CreateVoter(context.Context, CreateVoterRequest) (*CreateVoterResponse, error) MintVote(context.Context, MintVoteRequest) (*MintVoteResponse, error) QueryAddress(context.Context, QueryAddressRequest) (*QueryAddressResponse, error) }
func NewCommissionerClient ¶
func NewCommissionerClient(endpoint, username, password string, timeout time.Duration) Commissioner
type CreateElectionRequest ¶
type CreateElectionRequest struct { }
type CreateElectionResponse ¶
type CreateMinterRequest ¶
type CreateMinterResponse ¶
type CreateVoterRequest ¶
type CreateVoterRequest struct { }
type CreateVoterResponse ¶
type MintVoteRequest ¶
type MintVoteResponse ¶
type QueryAddressRequest ¶
type QueryAddressRequest struct {
Address string `json:"address"`
}
type QueryAddressResponse ¶
type QueryAddressResponse struct { UnspentTransactions []*UnspentTransaction `json:"unspentTransactions"` Error string `json:"error,omitempty"` }
Click to show internal directories.
Click to hide internal directories.