rename API => HTTPHandler

This commit is contained in:
ajatprabha
2021-10-04 00:00:40 +05:30
committed by Ken Hibino
parent bb2f7788f6
commit 4b54ec1548
6 changed files with 15 additions and 15 deletions

View File

@@ -72,7 +72,7 @@ import (
var staticContents embed.FS
func main() {
api := asynqmon.NewAPI(asynqmon.APIOptions{
api := asynqmon.NewHTTPHandler(asynqmon.Options{
RedisConnOpt: asynq.RedisClientOpt{Addr: ":6379"},
StaticContentHandler: asynqmon.NewStaticContentHandler(
staticContents,