Documentation
¶
Index ¶
- func CreateHandler(s *RestApi, t interface{}) func(c *gin.Context)
- func DeleteHandler(db *gorm.DB, t interface{}) func(c *gin.Context)
- func ListHandler(s *RestApi, t interface{}) func(c *gin.Context)
- func ParsedQuery(c *gin.Context) (sort string, offset, limit int, filter map[string]interface{})
- func ReadHandler(db *gorm.DB, t interface{}) func(c *gin.Context)
- func UpdateHandler(s *RestApi, t interface{}) func(c *gin.Context)
- type Client
- func (c *Client) Create(body interface{}) *Client
- func (c *Client) Delete(obj interface{}) *Client
- func (c *Client) Do(f func(c *Client)) *Client
- func (c *Client) Error() error
- func (c *Client) Find(result interface{}) *Client
- func (c *Client) Login(username, password string) *Client
- func (c *Client) Update(body interface{}) *Client
- func (c *Client) UserName() string
- type CreateHandlerPreprocessor
- type ErrorResult
- type K8sResource
- type ModelContext
- type RestApi
- func (s *RestApi) CloseDb()
- func (s *RestApi) Connect(dialect, conn string) *RestApi
- func (s *RestApi) CreateEndpoints(r *gin.Engine, grp string, login bool) *RestApi
- func (s *RestApi) Error() error
- func (s *RestApi) Run() *RestApi
- func (s *RestApi) Server(addr string, port int, apiRoot string, login bool) *RestApi
- func (s *RestApi) Shutdown() *RestApi
- func (s *RestApi) Start() *RestApi
- type UpdateHandlerPreprocessor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateHandler ¶
func ListHandler ¶
func ParsedQuery ¶
func UpdateHandler ¶
Types ¶
type ErrorResult ¶
type K8sResource ¶
type ModelContext ¶
type RestApi ¶
type RestApi struct { Login bool // contains filtered or unexported fields }
func NewRestApi ¶
func NewRestApi(t ...interface{}) *RestApi
func (*RestApi) CreateEndpoints ¶
Click to show internal directories.
Click to hide internal directories.