gin

package
v1.16.27 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var JsonPb = &JSONPb{}

Functions

func ForwardResponseMessage

func ForwardResponseMessage(ctx *gin.Context, md grpc.ServerMetadata, message proto.Message)

func RegisterOauthServiceHandlerServer

func RegisterOauthServiceHandlerServer(r *gin.Engine, server OauthServiceServer)

Types

type JSONPb

type JSONPb struct {
}

func (*JSONPb) ContentType

func (*JSONPb) ContentType(_ interface{}) string

func (*JSONPb) ContentTypeFromMessage

func (j *JSONPb) ContentTypeFromMessage(v interface{}) string

func (*JSONPb) Delimiter

func (j *JSONPb) Delimiter() []byte

func (*JSONPb) Marshal

func (j *JSONPb) Marshal(v any) ([]byte, error)

func (*JSONPb) Name

func (j *JSONPb) Name() string

func (*JSONPb) Unmarshal

func (j *JSONPb) Unmarshal(data []byte, v interface{}) error

type OauthServiceServer

type OauthServiceServer interface {
	OauthAuthorize(context.Context, *oauth.OauthReq) (*response.HttpResponse, error)
	OauthToken(context.Context, *oauth.OauthReq) (*response.HttpResponse, error)
}

Jump to

Keyboard shortcuts

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