Documentation ¶
Index ¶
- type Client
- type Clients
- type DBClient
- func (dbClient *DBClient) Create(ctx context.Context, req *pb.ClientCreateRequest) (*pb.Client, error)
- func (dbClient *DBClient) Delete(ctx context.Context, req *pb.ClientDeleteRequest) (*commonpb.VoidResponse, error)
- func (dbClient *DBClient) Get(ctx context.Context, req *pb.ClientGetRequest) (*pb.Client, error)
- func (dbClient *DBClient) Paging(ctx context.Context, req *pb.ClientPagingRequest) (*pb.ClientPagingResponse, error)
- func (dbClient *DBClient) Update(ctx context.Context, req *pb.ClientUpdateRequest) (*pb.Client, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { common.BaseModel Name string `gorm:"column:name;type:varchar(191)" json:"name" yaml:"name"` Desc string `gorm:"column:desc;type:varchar(1024)" json:"desc" yaml:"desc"` AccessKeyID string `gorm:"column:access_key_id;type:char(32)" json:"accessKeyID" yaml:"accessKeyID"` SecretKeyID string `gorm:"column:secret_key_id;type:char(32)" json:"secretKeyID" yaml:"secretKeyID"` Metadata metadata.Metadata `gorm:"column:metadata;type:mediumtext" json:"metadata" yaml:"metadata"` }
func (*Client) ToProtobuf ¶
type DBClient ¶
func (*DBClient) Delete ¶
func (dbClient *DBClient) Delete(ctx context.Context, req *pb.ClientDeleteRequest) (*commonpb.VoidResponse, error)
func (*DBClient) Paging ¶
func (dbClient *DBClient) Paging(ctx context.Context, req *pb.ClientPagingRequest) (*pb.ClientPagingResponse, error)
Click to show internal directories.
Click to hide internal directories.