svc

package
v1.5.8 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BytesBytesService

type BytesBytesService struct {
}

func (*BytesBytesService) GetBytesBytes

func (svc *BytesBytesService) GetBytesBytes(ctx context.Context, req []byte) ([]byte, error)

func (*BytesBytesService) PostBytesBytes

func (svc *BytesBytesService) PostBytesBytes(ctx context.Context, req []byte) ([]byte, error)

type BytesReaderService

type BytesReaderService struct {
}

func (*BytesReaderService) GetBytesReader

func (svc *BytesReaderService) GetBytesReader(ctx context.Context, req []byte) (io.Reader, error)

func (*BytesReaderService) PatchBytesReader

func (svc *BytesReaderService) PatchBytesReader(ctx context.Context, req []byte) (io.Reader, error)

type BytesStringService

type BytesStringService struct {
}

func (*BytesStringService) GetBytesString

func (svc *BytesStringService) GetBytesString(ctx context.Context, req []byte) (string, error)

func (*BytesStringService) PutBytesString

func (svc *BytesStringService) PutBytesString(ctx context.Context, req []byte) (string, error)

type Custom added in v1.2.0

type Custom struct {
}

func (*Custom) Custom added in v1.2.0

func (c *Custom) Custom(ctx context.Context, req *demo.CustomReq) (*demo.CustomResp, error)

type ObjObjService added in v1.3.0

type ObjObjService struct {
}

func (*ObjObjService) AllRequest added in v1.5.0

func (svc *ObjObjService) AllRequest(ctx context.Context, req *demo.AllRequestReq) (*demo.AllRequestResp, error)

func (*ObjObjService) FormBindingJSONRender added in v1.3.0

func (svc *ObjObjService) FormBindingJSONRender(ctx context.Context, req *demo.FormBindingReq) (*demo.JSONRenderResp, error)

func (*ObjObjService) FormMultipartBindingAsciiJSONRender added in v1.3.0

func (svc *ObjObjService) FormMultipartBindingAsciiJSONRender(ctx context.Context, req *demo.FormMultipartBindingReq) (*demo.AsciiJSONRenderResp, error)

func (*ObjObjService) FormPostBindingPureJSONRender added in v1.3.0

func (svc *ObjObjService) FormPostBindingPureJSONRender(ctx context.Context, req *demo.FormPostBindingReq) (*demo.PureJSONRenderResp, error)

func (*ObjObjService) HeaderBindingJsonpJSONRender added in v1.3.0

func (svc *ObjObjService) HeaderBindingJsonpJSONRender(ctx context.Context, req *demo.HeaderBindingReq) (*demo.JsonpJSONRenderResp, error)

func (*ObjObjService) JSONBindingJSONRender added in v1.3.0

func (svc *ObjObjService) JSONBindingJSONRender(ctx context.Context, req *demo.JSONBindingReq) (*demo.JSONRenderResp, error)

func (*ObjObjService) MsgPackBindingMsgPackRender added in v1.3.0

func (svc *ObjObjService) MsgPackBindingMsgPackRender(ctx context.Context, req *demo.MsgPackBindingReq) (*demo.MsgPackRenderResp, error)

func (*ObjObjService) ProtoBufBindingProtoBufRender added in v1.3.0

func (svc *ObjObjService) ProtoBufBindingProtoBufRender(ctx context.Context, req *pb.ProtoBufReq) (*pb.ProtoBufResp, error)

func (*ObjObjService) ProtoJSONBindingProtoJSONRender added in v1.3.0

func (svc *ObjObjService) ProtoJSONBindingProtoJSONRender(ctx context.Context, req *pb.ProtoBufReq) (*pb.ProtoBufResp, error)

func (*ObjObjService) QueryBindingSecureJSONRender added in v1.3.0

func (svc *ObjObjService) QueryBindingSecureJSONRender(ctx context.Context, req *demo.QueryBindingReq) (*demo.SecureJSONRenderResp, error)

func (*ObjObjService) TOMLBindingTOMLRender added in v1.3.0

func (svc *ObjObjService) TOMLBindingTOMLRender(ctx context.Context, req *demo.TOMLBindingReq) (*demo.TOMLRenderResp, error)

func (*ObjObjService) UriBindingIndentedJSONRender added in v1.3.0

func (svc *ObjObjService) UriBindingIndentedJSONRender(ctx context.Context, req *demo.UriBindingReq) (*demo.IndentedJSONRenderResp, error)

func (*ObjObjService) XMLBindingXMLRender added in v1.3.0

func (svc *ObjObjService) XMLBindingXMLRender(ctx context.Context, req *demo.XMLBindingReq) (*demo.XMLRenderResp, error)

func (*ObjObjService) YAMLBindingYAMLRender added in v1.3.0

func (svc *ObjObjService) YAMLBindingYAMLRender(ctx context.Context, req *demo.YAMLBindingReq) (*demo.YAMLRenderResp, error)

type ProtoDemoServer added in v1.3.0

type ProtoDemoServer struct {
	protodemo.UnsafeProtoDemoServer
}

func (*ProtoDemoServer) DELETEUriBindingJSONRender added in v1.3.0

func (svc *ProtoDemoServer) DELETEUriBindingJSONRender(ctx context.Context, request *protodemo.HelloRequest) (*protodemo.HelloReply, error)

func (*ProtoDemoServer) GETUriBindingIndentedJSONRender added in v1.3.0

func (svc *ProtoDemoServer) GETUriBindingIndentedJSONRender(ctx context.Context, request *protodemo.HelloRequest) (*protodemo.HelloReply, error)

func (*ProtoDemoServer) GETUriQueryBindingSecureJSONRender added in v1.3.0

