commons

package
v0.0.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 12, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommHandler

type CommHandler struct {
	Handler Handler
}

func (*CommHandler) Handle

func (s *CommHandler) Handle(ctx context.Context, req interface{}) (interface{}, error)

func (*CommHandler) Run

func (s *CommHandler) Run()

该接口的实现是为了 cronjob

type Handler

type Handler interface {
	ServeHandle(ctx context.Context, request interface{}) (interface{}, error)
}

Handler 通用接口

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL