Versions in this module Expand all Collapse all v0 v0.0.2 Mar 12, 2021 Changes in this version + const APIKey + const APISecret + const KeyNextLink + const KeyPreviousLink + const MediaType + const PaginationDefault + const SessionExternalInitiatorKey + const SessionIDKey + const SessionName + const SessionUserKey + func AuthenticateBySession(store AuthStorer, c *gin.Context) error + func AuthenticateByToken(store AuthStorer, c *gin.Context) error + func AuthenticateExternalInitiator(store AuthStorer, c *gin.Context) error + func FindSessionCookie(cookies []*http.Cookie) *http.Cookie + func MatchExactBoxPath(boxList []string, path string) (matchedPath string) + func MatchWildcardBoxPath(boxList []string, path string, file string) (matchedPath string) + func NewJSONAPIResponse(resource interface{}) ([]byte, error) + func NewPaginatedResponse(url url.URL, size, page, count int, resource interface{}) ([]byte, error) + func ParseJSONAPIResponse(input []byte, resource interface{}) error + func ParsePaginatedRequest(sizeParam, pageParam string) (int, int, int, error) + func ParsePaginatedResponse(input []byte, resource interface{}, links *jsonapi.Links) error + func RequireAuth(store AuthStorer, methods ...authType) gin.HandlerFunc + func Router(app seerlink.Application) *gin.Engine + func StatusCodeForError(err interface{}) int + type AuthStorer interface + AuthorizedUserWithSession func(sessionID string) (models.User, error) + FindExternalInitiator func(eia *auth.Token) (*models.ExternalInitiator, error) + FindUser func() (models.User, error) + type BridgeTypesController struct + App seerlink.Application + func (btc *BridgeTypesController) Create(c *gin.Context) + func (btc *BridgeTypesController) Destroy(c *gin.Context) + func (btc *BridgeTypesController) Index(c *gin.Context, size, page, offset int) + func (btc *BridgeTypesController) Show(c *gin.Context) + func (btc *BridgeTypesController) Update(c *gin.Context) + type BulkDeletesController struct + App seerlink.Application + func (bdc *BulkDeletesController) Delete(c *gin.Context) + type Change struct + From string + To string + type ConfigController struct + App seerlink.Application + func (cc *ConfigController) Patch(c *gin.Context) + func (cc *ConfigController) Show(c *gin.Context) + type ConfigPatchResponse struct + EthGasPriceDefault Change + func (*ConfigPatchResponse) SetID(string) error + func (c ConfigPatchResponse) GetID() string + type ETHKeysController struct + App seerlink.Application + func (ekc *ETHKeysController) Create(c *gin.Context) + func (ekc *ETHKeysController) Delete(c *gin.Context) + func (ekc *ETHKeysController) Export(c *gin.Context) + func (ekc *ETHKeysController) Import(c *gin.Context) + func (ekc *ETHKeysController) Index(c *gin.Context) + type ExternalInitiatorsController struct + App seerlink.Application + func (eic *ExternalInitiatorsController) Create(c *gin.Context) + func (eic *ExternalInitiatorsController) Destroy(c *gin.Context) + type GenericJobSpec struct + Name null.String + SchemaVersion uint32 + Type job.Type + type JobRunsController struct + App seerlink.Application + func (jrc *JobRunsController) Cancel(c *gin.Context) + func (jrc *JobRunsController) Create(c *gin.Context) + func (jrc *JobRunsController) Index(c *gin.Context, size, page, offset int) + func (jrc *JobRunsController) Show(c *gin.Context) + func (jrc *JobRunsController) Update(c *gin.Context) + type JobSpecErrorsController struct + App seerlink.Application + func (jsec *JobSpecErrorsController) Destroy(c *gin.Context) + type JobSpecsController struct + App seerlink.Application + func (jsc *JobSpecsController) Create(c *gin.Context) + func (jsc *JobSpecsController) Destroy(c *gin.Context) + func (jsc *JobSpecsController) Index(c *gin.Context, size, page, offset int) + func (jsc *JobSpecsController) Show(c *gin.Context) + type JobsController struct + App seerlink.Application + func (jc *JobsController) Create(c *gin.Context) + func (jc *JobsController) Delete(c *gin.Context) + func (jc *JobsController) Index(c *gin.Context) + func (jc *JobsController) Show(c *gin.Context) + type OCRKeysController struct + App seerlink.Application + func (ocrkc *OCRKeysController) Create(c *gin.Context) + func (ocrkc *OCRKeysController) Delete(c *gin.Context) + func (ocrkc *OCRKeysController) Export(c *gin.Context) + func (ocrkc *OCRKeysController) Import(c *gin.Context) + func (ocrkc *OCRKeysController) Index(c *gin.Context) + type P2PKeysController struct + App seerlink.Application + func (p2pkc *P2PKeysController) Create(c *gin.Context) + func (p2pkc *P2PKeysController) Delete(c *gin.Context) + func (p2pkc *P2PKeysController) Export(c *gin.Context) + func (p2pkc *P2PKeysController) Import(c *gin.Context) + func (p2pkc *P2PKeysController) Index(c *gin.Context) + type PingController struct + App seerlink.Application + func (eic *PingController) Show(c *gin.Context) + type PipelineRunsController struct + App seerlink.Application + func (prc *PipelineRunsController) Create(c *gin.Context) + func (prc *PipelineRunsController) Index(c *gin.Context, size, page, offset int) + func (prc *PipelineRunsController) Show(c *gin.Context) + type ServiceAgreementsController struct + App seerlink.Application + func (sac *ServiceAgreementsController) Create(c *gin.Context) + func (sac *ServiceAgreementsController) Show(c *gin.Context) + type Session struct + Authenticated bool + func (*Session) SetID(string) error + func (Session) GetName() string + func (s Session) GetID() string + type SessionsController struct + App seerlink.Application + func (sc *SessionsController) Create(c *gin.Context) + func (sc *SessionsController) Destroy(c *gin.Context) + type TransactionsController struct + App seerlink.Application + func (tc *TransactionsController) Index(c *gin.Context, size, page, offset int) + func (tc *TransactionsController) Show(c *gin.Context) + type TransfersController struct + App seerlink.Application + func (tc *TransfersController) Create(c *gin.Context) + type TxAttemptsController struct + App seerlink.Application + func (tac *TxAttemptsController) Index(c *gin.Context, size, page, offset int) + type UserController struct + App seerlink.Application + func (c *UserController) DeleteAPIToken(ctx *gin.Context) + func (c *UserController) NewAPIToken(ctx *gin.Context) + func (c *UserController) UpdatePassword(ctx *gin.Context)