func (svc *ProtoDemoServer) GETUriQueryBindingSecureJSONRender(ctx context.Context, request *protodemo.HelloRequest) (*protodemo.HelloReply, error)

func (*ProtoDemoServer) HeaderMsgPackBindingMsgPackRender added in v1.3.0

func (svc *ProtoDemoServer) HeaderMsgPackBindingMsgPackRender(ctx context.Context, request *protodemo.HelloRequest) (*protodemo.HelloReply, error)

func (*ProtoDemoServer) NotDefine added in v1.3.0

func (svc *ProtoDemoServer) NotDefine(ctx context.Context, request *protodemo.HelloRequest) (*protodemo.HelloReply, error)

func (*ProtoDemoServer) PATCHHeaderProtoFormBindingPureJSONRender added in v1.3.0

func (svc *ProtoDemoServer) PATCHHeaderProtoFormBindingPureJSONRender(ctx context.Context, request *protodemo.HelloRequest) (*protodemo.HelloReply, error)

func (*ProtoDemoServer) POSTCustomBindingCustomRender added in v1.3.0

func (svc *ProtoDemoServer) POSTCustomBindingCustomRender(ctx context.Context, request *protodemo.HelloRequest) (*protodemo.HelloReply, error)

func (*ProtoDemoServer) POSTError added in v1.3.0

func (svc *ProtoDemoServer) POSTError(ctx context.Context, request *protodemo.HelloRequest) (*protodemo.HelloReply, error)

func (*ProtoDemoServer) POSTGRPCStatus added in v1.3.0

func (svc *ProtoDemoServer) POSTGRPCStatus(ctx context.Context, request *protodemo.HelloRequest) (*protodemo.HelloReply, error)

func (*ProtoDemoServer) POSTHeaderFormPostBindingJSONPJSONRender added in v1.3.0

func (svc *ProtoDemoServer) POSTHeaderFormPostBindingJSONPJSONRender(ctx context.Context, request *protodemo.HelloRequest) (*protodemo.HelloReply, error)

func (*ProtoDemoServer) POSTProtoBufBindingProtoBufRender added in v1.3.0

func (svc *ProtoDemoServer) POSTProtoBufBindingProtoBufRender(ctx context.Context, request *protodemo.HelloRequest) (*protodemo.HelloReply, error)

func (*ProtoDemoServer) POSTProtoJSONBindingProtoJSONRender added in v1.3.0

func (svc *ProtoDemoServer) POSTProtoJSONBindingProtoJSONRender(ctx context.Context, request *protodemo.HelloRequest) (*protodemo.HelloReply, error)

func (*ProtoDemoServer) POSTSetHeaderTrailer added in v1.3.0

func (svc *ProtoDemoServer) POSTSetHeaderTrailer(ctx context.Context, request *protodemo.HelloRequest) (*protodemo.HelloReply, error)

func (*ProtoDemoServer) PUTHeaderJSONBindingAsciiJSONRender added in v1.3.0

func (svc *ProtoDemoServer) PUTHeaderJSONBindingAsciiJSONRender(ctx context.Context, request *protodemo.HelloRequest) (*protodemo.HelloReply, error)

type ProtoService added in v1.3.0

type ProtoService struct {
	protoservice.UnimplementedProtoServiceServer
}

func (ProtoService) Method added in v1.3.0

type ReaderBytesService

type ReaderBytesService struct {
}

func (*ReaderBytesService) GetReaderBytes

func (svc *ReaderBytesService) GetReaderBytes(ctx context.Context, reader io.Reader) ([]byte, error)

func (*ReaderBytesService) PostReaderBytes

func (svc *ReaderBytesService) PostReaderBytes(ctx context.Context, reader io.Reader) ([]byte, error)

type ReaderReaderService

type ReaderReaderService struct {
}

func (*ReaderReaderService) GetReaderReader

func (svc *ReaderReaderService) GetReaderReader(ctx context.Context, reader io.Reader) (io.Reader, error)

func (*ReaderReaderService) HeadReaderReader

func (svc *ReaderReaderService) HeadReaderReader(ctx context.Context, reader io.Reader) (io.Reader, error)

type ReaderStringService

type ReaderStringService struct {
}

func (*ReaderStringService) GetReaderString

func (svc *ReaderStringService) GetReaderString(ctx context.Context, reader io.Reader) (string, error)

func (*ReaderStringService) PostReaderString

func (svc *ReaderStringService) PostReaderString(ctx context.Context, reader io.Reader) (string, error)

type Service

type Service struct{}

func (*Service) Method

func (svc *Service) Method(ctx context.Context, req *demo.MethodReq) (*demo.MethodResp, error)

type StringBytesService

type StringBytesService struct {
}

func (*StringBytesService) GetStringBytes

func (svc *StringBytesService) GetStringBytes(ctx context.Context, s string) ([]byte, error)

func (*StringBytesService) OptionsStringBytes

func (svc *StringBytesService) OptionsStringBytes(ctx context.Context, s string) ([]byte, error)

type StringReaderService

type StringReaderService struct {
}

func (*StringReaderService) GetStringRender

func (svc *StringReaderService) GetStringRender(ctx context.Context, s string) (io.Reader, error)

func (*StringReaderService) OptionsStringReader

func (svc *StringReaderService) OptionsStringReader(ctx context.Context, s string) (io.Reader, error)

type StringStringService

type StringStringService struct {
}

func (*StringStringService) GetStringString

func (svc *StringStringService) GetStringString(ctx context.Context, s string) (string, error)

func (*StringStringService) PatchStringString

func (svc *StringStringService) PatchStringString(ctx context.Context, s string) (string, error)

Jump to

Keyboard shortcuts

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