Documentation ¶
Index ¶
- Variables
- func RegisterResponseServer(s grpc.ServiceRegistrar, srv ResponseServer)
- func RegisterTransportServer(s grpc.ServiceRegistrar, srv TransportServer)
- type Config
- func (*Config) Descriptor() ([]byte, []int)deprecated
- func (x *Config) GetAuth() string
- func (x *Config) GetConfig() string
- func (x *Config) GetDirectory() string
- func (x *Config) GetLoadbalancer() string
- func (x *Config) GetMenu() string
- func (x *Config) GetOidc() string
- func (x *Config) GetSaml() string
- func (*Config) ProtoMessage()
- func (x *Config) ProtoReflect() protoreflect.Message
- func (x *Config) Reset()
- func (x *Config) String() string
- type Input
- func (*Input) Descriptor() ([]byte, []int)deprecated
- func (x *Input) GetBody() []byte
- func (x *Input) GetHeader() map[string]*Values
- func (x *Input) GetMethod() string
- func (x *Input) GetURL() string
- func (*Input) ProtoMessage()
- func (x *Input) ProtoReflect() protoreflect.Message
- func (x *Input) Reset()
- func (x *Input) String() string
- type Interface
- func (*Interface) Descriptor() ([]byte, []int)deprecated
- func (x *Interface) GetConfig() *Config
- func (x *Interface) GetHeader() map[string]*Values
- func (x *Interface) GetURL() string
- func (*Interface) ProtoMessage()
- func (x *Interface) ProtoReflect() protoreflect.Message
- func (x *Interface) Reset()
- func (x *Interface) String() string
- type Output
- type Reply
- func (*Reply) Descriptor() ([]byte, []int)deprecated
- func (x *Reply) GetErrorMessage() string
- func (x *Reply) GetHeader() map[string]*Values
- func (x *Reply) GetStatus() int32
- func (x *Reply) GetURL() string
- func (*Reply) ProtoMessage()
- func (x *Reply) ProtoReflect() protoreflect.Message
- func (x *Reply) Reset()
- func (x *Reply) String() string
- type ResponseClient
- type ResponseServer
- type TransportClient
- type TransportServer
- type UnimplementedResponseServer
- type UnimplementedTransportServer
- type UnsafeResponseServer
- type UnsafeTransportServer
- type Values
Constants ¶
This section is empty.
Variables ¶
var File_response_proto protoreflect.FileDescriptor
var File_transport_proto protoreflect.FileDescriptor
var File_types_proto protoreflect.FileDescriptor
var Response_ServiceDesc = grpc.ServiceDesc{ ServiceName: "ncs.protobuf.Response", HandlerType: (*ResponseServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Modify", Handler: _Response_Modify_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "response.proto", }
Response_ServiceDesc is the grpc.ServiceDesc for Response service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var Transport_ServiceDesc = grpc.ServiceDesc{ ServiceName: "ncs.protobuf.Transport", HandlerType: (*TransportServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Transport", Handler: _Transport_Transport_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "transport.proto", }
Transport_ServiceDesc is the grpc.ServiceDesc for Transport service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterResponseServer ¶
func RegisterResponseServer(s grpc.ServiceRegistrar, srv ResponseServer)
func RegisterTransportServer ¶
func RegisterTransportServer(s grpc.ServiceRegistrar, srv TransportServer)
Types ¶
type Config ¶
type Config struct { Directory string `protobuf:"bytes,1,opt,name=directory,proto3" json:"directory,omitempty"` Loadbalancer string `protobuf:"bytes,2,opt,name=loadbalancer,proto3" json:"loadbalancer,omitempty"` Config string `protobuf:"bytes,3,opt,name=config,proto3" json:"config,omitempty"` Oidc string `protobuf:"bytes,4,opt,name=oidc,proto3" json:"oidc,omitempty"` Saml string `protobuf:"bytes,5,opt,name=saml,proto3" json:"saml,omitempty"` Auth string `protobuf:"bytes,6,opt,name=auth,proto3" json:"auth,omitempty"` Menu string `protobuf:"bytes,7,opt,name=menu,proto3" json:"menu,omitempty"` // contains filtered or unexported fields }
func (*Config) Descriptor
deprecated
func (*Config) GetDirectory ¶
func (*Config) GetLoadbalancer ¶
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
func (*Config) ProtoReflect ¶
func (x *Config) ProtoReflect() protoreflect.Message
type Input ¶
type Input struct { URL string `protobuf:"bytes,1,opt,name=URL,proto3" json:"URL,omitempty"` Method string `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"` Header map[string]*Values `` /* 153-byte string literal not displayed */ Body []byte `protobuf:"bytes,4,opt,name=body,proto3" json:"body,omitempty"` // contains filtered or unexported fields }
func (*Input) Descriptor
deprecated
func (*Input) ProtoMessage ¶
func (*Input) ProtoMessage()
func (*Input) ProtoReflect ¶
func (x *Input) ProtoReflect() protoreflect.Message
type Interface ¶
type Interface struct { URL string `protobuf:"bytes,1,opt,name=URL,proto3" json:"URL,omitempty"` Header map[string]*Values `` /* 153-byte string literal not displayed */ Config *Config `protobuf:"bytes,3,opt,name=config,proto3" json:"config,omitempty"` // contains filtered or unexported fields }
func (*Interface) Descriptor
deprecated
func (*Interface) ProtoMessage ¶
func (*Interface) ProtoMessage()
func (*Interface) ProtoReflect ¶
func (x *Interface) ProtoReflect() protoreflect.Message
type Output ¶
type Output struct { Header map[string]*Values `` /* 153-byte string literal not displayed */ Body []byte `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"` // contains filtered or unexported fields }
func (*Output) Descriptor
deprecated
func (*Output) ProtoMessage ¶
func (*Output) ProtoMessage()
func (*Output) ProtoReflect ¶
func (x *Output) ProtoReflect() protoreflect.Message
type Reply ¶
type Reply struct { URL string `protobuf:"bytes,1,opt,name=URL,proto3" json:"URL,omitempty"` Header map[string]*Values `` /* 153-byte string literal not displayed */ Status int32 `protobuf:"varint,3,opt,name=status,proto3" json:"status,omitempty"` ErrorMessage string `protobuf:"bytes,4,opt,name=errorMessage,proto3" json:"errorMessage,omitempty"` // contains filtered or unexported fields }
func (*Reply) Descriptor
deprecated
func (*Reply) GetErrorMessage ¶
func (*Reply) ProtoMessage ¶
func (*Reply) ProtoMessage()
func (*Reply) ProtoReflect ¶
func (x *Reply) ProtoReflect() protoreflect.Message
type ResponseClient ¶
type ResponseClient interface {
Modify(ctx context.Context, in *Input, opts ...grpc.CallOption) (*Output, error)
}
ResponseClient is the client API for Response service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewResponseClient ¶
func NewResponseClient(cc grpc.ClientConnInterface) ResponseClient
type ResponseServer ¶
type ResponseServer interface { Modify(context.Context, *Input) (*Output, error) // contains filtered or unexported methods }
ResponseServer is the server API for Response service. All implementations must embed UnimplementedResponseServer for forward compatibility
type TransportClient ¶
type TransportClient interface {
Transport(ctx context.Context, in *Interface, opts ...grpc.CallOption) (*Reply, error)
}
TransportClient is the client API for Transport service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewTransportClient ¶
func NewTransportClient(cc grpc.ClientConnInterface) TransportClient
type TransportServer ¶
type TransportServer interface { Transport(context.Context, *Interface) (*Reply, error) // contains filtered or unexported methods }
TransportServer is the server API for Transport service. All implementations must embed UnimplementedTransportServer for forward compatibility
type UnimplementedResponseServer ¶
type UnimplementedResponseServer struct { }
UnimplementedResponseServer must be embedded to have forward compatible implementations.
type UnimplementedTransportServer ¶
type UnimplementedTransportServer struct { }
UnimplementedTransportServer must be embedded to have forward compatible implementations.
type UnsafeResponseServer ¶
type UnsafeResponseServer interface {
// contains filtered or unexported methods
}
UnsafeResponseServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ResponseServer will result in compilation errors.
type UnsafeTransportServer ¶
type UnsafeTransportServer interface {
// contains filtered or unexported methods
}
UnsafeTransportServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TransportServer will result in compilation errors.
type Values ¶
type Values struct { Value []string `protobuf:"bytes,1,rep,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*Values) Descriptor
deprecated
func (*Values) ProtoMessage ¶
func (*Values) ProtoMessage()
func (*Values) ProtoReflect ¶
func (x *Values) ProtoReflect() protoreflect.Message