Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AllowedOrigins ¶
type AllowedOrigins []string
AllowedOrigins is used to register de Allowed Origins.
type GrpcProxy ¶
type GrpcProxy struct {
GrpcServices map[string][]string `json:"grpc_services"`
IsTransparentServer bool `json:"is_transparent_server"`
Authority string `json:"authority"`
}
GrpcProxy is the object responsible to create a communication gRPC Server that calls other gRPC Server.
func (*GrpcProxy) CreateClientConn ¶
func (grpcProxy *GrpcProxy) CreateClientConn(clientCertificate *certs.CertificateDefs, host string) *grpc.ClientConn
CreateClientConn return a Client for a gRPC server.
type GrpcWebProxy ¶
type GrpcWebProxy struct {
GrpcProxy
AllowAllOrigins bool `json:"allow_all_origins"`
AllowedOrigins AllowedOrigins `json:"allowed_origins"`
UseWebSockets bool `json:"use_web_sockets"`
AllowedHeaders []string `json:"allowed_header"`
// contains filtered or unexported fields
}
GrpcWebProxy is the object responsible to create a communication gRPC Web Server that calls other gRPC Server.
func (*GrpcWebProxy) WrappedGrpcServer ¶
func (grpcWebProxy *GrpcWebProxy) WrappedGrpcServer(clientConn *grpc.ClientConn) *grpcweb.WrappedGrpcServer
WrappedGrpcServer returns a gRPC Web wrapped server.
type JSON ¶
type JSON struct {
jsonpb.Marshaler
jsonpb.Unmarshaler
}
JSON structure is used to marshall or unmarshal a protobuffer messsage.
type TransportJson ¶
type TransportJson struct {
TlsDefs *certs.CertificateDefs
}
TransportJson is used to transport the communication between a grpc server and a web client (json).
func NewTransportJson ¶
func NewTransportJson(tlsDefs *certs.CertificateDefs) *TransportJson
NewTransportJson returns a TransportJson
Click to show internal directories.
Click to hide internal directories.