address

package
v0.0.0-...-692641c Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2020 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

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

Controller provides application resources and handlers.

func NewController

func NewController() (*Controller, error)

NewController configures and returns application endpoints.

func (*Controller) Router

func (rs *Controller) Router() *chi.Mux

Router exposes address endpoints

type GenerateAddressResponse

type GenerateAddressResponse struct {
	UserId              *uuid.UUID `json:"user_id"`
	SegwitAddress       string     `json:"segwit_address"`
	NativeSegwitAddress string     `json:"native_segwit_address"`
}

GenerateAddressResponse is the response object for /address/gen

type GetAddressResponse

type GetAddressResponse struct {
	SegwitAddress       string `json:"segwit_address"`
	NativeSegwitAddress string `json:"native_segwit_address"`
}

GetAddressResponse is the response object for /address/:user_id

type Service

type Service struct {
	AccountStore database.AccountStorer
	KeyManager   *common.KeyManager
	// contains filtered or unexported fields
}

Service to generate and manage bitcoin addresses

func NewService

func NewService(accountStore database.AccountStorer) *Service

NewService create a new address service

Jump to

Keyboard shortcuts

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