async

package
v0.0.22-beta1 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2024 License: Apache-2.0 Imports: 6 Imported by: 34

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Async

type Async struct {
	// contains filtered or unexported fields
}

func NewAsync

func NewAsync(logger *zap.SugaredLogger, microServiceName MicroServiceName) *Async

func (*Async) Run

func (impl *Async) Run(fn func(), metadataOpts ...NewUpdateMetaData)

type MicroServiceName

type MicroServiceName string

func (MicroServiceName) ToString

func (m MicroServiceName) ToString() string

type NewUpdateMetaData

type NewUpdateMetaData func(*RunAsyncMetaData)

func CallerMethod

func CallerMethod(methodName string) NewUpdateMetaData

func CallerPath

func CallerPath(pathName string) NewUpdateMetaData

type RunAsyncMetaData

type RunAsyncMetaData struct {
	Method string
	Path   string
}

func NewRunAsyncMetaData

func NewRunAsyncMetaData() *RunAsyncMetaData

Jump to

Keyboard shortcuts

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