Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = fx.Module("tunnel", fx.Provide(newModule))
Module
Functions ¶
This section is empty.
Types ¶
type Result ¶
type Result struct {
fx.Out
Transport gateway.Transport `group:"transport"`
TunnelService Service `name:"tunnel_service"`
}
Result
type Service ¶
type Service interface {
// Create
Create(context.Context, TunnelCreate) (Tunnel, SecretKey, error)
// Get
Get(context.Context, string) (Tunnel, error)
// List
List(context.Context, int32, int32) ([]TunnelPartial, error)
// Update
Update(context.Context, TunnelUpdate) (Tunnel, error)
// Delete
Delete(context.Context, string) error
// VerifyToken
VerifyToken(context.Context, string) (string, error)
// Health
Health(context.Context) error
}
Service
type TunnelPartial ¶
TunnelPartial
Click to show internal directories.
Click to hide internal directories.