api

package
v0.0.0-...-89e5b94 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 7 Imported by: 20

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnyStringProto

type AnyStringProto struct {
	Content string
}

func (*AnyStringProto) MarshalJSON

func (r *AnyStringProto) MarshalJSON() ([]byte, error)

func (*AnyStringProto) ProtoReflect

func (r *AnyStringProto) ProtoReflect() protoreflect.Message

func (*AnyStringProto) String

func (r *AnyStringProto) String() string

type BizContext

type BizContext struct {
	*gin.Context
	Store            map[string]interface{}
	ConfBeanRegistry framework.ConfBeanRegistry
	BizType          string
	Logger           *nlog.NLog
}

type ProtoHandler

type ProtoHandler interface {
	// Validate is used for request verification.
	Validate(*BizContext, ProtoRequest, *errorcode.Errs)
	// Handle is used to process business logic
	Handle(*BizContext, ProtoRequest) ProtoResponse
	// GetType returns the type of request and response.
	GetType() (reqType, respType reflect.Type)
}

ProtoHandler Is the service handler interface.

type ProtoRequest

type ProtoRequest = proto.Message

type ProtoResponse

type ProtoResponse = proto.Message

Jump to

Keyboard shortcuts

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