grpc

package
v0.0.0-...-939da3a Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_backends_proto protoreflect.FileDescriptor
View Source
var File_forms_proto protoreflect.FileDescriptor
View Source
var File_transport_grpc_proto protoreflect.FileDescriptor

Functions

func RegisterFormsServiceServer

func RegisterFormsServiceServer(s *grpc.Server, srv FormsServiceServer)

Types

type AddFormBackendRequest

type AddFormBackendRequest struct {
	Formid  string       `protobuf:"bytes,1,opt,name=formid,proto3" json:"formid,omitempty"`
	Backend *GRPCBackend `protobuf:"bytes,2,opt,name=backend,proto3" json:"backend,omitempty"`
	// contains filtered or unexported fields
}

func (*AddFormBackendRequest) Descriptor deprecated

func (*AddFormBackendRequest) Descriptor() ([]byte, []int)

Deprecated: Use AddFormBackendRequest.ProtoReflect.Descriptor instead.

func (*AddFormBackendRequest) GetBackend

func (x *AddFormBackendRequest) GetBackend() *GRPCBackend

func (*AddFormBackendRequest) GetFormid

func (x *AddFormBackendRequest) GetFormid() string

func (*AddFormBackendRequest) ProtoMessage

func (*AddFormBackendRequest) ProtoMessage()

func (*AddFormBackendRequest) ProtoReflect

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

func (*AddFormBackendRequest) Reset

func (x *AddFormBackendRequest) Reset()

func (*AddFormBackendRequest) String

func (x *AddFormBackendRequest) String() string

type AddFormBackendResponse

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

func (*AddFormBackendResponse) Descriptor deprecated

func (*AddFormBackendResponse) Descriptor() ([]byte, []int)

Deprecated: Use AddFormBackendResponse.ProtoReflect.Descriptor instead.

func (*AddFormBackendResponse) ProtoMessage

func (*AddFormBackendResponse) ProtoMessage()

func (*AddFormBackendResponse) ProtoReflect

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

func (*AddFormBackendResponse) Reset

func (x *AddFormBackendResponse) Reset()

func (*AddFormBackendResponse) String

func (x *AddFormBackendResponse) String() string

type AddFormRequest

type AddFormRequest struct {
	Form *GRPCForm `protobuf:"bytes,1,opt,name=form,proto3" json:"form,omitempty"`
	// contains filtered or unexported fields
}

func (*AddFormRequest) Descriptor deprecated

func (*AddFormRequest) Descriptor() ([]byte, []int)

Deprecated: Use AddFormRequest.ProtoReflect.Descriptor instead.

func (*AddFormRequest) GetForm

func (x *AddFormRequest) GetForm() *GRPCForm

func (*AddFormRequest) ProtoMessage

func (*AddFormRequest) ProtoMessage()

func (*AddFormRequest) ProtoReflect

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

func (*AddFormRequest) Reset

func (x *AddFormRequest) Reset()

func (*AddFormRequest) String

func (x *AddFormRequest) String() string

type AddFormResponse

type AddFormResponse struct {
	Form *GRPCForm `protobuf:"bytes,1,opt,name=form,proto3" json:"form,omitempty"`
	// contains filtered or unexported fields
}

func (*AddFormResponse) Descriptor deprecated

func (*AddFormResponse) Descriptor() ([]byte, []int)

Deprecated: Use AddFormResponse.ProtoReflect.Descriptor instead.

func (*AddFormResponse) GetForm

func (x *AddFormResponse) GetForm() *GRPCForm

func (*AddFormResponse) ProtoMessage

func (*AddFormResponse) ProtoMessage()

func (*AddFormResponse) ProtoReflect

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

func (*AddFormResponse) Reset

func (x *AddFormResponse) Reset()

func (*AddFormResponse) String

func (x *AddFormResponse) String() string

type DeleteFormRequest

