Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New( config viperjacket.Config, blocchain blockchain.Blockchain) restapiserver.RESTAPIServer
New creates, initializes and returns DefaultRESTAPIServer.
Types ¶
type AddBlockBody ¶
type AddBlockBody struct {
Message string
}
type DefaultRESTAPIServer ¶
type DefaultRESTAPIServer struct {
// contains filtered or unexported fields
}
func (*DefaultRESTAPIServer) Close ¶
func (d *DefaultRESTAPIServer) Close() error
func (*DefaultRESTAPIServer) Serve ¶
func (d *DefaultRESTAPIServer) Serve() error
type ErrorResponse ¶
type ErrorResponse struct {
ErrorMessage string `json:"errorMessage"`
}
Click to show internal directories.
Click to hide internal directories.