Versions in this module Expand all Collapse all v0 v0.1.0 May 30, 2023 Changes in this version + func NewDB(dsn string) (*sqlx.DB, error) + func NewRepository(db *sqlx.DB) repository.Repository + type Proxy struct + func NewProxy(db *sqlx.DB) *Proxy + func (p *Proxy) Delete(ctx context.Context, proxyID string) error + func (p *Proxy) Get(ctx context.Context, proxyID string) (entity.Proxy, error) + func (p *Proxy) Upsert(ctx context.Context, proxy entity.Proxy) error + type Route struct + func NewRoute(db *sqlx.DB) *Route + func (r *Route) Delete(ctx context.Context, routes []entity.Route) error + func (r *Route) GetWithProxyID(ctx context.Context, proxyID string) ([]entity.Route, error) + func (r *Route) Upsert(ctx context.Context, routes []entity.Route) error