Documentation
¶
Overview ¶
Package rpc implements teled's Telegram RPC handlers over tg.ServerDispatcher.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler owns the server dispatcher and backs RPCs with storage.
func New ¶
func New(lg *zap.Logger, database *db.DB, store teled.ObjectStore, dc int, host string, port int, providers obs.Providers) *Handler
New builds a Handler and registers all supported RPCs. database and store may be nil, in which case the corresponding RPCs return an error. providers supplies the OpenTelemetry tracer and meter for this layer.
Click to show internal directories.
Click to hide internal directories.