plugins

package
v0.0.0-...-1ed9f32 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_response_proto protoreflect.FileDescriptor
View Source
var File_transport_proto protoreflect.FileDescriptor
View Source
var File_types_proto protoreflect.FileDescriptor
View Source
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)

View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Config.ProtoReflect.Descriptor instead.

func (*Config) GetAuth

func (x *Config) GetAuth() string

func (*Config) GetConfig

func (x *Config) GetConfig() string

func (*Config) GetDirectory

func (x *Config) GetDirectory() string

func (*Config) GetLoadbalancer

func (x *Config) GetLoadbalancer() string

func (*Config) GetMenu

func (x *Config) GetMenu() string

func (*Config) GetOidc

func (x *Config) GetOidc() string

func (*Config) GetSaml

func (x *Config) GetSaml() string

func (*Config) ProtoMessage

func (*Config) ProtoMessage()

func (*Config) ProtoReflect

func (x *Config) ProtoReflect() protoreflect.Message

func (*Config) Reset

func (x *Config) Reset()

func (*Config) String

func (x *Config) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Input.ProtoReflect.Descriptor instead.

func (*Input) GetBody

func (x *Input) GetBody() []byte

func (*Input) GetHeader

func (x *Input) GetHeader() map[string]*Values

func (*Input) GetMethod

func (x *Input) GetMethod() string

func (*Input) GetURL

func (x *Input) GetURL() string

func (*Input) ProtoMessage

func (*Input) ProtoMessage()

func (*Input) ProtoReflect

func (x *Input) ProtoReflect() protoreflect.Message

func (*Input) Reset

func (x *Input) Reset()

func (*Input) String

func (x *Input) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Interface.ProtoReflect.Descriptor instead.

func (*Interface) GetConfig

func (x *Interface) GetConfig() *Config

func (*Interface) GetHeader

func (x *Interface) GetHeader() map[string]*Values

func (*Interface) GetURL

func (x *Interface) GetURL() string

func (*Interface) ProtoMessage

func (*Interface) ProtoMessage()

func (*Interface) ProtoReflect

func (x *Interface) ProtoReflect() protoreflect.Message

func (*Interface) Reset

func (x *Interface) Reset()

func (*Interface) String

func (x *Interface) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Output.ProtoReflect.Descriptor instead.

func (*Output) GetBody

func (x *Output) GetBody() []byte

func (*Output) GetHeader

func (x *Output) GetHeader() map[string]*Values

func (*Output) ProtoMessage

func (*Output) ProtoMessage()

func (*Output) ProtoReflect

func (x *Output) ProtoReflect() protoreflect.Message

func (*Output) Reset

func (x *Output) Reset()

func (*Output) String

func (x *Output) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Reply.ProtoReflect.Descriptor instead.

func (*Reply) GetErrorMessage

func (x *Reply) GetErrorMessage() string

func (*Reply) GetHeader

func (x *Reply) GetHeader() map[string]*Values

func (*Reply) GetStatus

func (x *Reply) GetStatus() int32

func (*Reply) GetURL

func (x *Reply) GetURL() string

func (*Reply) ProtoMessage

func (*Reply) ProtoMessage()

func (*Reply) ProtoReflect

func (x *Reply) ProtoReflect() protoreflect.Message

func (*Reply) Reset

func (x *Reply) Reset()

func (*Reply) String

func (x *Reply) String() string

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.

func (UnimplementedResponseServer) Modify

type UnimplementedTransportServer

type UnimplementedTransportServer struct {
}

UnimplementedTransportServer must be embedded to have forward compatible implementations.

func (UnimplementedTransportServer) Transport

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) Descriptor() ([]byte, []int)

Deprecated: Use Values.ProtoReflect.Descriptor instead.

func (*Values) GetValue

func (x *Values) GetValue() []string

func (*Values) ProtoMessage

func (*Values) ProtoMessage()

func (*Values) ProtoReflect

func (x *Values) ProtoReflect() protoreflect.Message

func (*Values) Reset

func (x *Values) Reset()

func (*Values) String

func (x *Values) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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