Versions in this module Expand all Collapse all v1 v1.0.0 May 31, 2023 Changes in this version + const MAX_COUNT + const MAX_PATH_LENGTH + const MAX_SIZE + func DBOrder(orders []Order, validOrderMap map[string]string) string + func DeleteStrSliceElms(sl []string, elms ...string) []string + func EnsureIndex(ctx context.Context, collection *mongo.Collection, indexName string, ...) (err error) + func GenClusterID() string + func GenDataModelEntitySetName(name string) string + func GenDataModelHeaderOfID(name string) string + func GenDataModelID() string + func GenNotebookServerID() string + func GenPublicWorkspaceID() string + func GenRunID() string + func GenSubmissionID() string + func GenWorkflowFileID() string + func GenWorkflowID() string + func GenWorkflowVersionID() string + func GenWorkspaceID() string + func GetDataModelType(dataModelName string) string + func GetSubPath(basepath, targpath string) (string, bool) + func GrpcDial(conn ConnectInfo, authInfo AuthInfo) (*grpc.ClientConn, error) + func HttpDial(conn ConnectInfo, authInfo AuthInfo) (*c.Client, error) + func In(elm string, elms []string) bool + func MarshalParamValue(value interface{}) (string, error) + func NewBasicAuthRPCCredentials(username, password string) credentials.PerRPCCredentials + func NewHTTPTlSConfig(conn ConnectInfo) (*tls.Config, error) + func NewRPCCredentialFromAuthInfo(authInfo AuthInfo) credentials.PerRPCCredentials + func NewTokenRPCCredentials(token string) credentials.PerRPCCredentials + func PointBool(b bool) *bool + func PointFloat64(f float64) *float64 + func PointInt32(i int32) *int32 + func PointInt64(i int64) *int64 + func PointMetav1Time(b metav1.Time) *metav1.Time + func PointString(s string) *string + func PointTime(b time.Time) *time.Time + func ReadDataModelFromCSV(filePath string) ([]string, [][]string, error) + func SearchWordFilter(db *gorm.DB, word string, fields []string, exact bool) *gorm.DB + func ToGRPCError(err error) error + func UnmarshalParamValue(value string) interface + func Unzip(zipFilePath, targetDir string) error + func ValidateFSDirectory(dirname string) error + func ValidateFileExist(filePath string) error + func WriteHertzAcceptedResponse(c *app.RequestContext) + func WriteHertzCreatedResponse(c *app.RequestContext, data interface{}) + func WriteHertzErrorResponse(c *app.RequestContext, err error) + func WriteHertzOKResponse(c *app.RequestContext, data interface{}) + func ZipDir(srcDir string, zipFileName string) error + type AuthInfo struct + AuthToken string + Password string + Username string + func (a AuthInfo) Validate() error + type ConnectInfo struct + CaFile string + ClientCertFile string + ClientCertKeyFile string + Insecure bool + ServerAddr string + ServerCertFile string + ServerName string + func (c ConnectInfo) Validate() error + type MongoPaginate struct + func NewMongoPaginate(limit, page int) *MongoPaginate + func (mp *MongoPaginate) GetPaginatedOpts() *options.FindOptions + type Order struct + Ascending bool + Field string + type Pagination struct + Orders []Order + Page int + Size int + func NewPagination(size int, page int) *Pagination + func (q *Pagination) GetHasMore(totalCount int) bool + func (q *Pagination) GetLimit() int + func (q *Pagination) GetOffset() int + func (q *Pagination) GetOrderBy() string + func (q *Pagination) GetPage() int + func (q *Pagination) GetQueryString() string + func (q *Pagination) GetSize() int + func (q *Pagination) GetTotalPages(totalCount int) int + func (q *Pagination) SetOrderBy(orderByQuery string) error + type TransportWithAuth struct + func NewTransportWithAuth(conn ConnectInfo, authInfo AuthInfo) (*TransportWithAuth, error) + func (b TransportWithAuth) GetRequestMetadata(ctx context.Context, in ...string) (map[string]string, error) + func (b TransportWithAuth) RequireTransportSecurity() bool + func (t TransportWithAuth) Client() *http.Client + func (t TransportWithAuth) RoundTrip(req *http.Request) (*http.Response, error)