handler

package
v0.0.0-...-34386d6 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2023 License: MIT Imports: 2 Imported by: 1

Documentation

Overview

Package handler @Link https://gitee.com/linngc/center.gf @Copyright Copyright (c) 2022 center CLI @Author linngc @License

Package handler @Link https://gitee.com/linngc/center.gf @Copyright Copyright (c) 2022 center CLI @Author linngc @License

Package handler @Link https://gitee.com/linngc/center.gf @Copyright Copyright (c) 2022 center CLI @Author linngc @License

Package handler @Link https://gitee.com/linngc/center.gf @Copyright Copyright (c) 2022 center CLI @Author linngc @License

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheApiExistHandler

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

func (*CacheApiExistHandler) BindHandler

func (c *CacheApiExistHandler) BindHandler(ossType em.OssType, handlerFunc OssTypeApiExistFunc)

func (*CacheApiExistHandler) Builder

func (c *CacheApiExistHandler) Builder(ctx context.Context, ossType em.OssType) (b bool, err error)

Builder 创建函数执行对象

type CacheApiGetHandler

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

func (*CacheApiGetHandler) BindHandler

func (c *CacheApiGetHandler) BindHandler(ossType em.OssType, handlerFunc OssTypeApiGetFunc)

func (*CacheApiGetHandler) Builder

func (c *CacheApiGetHandler) Builder(ctx context.Context, ossType em.OssType) (u *em.UploadInfo, err error)

Builder 创建函数执行对象

type CacheApiPutHandler

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

func (*CacheApiPutHandler) BindHandler

func (c *CacheApiPutHandler) BindHandler(ossType em.OssType, handlerFunc OssTypeApiPutFunc)

func (*CacheApiPutHandler) Builder

func (c *CacheApiPutHandler) Builder(ctx context.Context, ossType em.OssType) (u *em.UploadInfo, err error)

Builder 创建函数执行对象

type CacheHandler

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

func (*CacheHandler) BindHandler

func (c *CacheHandler) BindHandler(ossType em.OssType, handler OssTypeFunc)

BindHandler 指定OSS类型待执行函数式编程func

func (*CacheHandler) Builder

func (c *CacheHandler) Builder(ctx context.Context, ossType em.OssType)

Builder 创建函数执行对象

type OssTypeApiExistFunc

type OssTypeApiExistFunc func(ctx context.Context) (b bool, err error) //OSS缓存函数

type OssTypeApiGetFunc

type OssTypeApiGetFunc func(ctx context.Context) (u *em.UploadInfo, err error) //OSS缓存函数

type OssTypeApiPutFunc

type OssTypeApiPutFunc func(ctx context.Context) (u *em.UploadInfo, err error) //OSS缓存函数

type OssTypeFunc

type OssTypeFunc func(ctx context.Context)

OssTypeFunc 存储类型函数

Jump to

Keyboard shortcuts

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