mirror of
https://github.com/hibiken/asynqmon.git
synced 2025-09-22 06:46:34 +08:00
rename API => HTTPHandler
This commit is contained in:
@@ -12,8 +12,8 @@ import (
|
||||
//go:embed ui-assets/*
|
||||
var staticContents embed.FS
|
||||
|
||||
func ExampleNewAPI() {
|
||||
api := asynqmon.NewAPI(asynqmon.APIOptions{
|
||||
func ExampleNewHTTPHandler() {
|
||||
api := asynqmon.NewHTTPHandler(asynqmon.Options{
|
||||
RedisConnOpt: asynq.RedisClientOpt{Addr: ":6379"},
|
||||
StaticContentHandler: asynqmon.NewStaticContentHandler(
|
||||
staticContents,
|
||||
|
Reference in New Issue
Block a user