srv

package
v0.0.0-...-8419d6f Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GrpcHandler

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

func (*GrpcHandler) Generate

func (a *GrpcHandler) Generate(config helper.GenerateConfig)

func (*GrpcHandler) Setup

func (a *GrpcHandler) Setup(plugin *protogen.Plugin)

type GrpcHandlerTmpl

type GrpcHandlerTmpl struct {
	ProjName string
	SvcName  string
}

func (*GrpcHandlerTmpl) Render

func (t *GrpcHandlerTmpl) Render() string

type GrpcMethodTmpl

type GrpcMethodTmpl struct {
	Handler
	ProjName string
	SvcName  string
}

func (*GrpcMethodTmpl) Render

func (t *GrpcMethodTmpl) Render() string

type GrpcServer

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

func (*GrpcServer) Generate

func (a *GrpcServer) Generate(config helper.GenerateConfig)

func (*GrpcServer) Setup

func (a *GrpcServer) Setup(plugin *protogen.Plugin)

type GrpcServerTmpl

type GrpcServerTmpl struct {
	ProjName string
	SvcName  string
}

func (*GrpcServerTmpl) Render

func (t *GrpcServerTmpl) Render() string

type Handler

type Handler struct {
	Path              string
	Method            string
	Request           string
	Response          string
	IsStreamingClient bool
	IsStreamingServer bool
}

type HttpHandler

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

func (*HttpHandler) Generate

func (a *HttpHandler) Generate(config helper.GenerateConfig)

func (*HttpHandler) Setup

func (a *HttpHandler) Setup(plugin *protogen.Plugin)

type HttpHandlerTmpl

type HttpHandlerTmpl struct {
	ProjName string
	SvcName  string
}

func (*HttpHandlerTmpl) Render

func (t *HttpHandlerTmpl) Render() string

type HttpMethodTmpl

type HttpMethodTmpl struct {
	Handler
}

func (*HttpMethodTmpl) Render

func (t *HttpMethodTmpl) Render() string

type HttpServer

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

func (*HttpServer) Generate

func (a *HttpServer) Generate(config helper.GenerateConfig)

func (*HttpServer) Setup

func (a *HttpServer) Setup(plugin *protogen.Plugin)

type HttpServerTmpl

type HttpServerTmpl struct {
	ProjName string
	SvcName  string
	Handlers []Handler
}

func (*HttpServerTmpl) Render

func (t *HttpServerTmpl) Render() string

type Server

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

func (*Server) Generate

func (a *Server) Generate(config helper.GenerateConfig)

func (*Server) Setup

func (a *Server) Setup(plugin *protogen.Plugin)

type ServerTmpl

type ServerTmpl struct {
	SvcName string
}

func (*ServerTmpl) Render

func (t *ServerTmpl) Render() string

type Service

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

func (*Service) Generate

func (a *Service) Generate(config helper.GenerateConfig)

func (*Service) Setup

func (a *Service) Setup(plugin *protogen.Plugin)

type ServiceTmpl

type ServiceTmpl struct {
	SvcName  string
	Handlers []Handler
}

func (*ServiceTmpl) Render

func (t *ServiceTmpl) Render() string

Jump to

Keyboard shortcuts

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