Documentation ¶
Index ¶
- Variables
- func CompositionFilter(compositionId, name string) (Data, error)
- func CompositionFromRequest(req *http.Request) (Data, error)
- func RecordingFilter(name, recordingId string) (Data, error)
- func RecordingFromRequest(req *http.Request) (Data, error)
- func SignaturesFromRequest(req *http.Request) ([]string, error)
- func SplitsFromRequest(req *http.Request) (splits []int, err error)
- func UserFromRequest(req *http.Request) (Data, error)
- type Api
- func (api *Api) AddRoutes(router *httprouter.Router)
- func (api *Api) License(license Data) (string, error)
- func (api *Api) LicenseHandler(w http.ResponseWriter, req *http.Request, _ httprouter.Params)
- func (api *Api) LoggedIn() bool
- func (api *Api) Login(privstr, userId string) error
- func (api *Api) LoginHandler(w http.ResponseWriter, req *http.Request, _ httprouter.Params)
- func (api *Api) ProveHandler(w http.ResponseWriter, req *http.Request, params httprouter.Params)
- func (api *Api) Publish(composition Data, signatures []string, splits []int) (string, error)
- func (api *Api) PublishHandler(w http.ResponseWriter, req *http.Request, _ httprouter.Params)
- func (api *Api) QueryHandler(w http.ResponseWriter, req *http.Request, params httprouter.Params)
- func (api *Api) Register(password string, user Data) (Data, error)
- func (api *Api) RegisterHandler(w http.ResponseWriter, req *http.Request, _ httprouter.Params)
- func (api *Api) Release(recording Data, signatures []string, splits []int) (string, error)
- func (api *Api) ReleaseHandler(w http.ResponseWriter, req *http.Request, _ httprouter.Params)
- func (api *Api) Right(percentShares int, previousRightId, recipientId, rightToId string) (string, error)
- func (api *Api) RightHandler(w http.ResponseWriter, req *http.Request, _ httprouter.Params)
- func (api *Api) SearchHandler(w http.ResponseWriter, req *http.Request, params httprouter.Params)
- func (api *Api) SearchNameHandler(w http.ResponseWriter, req *http.Request, params httprouter.Params)
- func (api *Api) SendTx(tx Data) (string, error)
- func (api *Api) Sign(data Data) string
- func (api *Api) SignComposition(composition Data, splits []int) (string, error)
- func (api *Api) SignHandler(w http.ResponseWriter, req *http.Request, params httprouter.Params)
- func (api *Api) SignRecording(recording Data, splits []int) (string, error)
- func (api *Api) VerifyHandler(w http.ResponseWriter, req *http.Request, params httprouter.Params)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrBigchain = Error("Bigchain Error") ErrCrypto = Error("Crypto Error") ErrSpec = Error("Spec Error") ErrValidation = Error("Validation Error") )
Functions ¶
func CompositionFilter ¶
func CompositionFromRequest ¶
func RecordingFilter ¶
func RecordingFromRequest ¶
func UserFromRequest ¶
Types ¶
type Api ¶
type Api struct {
// contains filtered or unexported fields
}
func (*Api) AddRoutes ¶
func (api *Api) AddRoutes(router *httprouter.Router)
func (*Api) LicenseHandler ¶
func (api *Api) LicenseHandler(w http.ResponseWriter, req *http.Request, _ httprouter.Params)
func (*Api) LoginHandler ¶
func (api *Api) LoginHandler(w http.ResponseWriter, req *http.Request, _ httprouter.Params)
func (*Api) ProveHandler ¶
func (api *Api) ProveHandler(w http.ResponseWriter, req *http.Request, params httprouter.Params)
func (*Api) PublishHandler ¶
func (api *Api) PublishHandler(w http.ResponseWriter, req *http.Request, _ httprouter.Params)
func (*Api) QueryHandler ¶
func (api *Api) QueryHandler(w http.ResponseWriter, req *http.Request, params httprouter.Params)
func (*Api) RegisterHandler ¶
func (api *Api) RegisterHandler(w http.ResponseWriter, req *http.Request, _ httprouter.Params)
func (*Api) ReleaseHandler ¶
func (api *Api) ReleaseHandler(w http.ResponseWriter, req *http.Request, _ httprouter.Params)
func (*Api) RightHandler ¶
func (api *Api) RightHandler(w http.ResponseWriter, req *http.Request, _ httprouter.Params)
func (*Api) SearchHandler ¶
func (api *Api) SearchHandler(w http.ResponseWriter, req *http.Request, params httprouter.Params)
func (*Api) SearchNameHandler ¶
func (api *Api) SearchNameHandler(w http.ResponseWriter, req *http.Request, params httprouter.Params)
func (*Api) SignComposition ¶
func (*Api) SignHandler ¶
func (api *Api) SignHandler(w http.ResponseWriter, req *http.Request, params httprouter.Params)
func (*Api) SignRecording ¶
func (*Api) VerifyHandler ¶
func (api *Api) VerifyHandler(w http.ResponseWriter, req *http.Request, params httprouter.Params)
Click to show internal directories.
Click to hide internal directories.