Versions in this module Expand all Collapse all v1 v1.0.1 Aug 15, 2024 Changes in this version + const TokenPrefix + type ClientToken struct + ClientID string + ExpiredAt time.Time + Metadata metadata.Metadata + Token string + UserID string + func (*ClientToken) TableName() string + func (c *ClientToken) ToProtobuf() *pb.ClientToken + type ClientTokens []*ClientToken + func (tokens ClientTokens) ToProtobuf() []*pb.ClientToken + type DBClient struct + DB *gorm.DB + func (dbClient *DBClient) Create(ctx context.Context, req *pb.ClientTokenCreateRequest) (*pb.ClientToken, error) + func (dbClient *DBClient) Delete(ctx context.Context, req *pb.ClientTokenDeleteRequest) (*commonpb.VoidResponse, error) + func (dbClient *DBClient) Get(ctx context.Context, req *pb.ClientTokenGetRequest) (*pb.ClientToken, error) + func (dbClient *DBClient) Paging(ctx context.Context, req *pb.ClientTokenPagingRequest) (*pb.ClientTokenPagingResponse, error) + func (dbClient *DBClient) Update(ctx context.Context, req *pb.ClientTokenUpdateRequest) (*pb.ClientToken, error)