github.com/octohelm/storage@v0.0.0-20240516030302-1ac2cc1ea347/pkg/dal/zz_generated.runtimedoc.go (about)

     1  /*
     2  Package dal GENERATED BY gengo:runtimedoc
     3  DON'T EDIT THIS FILE
     4  */
     5  package dal
     6  
     7  // nolint:deadcode,unused
     8  func runtimeDoc(v any, names ...string) ([]string, bool) {
     9  	if c, ok := v.(interface {
    10  		RuntimeDoc(names ...string) ([]string, bool)
    11  	}); ok {
    12  		return c.RuntimeDoc(names...)
    13  	}
    14  	return nil, false
    15  }
    16  
    17  func (v Database) RuntimeDoc(names ...string) ([]string, bool) {
    18  	if len(names) > 0 {
    19  		switch names[0] {
    20  		case "Endpoint":
    21  			return []string{
    22  				"Endpoint of database",
    23  			}, true
    24  		case "EnableMigrate":
    25  			return []string{
    26  				"auto migrate before run",
    27  			}, true
    28  
    29  		}
    30  
    31  		return nil, false
    32  	}
    33  	return []string{}, true
    34  }
    35  
    36  func (DeleteFunc) RuntimeDoc(names ...string) ([]string, bool) {
    37  	return []string{}, true
    38  }
    39  func (OptionFunc) RuntimeDoc(names ...string) ([]string, bool) {
    40  	return []string{}, true
    41  }