Documentation ¶
Index ¶
- Constants
- type AmqpEncodeDecode
- type AmqpPublisher
- type AmqpSubscriber
- type AmqpSubscriberHandler
- type BaseGenerator
- type CmdMain
- type EndpointSet
- type Endpoints
- type Generator
- type GrpcEncodeDecode
- type GrpcRequestResponse
- type GrpcServer
- type Implementation
- type LoggingMiddleware
- type Middleware
- type Option
- type Options
- type Readme
- type RequestResponse
Constants ¶
View Source
const ( RequestEncoderPartial = "grpc_request_encoder" RequestDecoderPartial = "grpc_request_decoder" ResponseEncoderPartial = "grpc_response_encoder" ResponseDecoderPartial = "grpc_response_decoder" )
View Source
const ( EncodeRequestPartial = "grpc_encode_request" EncodeResponsePartial = "grpc_encode_response" DecodeRequestPartial = "grpc_decode_request" DecodeResponsePartial = "grpc_decode_response" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AmqpEncodeDecode ¶ added in v0.5.0
type AmqpEncodeDecode struct {
BaseGenerator
}
func NewAMQPEncodeDecode ¶ added in v0.5.0
func (*AmqpEncodeDecode) GenerateMissing ¶ added in v0.5.0
func (s *AmqpEncodeDecode) GenerateMissing() error
func (*AmqpEncodeDecode) Update ¶ added in v0.5.0
func (s *AmqpEncodeDecode) Update() error
Update will call GenerateFull
type AmqpPublisher ¶ added in v0.5.0
type AmqpPublisher struct {
BaseGenerator
}
func NewAMQPPublisher ¶ added in v0.5.0
func (*AmqpPublisher) Update ¶ added in v0.5.0
func (s *AmqpPublisher) Update() error
Update will call GenerateFull
type AmqpSubscriber ¶ added in v0.5.0
type AmqpSubscriber struct {
BaseGenerator
}
func NewAMQPSubscriber ¶ added in v0.5.0
func (*AmqpSubscriber) Update ¶ added in v0.5.0
func (s *AmqpSubscriber) Update() error
Update will call GenerateFull
type AmqpSubscriberHandler ¶ added in v0.5.0
type AmqpSubscriberHandler struct { BaseGenerator // contains filtered or unexported fields }
func NewAMQPSubscriberHandler ¶ added in v0.5.0
func NewAMQPSubscriberHandler(sub template.Subscriber, box packr.Box, serviceInterface *types.Interface, ctx template.Context, options ...Option) *AmqpSubscriberHandler
func (*AmqpSubscriberHandler) Update ¶ added in v0.5.0
func (s *AmqpSubscriberHandler) Update() error
type BaseGenerator ¶
type BaseGenerator struct {
// contains filtered or unexported fields
}
func (*BaseGenerator) GenerateFile ¶
func (g *BaseGenerator) GenerateFile(box packr.Box) error
func (*BaseGenerator) GenerateFull ¶
func (g *BaseGenerator) GenerateFull() error
func (*BaseGenerator) TargetExists ¶
func (g *BaseGenerator) TargetExists() bool
func (*BaseGenerator) TargetPath ¶
func (g *BaseGenerator) TargetPath() string
type EndpointSet ¶
type EndpointSet struct {
BaseGenerator
}
func NewEndpointSet ¶
func (*EndpointSet) Update ¶
func (s *EndpointSet) Update() error
Update will call GenerateFull. The endpointSet cannot be updated.
type Endpoints ¶
type Endpoints struct {
BaseGenerator
}
func NewEndpoints ¶
func (*Endpoints) GenerateMissing ¶
type GrpcEncodeDecode ¶
type GrpcEncodeDecode struct {
BaseGenerator
}
func NewGrpcEncodeDecode ¶
func (*GrpcEncodeDecode) GenerateMissing ¶
func (r *GrpcEncodeDecode) GenerateMissing() error
func (*GrpcEncodeDecode) Update ¶
func (r *GrpcEncodeDecode) Update() error
Update is disabled for this file, it will only proxy the call to GenerateFull()
type GrpcRequestResponse ¶
type GrpcRequestResponse struct {
BaseGenerator
}
func NewGrpcRequestResponse ¶
func (*GrpcRequestResponse) GenerateMissing ¶
func (r *GrpcRequestResponse) GenerateMissing() error
GenerateMissing will generate all missing encode/decode functions and append them to the existing file
func (*GrpcRequestResponse) Update ¶
func (r *GrpcRequestResponse) Update() error
Update is disabled for this file, it will only proxy the call to GenerateFull()
type GrpcServer ¶
type GrpcServer struct {
BaseGenerator
}
func NewGrpcServer ¶
func (*GrpcServer) Update ¶
func (s *GrpcServer) Update() error
Update will call GenerateFull. The grpc/server cannot be updated.
type Implementation ¶
type Implementation struct {
BaseGenerator
}
func NewImplementation ¶
func (*Implementation) GenerateMissing ¶
func (i *Implementation) GenerateMissing() error
func (*Implementation) Update ¶
func (i *Implementation) Update() error
type LoggingMiddleware ¶
type LoggingMiddleware struct {
BaseGenerator
}
func NewLoggingMiddleware ¶
func (*LoggingMiddleware) GenerateMissing ¶
func (i *LoggingMiddleware) GenerateMissing() error
func (*LoggingMiddleware) Update ¶
func (i *LoggingMiddleware) Update() error
type Middleware ¶
type Middleware struct {
BaseGenerator
}
func NewMiddleware ¶
func (*Middleware) Update ¶
func (m *Middleware) Update() error
type RequestResponse ¶
type RequestResponse struct {
BaseGenerator
}
func NewRequestResponse ¶
func (*RequestResponse) Update ¶
func (r *RequestResponse) Update() error
Update is disabled for this file, it will only proxy the call to GenerateFull()
Source Files ¶
- amqp_encode_decode.go
- amqp_publisher_init.go
- amqp_subscriber_handler.go
- amqp_subscriber_init.go
- cmd_main.go
- endpoint_set.go
- endpoints.go
- generate.go
- grpc_encode_decode.go
- grpc_request_response.go
- grpc_server.go
- implementation.go
- logging_middleware.go
- middleware.go
- options.go
- readme.go
- request_response.go
Click to show internal directories.
Click to hide internal directories.