Documentation ¶
Index ¶
- func NewProxyService(next batproxy.ProxyService, logger *slog.Logger) batproxy.ProxyService
- type Logger
- type Options
- type ProxyService
- func (s *ProxyService) CreateProxy(ctx context.Context, proxy *batproxy.Proxy, opts batproxy.CreateProxyOptions) (err error)
- func (s *ProxyService) DeleteProxy(ctx context.Context, proxyID string) (err error)
- func (s *ProxyService) ListProxies(ctx context.Context, opts batproxy.ListProxiesOptions) (page *batproxy.ListProxiesPage, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewProxyService ¶ added in v0.0.9
func NewProxyService(next batproxy.ProxyService, logger *slog.Logger) batproxy.ProxyService
Types ¶
type Options ¶ added in v0.0.9
type Options struct { // slog.Logger set for return a source parent logger *slog.Logger // slog.HandlerOptions set for slog options slog.HandlerOptions // JsonHandler default false, means default log as `Text` format, // non-effective when *slog.Logger is not nil JsonHandler bool }
type ProxyService ¶ added in v0.0.9
type ProxyService struct {
// contains filtered or unexported fields
}
func (*ProxyService) CreateProxy ¶ added in v0.0.9
func (s *ProxyService) CreateProxy(ctx context.Context, proxy *batproxy.Proxy, opts batproxy.CreateProxyOptions) (err error)
func (*ProxyService) DeleteProxy ¶ added in v0.0.9
func (s *ProxyService) DeleteProxy(ctx context.Context, proxyID string) (err error)
func (*ProxyService) ListProxies ¶ added in v0.0.9
func (s *ProxyService) ListProxies(ctx context.Context, opts batproxy.ListProxiesOptions) (page *batproxy.ListProxiesPage, err error)
Click to show internal directories.
Click to hide internal directories.