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
Click to show internal directories.
Click to hide internal directories.