rename API => HTTPHandler

This commit is contained in:
ajatprabha
2021-10-04 00:00:40 +05:30
parent 413543fa9e
commit 4b05905633
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,