type DeleteFormRequest struct {
	Formid string `protobuf:"bytes,1,opt,name=formid,proto3" json:"formid,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteFormRequest) Descriptor deprecated

func (*DeleteFormRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteFormRequest.ProtoReflect.Descriptor instead.

func (*DeleteFormRequest) GetFormid

func (x *DeleteFormRequest) GetFormid() string

func (*DeleteFormRequest) ProtoMessage

func (*DeleteFormRequest) ProtoMessage()

func (*DeleteFormRequest) ProtoReflect

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

func (*DeleteFormRequest) Reset

func (x *DeleteFormRequest) Reset()

func (*DeleteFormRequest) String

func (x *DeleteFormRequest) String() string

type DeleteFormResponse

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

func (*DeleteFormResponse) Descriptor deprecated

func (*DeleteFormResponse) Descriptor() ([]byte, []int)

Deprecated: Use DeleteFormResponse.ProtoReflect.Descriptor instead.

func (*DeleteFormResponse) ProtoMessage

func (*DeleteFormResponse) ProtoMessage()

func (*DeleteFormResponse) ProtoReflect

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

func (*DeleteFormResponse) Reset

func (x *DeleteFormResponse) Reset()

func (*DeleteFormResponse) String

func (x *DeleteFormResponse) String() string

type FormsServiceClient

type FormsServiceClient interface {
	AddForm(ctx context.Context, in *AddFormRequest, opts ...grpc.CallOption) (*AddFormResponse, error)
	DeleteForm(ctx context.Context, in *DeleteFormRequest, opts ...grpc.CallOption) (*DeleteFormResponse, error)
	GetForms(ctx context.Context, in *GetFormsRequest, opts ...grpc.CallOption) (*GetFormsResponse, error)
	GetForm(ctx context.Context, in *GetFormRequest, opts ...grpc.CallOption) (*GetFormResponse, error)
	SubmitResponse(ctx context.Context, in *SubmitResponseRequest, opts ...grpc.CallOption) (*SubmitResponseResponse, error)
	GetFormResponses(ctx context.Context, in *GetFormResponsesRequest, opts ...grpc.CallOption) (*GetFormResponsesResponse, error)
	AddFormBackend(ctx context.Context, in *AddFormBackendRequest, opts ...grpc.CallOption) (*AddFormBackendResponse, error)
	GetFormBackends(ctx context.Context, in *GetFormBackendsRequest, opts ...grpc.CallOption) (*GetFormBackendsResponse, error)
}

FormsServiceClient is the client API for FormsService 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.

type FormsServiceServer

FormsServiceServer is the server API for FormsService service. All implementations must embed UnimplementedFormsServiceServer for forward compatibility

type GRPCBackend

type GRPCBackend struct {
	Type          string            `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	Configuration map[string]string `` /* 167-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*GRPCBackend) Descriptor deprecated

func (*GRPCBackend) Descriptor() ([]byte, []int)

Deprecated: Use GRPCBackend.ProtoReflect.Descriptor instead.

func (*GRPCBackend) GetConfiguration

func (x *GRPCBackend) GetConfiguration() map[string]string

func (*GRPCBackend) GetType

func (x *GRPCBackend) GetType() string

func (*GRPCBackend) ProtoMessage

func (*GRPCBackend) ProtoMessage()

func (*GRPCBackend) ProtoReflect

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

func (*GRPCBackend) Reset

func (x *GRPCBackend) Reset()

func (*GRPCBackend) String

func (x *GRPCBackend) String() string

type GRPCForm

type GRPCForm struct {
	Id                 string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Type               string   `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	Schema             string   `protobuf:"bytes,3,opt,name=schema,proto3" json:"schema,omitempty"`
	AdditionalBackends []string `protobuf:"bytes,4,rep,name=additional_backends,json=additionalBackends,proto3" json:"additional_backends,omitempty"`
	// contains filtered or unexported fields
}

func (*GRPCForm) Descriptor deprecated

func (*GRPCForm) Descriptor() ([]byte, []int)

Deprecated: Use GRPCForm.ProtoReflect.Descriptor instead.

func (*GRPCForm) GetAdditionalBackends

func (x *GRPCForm) GetAdditionalBackends() []string

func (*GRPCForm) GetId

func (x *GRPCForm) GetId() string

func (*GRPCForm) GetSchema

func (x *GRPCForm) GetSchema() string

func (*GRPCForm) GetType

func (x *GRPCForm) GetType() string

func (*GRPCForm) ProtoMessage

func (*GRPCForm) ProtoMessage()

func (*GRPCForm) ProtoReflect

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

func (*GRPCForm) Reset

func (x *GRPCForm) Reset()

func (*GRPCForm) String

func (x *GRPCForm) String() string

type GetFormBackendsRequest

type GetFormBackendsRequest struct {
	Formid string `protobuf:"bytes,1,opt,name=formid,proto3" json:"formid,omitempty"`
	// contains filtered or unexported fields
}

func (*GetFormBackendsRequest) Descriptor deprecated

func (*GetFormBackendsRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetFormBackendsRequest.ProtoReflect.Descriptor instead.

func (*GetFormBackendsRequest) GetFormid

func (x *GetFormBackendsRequest) GetFormid() string

func (*GetFormBackendsRequest) ProtoMessage

func (*GetFormBackendsRequest) ProtoMessage()

func (*GetFormBackendsRequest) ProtoReflect

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

func (*GetFormBackendsRequest) Reset

func (x *GetFormBackendsRequest) Reset()

func (*GetFormBackendsRequest) String

func (x *GetFormBackendsRequest) String() string

type GetFormBackendsResponse

type GetFormBackendsResponse struct {
	Backends []*GRPCBackend `protobuf:"bytes,1,rep,name=backends,proto3" json:"backends,omitempty"`
	// contains filtered or unexported fields
}

func (*GetFormBackendsResponse) Descriptor deprecated

func (*GetFormBackendsResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetFormBackendsResponse.ProtoReflect.Descriptor instead.

func (*GetFormBackendsResponse) GetBackends

func (x *GetFormBackendsResponse) GetBackends() []*GRPCBackend

func (*GetFormBackendsResponse) ProtoMessage

func (*GetFormBackendsResponse) ProtoMessage()

func (*GetFormBackendsResponse) ProtoReflect

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

func (*GetFormBackendsResponse) Reset

func (x *GetFormBackendsResponse) Reset()

func (*GetFormBackendsResponse) String

func (x *GetFormBackendsResponse) String() string

type GetFormRequest

type GetFormRequest struct {
	Formid string `protobuf:"bytes,1,opt,name=formid,proto3" json:"formid,omitempty"`
	// contains filtered or unexported fields
}

func (*GetFormRequest) Descriptor deprecated

func (*GetFormRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetFormRequest.ProtoReflect.Descriptor instead.

func (*GetFormRequest) GetFormid

func (x *GetFormRequest) GetFormid() string

func (*GetFormRequest) ProtoMessage

func (*GetFormRequest) ProtoMessage()

func (*GetFormRequest) ProtoReflect

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

func (*GetFormRequest) Reset

func (x *GetFormRequest) Reset()

func (*GetFormRequest) String

func (x *GetFormRequest) String() string

type GetFormResponse

type GetFormResponse struct {
	Form *GRPCForm `protobuf:"bytes,1,opt,name=form,proto3" json:"form,omitempty"`
	// contains filtered or unexported fields
}

func (*GetFormResponse) Descriptor deprecated

func (*GetFormResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetFormResponse.ProtoReflect.Descriptor instead.

func (*GetFormResponse) GetForm

func (x *GetFormResponse) GetForm() *GRPCForm

func (*GetFormResponse) ProtoMessage

func (*GetFormResponse) ProtoMessage()

func (*GetFormResponse) ProtoReflect

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

func (*GetFormResponse) Reset

func (x *GetFormResponse) Reset()

func (*GetFormResponse) String

func (x *GetFormResponse) String() string

type GetFormResponsesRequest

type GetFormResponsesRequest struct {
	Formid string `protobuf:"bytes,1,opt,name=formid,proto3" json:"formid,omitempty"`
	// contains filtered or unexported fields
}

func (*GetFormResponsesRequest) Descriptor deprecated

func (*GetFormResponsesRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetFormResponsesRequest.ProtoReflect.Descriptor instead.

func (*GetFormResponsesRequest) GetFormid

func (x *GetFormResponsesRequest) GetFormid() string

func (*GetFormResponsesRequest) ProtoMessage

func (*GetFormResponsesRequest) ProtoMessage()

func (*GetFormResponsesRequest) ProtoReflect

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

func (*GetFormResponsesRequest) Reset

func (x *GetFormResponsesRequest) Reset()

func (*GetFormResponsesRequest) String

func (x *GetFormResponsesRequest) String() string

type GetFormResponsesResponse

type GetFormResponsesResponse struct {
	Responses []string `protobuf:"bytes,1,rep,name=responses,proto3" json:"responses,omitempty"`
	// contains filtered or unexported fields
}

func (*GetFormResponsesResponse) Descriptor deprecated

func (*GetFormResponsesResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetFormResponsesResponse.ProtoReflect.Descriptor instead.

func (*GetFormResponsesResponse) GetResponses

func (x *GetFormResponsesResponse) GetResponses() []string

func (*GetFormResponsesResponse) ProtoMessage

func (*GetFormResponsesResponse) ProtoMessage()

func (*GetFormResponsesResponse) ProtoReflect

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

func (*GetFormResponsesResponse) Reset

func (x *GetFormResponsesResponse) Reset()

func (*GetFormResponsesResponse) String

func (x *GetFormResponsesResponse) String() string

type GetFormsRequest

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

func (*GetFormsRequest) Descriptor deprecated

func (*GetFormsRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetFormsRequest.ProtoReflect.Descriptor instead.

func (*GetFormsRequest) ProtoMessage

func (*GetFormsRequest) ProtoMessage()

func (*GetFormsRequest) ProtoReflect

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

func (*GetFormsRequest) Reset

func (x *GetFormsRequest) Reset()

func (*GetFormsRequest) String

func (x *GetFormsRequest) String() string

type GetFormsResponse

type GetFormsResponse struct {
	Forms []*GRPCForm `protobuf:"bytes,1,rep,name=forms,proto3" json:"forms,omitempty"`
	// contains filtered or unexported fields
}

func (*GetFormsResponse) Descriptor deprecated

func (*GetFormsResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetFormsResponse.ProtoReflect.Descriptor instead.

func (*GetFormsResponse) GetForms

func (x *GetFormsResponse) GetForms() []*GRPCForm

func (*GetFormsResponse) ProtoMessage

func (*GetFormsResponse) ProtoMessage()

func (*GetFormsResponse) ProtoReflect

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

func (*GetFormsResponse) Reset

func (x *GetFormsResponse) Reset()

func (*GetFormsResponse) String

func (x *GetFormsResponse) String() string

type SubmitResponseRequest

type SubmitResponseRequest struct {
	Formid   string `protobuf:"bytes,1,opt,name=formid,proto3" json:"formid,omitempty"`
	Response string `protobuf:"bytes,2,opt,name=response,proto3" json:"response,omitempty"`
	// contains filtered or unexported fields
}

func (*SubmitResponseRequest) Descriptor deprecated

func (*SubmitResponseRequest) Descriptor() ([]byte, []int)

Deprecated: Use SubmitResponseRequest.ProtoReflect.Descriptor instead.

func (*SubmitResponseRequest) GetFormid

func (x *SubmitResponseRequest) GetFormid() string

func (*SubmitResponseRequest) GetResponse

func (x *SubmitResponseRequest) GetResponse() string

func (*SubmitResponseRequest) ProtoMessage

func (*SubmitResponseRequest) ProtoMessage()

func (*SubmitResponseRequest) ProtoReflect

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

func (*SubmitResponseRequest) Reset

func (x *SubmitResponseRequest) Reset()

func (*SubmitResponseRequest) String

func (x *SubmitResponseRequest) String() string

type SubmitResponseResponse

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

func (*SubmitResponseResponse) Descriptor deprecated

func (*SubmitResponseResponse) Descriptor() ([]byte, []int)

Deprecated: Use SubmitResponseResponse.ProtoReflect.Descriptor instead.

func (*SubmitResponseResponse) ProtoMessage

func (*SubmitResponseResponse) ProtoMessage()

func (*SubmitResponseResponse) ProtoReflect

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

func (*SubmitResponseResponse) Reset

func (x *SubmitResponseResponse) Reset()

func (*SubmitResponseResponse) String

func (x *SubmitResponseResponse) String() string

type UnimplementedFormsServiceServer

type UnimplementedFormsServiceServer struct {
}

UnimplementedFormsServiceServer must be embedded to have forward compatible implementations.

func (*UnimplementedFormsServiceServer) AddForm

func (*UnimplementedFormsServiceServer) AddFormBackend

func (*UnimplementedFormsServiceServer) DeleteForm

func (*UnimplementedFormsServiceServer) GetForm

func (*UnimplementedFormsServiceServer) GetFormBackends

func (*UnimplementedFormsServiceServer) GetFormResponses

func (*UnimplementedFormsServiceServer) GetForms

func (*UnimplementedFormsServiceServer) SubmitResponse

Jump to

Keyboard shortcuts

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