Versions in this module Expand all Collapse all v0 v0.0.10 Apr 10, 2026 v0.0.9 Mar 17, 2026 Changes in this version + const APP_NAME + func NewMappingSet() *types.Set[*Mapping] + func NewRoutingPolicySet() *types.Set[*RoutingPolicy] + type CreateMappingRequest struct + BackendDatabase string + BackendId string + BackendPassword string + BackendUsername string + Description string + Enabled bool + Priority int + ReadOnly bool + ServiceName string + Username string + func NewCreateMappingRequest() *CreateMappingRequest + func (r *CreateMappingRequest) Validate() error + type CreateRoutingPolicyRequest struct + Enabled bool + Metadata map[string]interface{} + PolicyId string + RateLimit int + RetryCount int + RoutingStrategy string + ServiceName string + Timeout int + Username string + func NewCreateRoutingPolicyRequest() *CreateRoutingPolicyRequest + func (r *CreateRoutingPolicyRequest) Validate() error + type DeleteMappingRequest struct + func NewDeleteMappingRequest(id int64) *DeleteMappingRequest + type GetMappingRequest struct + Id int64 + func NewGetMappingRequest(id int64) *GetMappingRequest + type GetRoutingPolicyRequest struct + PolicyId string + func NewGetRoutingPolicyRequest(policyId string) *GetRoutingPolicyRequest + type Mapping struct + BackendDatabase string + BackendId string + BackendPassword string + BackendUsername string + CreatedAt time.Time + Description string + Enabled bool + Id int64 + Priority int + ReadOnly bool + ServiceName string + UpdatedAt time.Time + Username string + func NewMapping() *Mapping + func (m *Mapping) String() string + func (m *Mapping) TableName() string + type MappingResponse struct + Data *Mapping + type MappingSet struct + func (s *MappingSet) String() string + type MappingSetResponse struct + Data *types.Set[*Mapping] + type ResolveRouteRequest struct + ServiceName string + Username string + func NewResolveRouteRequest(username, serviceName string) *ResolveRouteRequest + func (r *ResolveRouteRequest) Validate() error + type RoutingPolicy struct + CreatedAt time.Time + Enabled bool + Id int64 + Metadata map[string]interface{} + PolicyId string + RateLimit int + RetryCount int + RoutingStrategy string + ServiceName string + Timeout int + UpdatedAt time.Time + Username string + func NewRoutingPolicy() *RoutingPolicy + func (p *RoutingPolicy) Scan(value interface{}) error + func (p *RoutingPolicy) String() string + func (p *RoutingPolicy) TableName() string + type RoutingPolicyResponse struct + Data *RoutingPolicy + type RoutingPolicySet struct + func (s *RoutingPolicySet) String() string + type RoutingStrategy string + const Hash + const ReadWriteSplit + const RoundRobin + const Static + type SearchMappingRequest struct + BackendId string + Enabled *bool + ServiceName string + Username string + func NewSearchMappingRequest() *SearchMappingRequest + type Service interface + CreateMapping func(context.Context, *CreateMappingRequest) (*Mapping, error) + CreateRoutingPolicy func(context.Context, *CreateRoutingPolicyRequest) (*RoutingPolicy, error) + DeleteMapping func(context.Context, *DeleteMappingRequest) (*Mapping, error) + GetMapping func(context.Context, *GetMappingRequest) (*Mapping, error) + GetRoutingPolicy func(context.Context, *GetRoutingPolicyRequest) (*RoutingPolicy, error) + ResolveRoute func(context.Context, *ResolveRouteRequest) (*Mapping, error) + SearchMapping func(context.Context, *SearchMappingRequest) (*types.Set[*Mapping], error) + UpdateMapping func(context.Context, *UpdateMappingRequest) (*Mapping, error) + func GetService() Service + type UpdateMappingRequest struct + BackendDatabase *string + BackendPassword *string + BackendUsername *string + Description *string + Enabled *bool + Id int64 + Priority *int + ReadOnly *bool + func NewUpdateMappingRequest(id int64) *UpdateMappingRequest