Documentation ¶
Index ¶
- func MaybeProjectName(ctx context.Context) (string, bool)
- func MustProjectName(ctx context.Context) string
- func ProjectNameForDisplay(name string) (string, error)
- func ProjectNameModifier(ctx context.Context) (prefix string, err error)
- type ContextAccountAuth
- type ContextPublisherAuth
- type CurrentAccount
- func (v *CurrentAccount) WithAccount(ctx context.Context) context.Context
- func (v *CurrentAccount) WithAppletContextBySFID(ctx context.Context, id types.SFID) (context.Context, error)
- func (v *CurrentAccount) WithChainHeightBySFID(ctx context.Context, id types.SFID) (context.Context, error)
- func (v *CurrentAccount) WithChainTxBySFID(ctx context.Context, id types.SFID) (context.Context, error)
- func (v *CurrentAccount) WithContractLogBySFID(ctx context.Context, id types.SFID) (context.Context, error)
- func (v *CurrentAccount) WithCronJobBySFID(ctx context.Context, id types.SFID) (context.Context, error)
- func (v *CurrentAccount) WithInstanceContextBySFID(ctx context.Context, id types.SFID) (context.Context, error)
- func (v *CurrentAccount) WithProjectContextByName(ctx context.Context, name string) (context.Context, error)
- func (v *CurrentAccount) WithProjectContextBySFID(ctx context.Context, id types.SFID) (context.Context, error)
- func (v *CurrentAccount) WithPublisherBySFID(ctx context.Context, id types.SFID) (context.Context, error)
- func (v *CurrentAccount) WithResourceOwnerContextBySFID(ctx context.Context, id types.SFID) (context.Context, error)
- func (v *CurrentAccount) WithStrategyBySFID(ctx context.Context, id types.SFID) (context.Context, error)
- type CurrentPublisher
- func (v *CurrentPublisher) WithAccountContext(ctx context.Context) (context.Context, error)
- func (v *CurrentPublisher) WithProjectContext(ctx context.Context) (context.Context, error)
- func (v *CurrentPublisher) WithStrategiesByChanAndType(ctx context.Context, ch, tpe string) (context.Context, error)
- type ProjectProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustProjectName ¶ added in v1.1.0
func ProjectNameForDisplay ¶ added in v1.1.0
Types ¶
type ContextAccountAuth ¶
func (*ContextAccountAuth) ContextKey ¶
func (r *ContextAccountAuth) ContextKey() string
type ContextPublisherAuth ¶ added in v1.1.0
func (*ContextPublisherAuth) ContextKey ¶ added in v1.1.0
func (r *ContextPublisherAuth) ContextKey() string
type CurrentAccount ¶
func CurrentAccountFromContext ¶
func CurrentAccountFromContext(ctx context.Context) (*CurrentAccount, bool)
func MustCurrentAccountFromContext ¶ added in v1.1.0
func MustCurrentAccountFromContext(ctx context.Context) *CurrentAccount
func (*CurrentAccount) WithAccount ¶ added in v1.1.0
func (v *CurrentAccount) WithAccount(ctx context.Context) context.Context
func (*CurrentAccount) WithAppletContextBySFID ¶ added in v1.1.0
func (v *CurrentAccount) WithAppletContextBySFID(ctx context.Context, id types.SFID) (context.Context, error)
WithAppletContextBySFID With full contexts by applet SFID
func (*CurrentAccount) WithChainHeightBySFID ¶ added in v1.1.0
func (*CurrentAccount) WithChainTxBySFID ¶ added in v1.1.0
func (*CurrentAccount) WithContractLogBySFID ¶ added in v1.1.0
func (*CurrentAccount) WithCronJobBySFID ¶ added in v1.1.0
func (*CurrentAccount) WithInstanceContextBySFID ¶ added in v1.1.0
func (v *CurrentAccount) WithInstanceContextBySFID(ctx context.Context, id types.SFID) (context.Context, error)
WithInstanceContextBySFID With full contexts by instance SFID
func (*CurrentAccount) WithProjectContextByName ¶
func (v *CurrentAccount) WithProjectContextByName(ctx context.Context, name string) (context.Context, error)
WithProjectContextByName With project context by project name(in database)
func (*CurrentAccount) WithProjectContextBySFID ¶ added in v1.1.0
func (v *CurrentAccount) WithProjectContextBySFID(ctx context.Context, id types.SFID) (context.Context, error)
WithProjectContextBySFID With project context by project SFID
func (*CurrentAccount) WithPublisherBySFID ¶ added in v1.1.0
func (*CurrentAccount) WithResourceOwnerContextBySFID ¶ added in v1.1.0
func (*CurrentAccount) WithStrategyBySFID ¶ added in v1.1.0
type CurrentPublisher ¶ added in v1.1.0
func MustPublisher ¶ added in v1.1.0
func MustPublisher(ctx context.Context) *CurrentPublisher
func PublisherFromContext ¶ added in v1.1.0
func PublisherFromContext(ctx context.Context) (*CurrentPublisher, bool)
func (*CurrentPublisher) WithAccountContext ¶ added in v1.1.0
func (*CurrentPublisher) WithProjectContext ¶ added in v1.1.0
func (*CurrentPublisher) WithStrategiesByChanAndType ¶ added in v1.1.0
type ProjectProvider ¶ added in v1.1.0
type ProjectProvider struct {
ProjectName string `name:"projectName" in:"path" validate:"@projectName"`
}
ProjectProvider with account id prefix
func (ProjectProvider) ContextKey ¶ added in v1.1.0
func (ProjectProvider) ContextKey() string
func (*ProjectProvider) Output ¶ added in v1.1.0
func (r *ProjectProvider) Output(ctx context.Context) (interface{}, error)
func (ProjectProvider) Path ¶ added in v1.1.0
func (ProjectProvider) Path() string
Click to show internal directories.
Click to hide internal directories.