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

@@ -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,