Documentation ¶
Index ¶
- Constants
- func Create(ctx context.Context, r *CreateReq) (*models.Operator, error)
- func GetByAccountAndName(ctx context.Context, accountID types.SFID, name string) (*models.Operator, error)
- func GetBySFID(ctx context.Context, id types.SFID) (*models.Operator, error)
- func ListByCond(ctx context.Context, r *CondArgs) ([]models.Operator, error)
- func Migrate(ctx context.Context)
- func RemoveBySFID(ctx context.Context, id types.SFID) error
- type CondArgs
- type CreateReq
- type Detail
- type ListDetailRsp
- type ListReq
- type ListRsp
Constants ¶
View Source
const DefaultOperatorName = "default"
Variables ¶
This section is empty.
Functions ¶
func GetByAccountAndName ¶
func ListByCond ¶ added in v1.2.2
Types ¶
type CreateReq ¶
type CreateReq struct { Name string `json:"name"` PrivateKey string `json:"privateKey"` PaymasterKey string `json:"paymasterKey,omitempty"` Type enums.OperatorKeyType `json:"type,omitempty,default='1'"` }
type Detail ¶ added in v1.2.2
func GetDetailByAccountAndName ¶ added in v1.2.2
type ListDetailRsp ¶ added in v1.2.2
func ListDetail ¶ added in v1.2.2
func ListDetail(ctx context.Context, r *ListReq) (*ListDetailRsp, error)
Directories ¶
Path | Synopsis |
---|---|
types/mock
Package mock is a generated GoMock package.
|
Package mock is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.