Documentation ¶
Index ¶
- func User(ctx context.Context) *core.User
- type Server
- func (s Server) CreateUser(w http.ResponseWriter, r *http.Request)
- func (s Server) Handler() http.Handler
- func (s Server) Info(w http.ResponseWriter, r *http.Request)
- func (s Server) QuerySnapshots(w http.ResponseWriter, r *http.Request)
- func (s Server) Transaction(w http.ResponseWriter, r *http.Request)
- func (s Server) Transfer(w http.ResponseWriter, r *http.Request)
- type ServerConfig
- type SnapshotView
- type UserView
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func New ¶
func New(debug bool, kernel core.KernelService, store core.Store, privView crypto.Key, cfg ServerConfig) Server
func (Server) CreateUser ¶
func (s Server) CreateUser(w http.ResponseWriter, r *http.Request)
func (Server) QuerySnapshots ¶
func (s Server) QuerySnapshots(w http.ResponseWriter, r *http.Request)
func (Server) Transaction ¶
func (s Server) Transaction(w http.ResponseWriter, r *http.Request)
type ServerConfig ¶
type SnapshotView ¶
type SnapshotView struct { CreatedAt time.Time `json:"created_at"` Asset string `json:"asset"` UserID string `json:"user_id"` OpponentID string `json:"opponent_id,omitempty"` Amount decimal.Decimal `json:"amount"` Memo string `json:"memo"` Height uint `json:"height"` }
func ConvertSnapshot ¶
func ConvertSnapshot(snapshot *core.Snapshot) *SnapshotView
Click to show internal directories.
Click to hide internal directories.