client

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Assignment_FindByFormID_FullMethodName  = "/api.Assignment/FindByFormID"
	Assignment_FindByGroupID_FullMethodName = "/api.Assignment/FindByGroupID"
)

Variables

View Source
var Assignment_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.Assignment",
	HandlerType: (*AssignmentServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "FindByFormID",
			Handler:    _Assignment_FindByFormID_Handler,
		},
		{
			MethodName: "FindByGroupID",
			Handler:    _Assignment_FindByGroupID_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "assignment.proto",
}

Assignment_ServiceDesc is the grpc.ServiceDesc for Assignment 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 File_assignment_proto protoreflect.FileDescriptor

Functions

func RegisterAssignmentServer

func RegisterAssignmentServer(s grpc.ServiceRegistrar, srv AssignmentServer)

Types

type AssignmentClient

type AssignmentClient interface {
	FindByFormID(ctx context.Context, in *AssignmentFindByFormIDRequest, opts ...grpc.CallOption) (*AssignmentFindByFormIDResponse, error)
	FindByGroupID(ctx context.Context, in *AssignmentFindByGroupIDRequest, opts ...grpc.CallOption) (*AssignmentFindByGroupIDResponse, error)
}

AssignmentClient is the client API for Assignment 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 NewAssignmentClient

func NewAssignmentClient(cc grpc.ClientConnInterface) AssignmentClient

type AssignmentFindByFormIDRequest

type AssignmentFindByFormIDRequest struct {
	FormId string `protobuf:"bytes,1,opt,name=form_id,json=formId,proto3" json:"form_id,omitempty"`
	// contains filtered or unexported fields
}

func (*AssignmentFindByFormIDRequest) Descriptor deprecated

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

Deprecated: Use AssignmentFindByFormIDRequest.ProtoReflect.Descriptor instead.

func (*AssignmentFindByFormIDRequest) GetFormId

func (x *AssignmentFindByFormIDRequest) GetFormId() string

func (*AssignmentFindByFormIDRequest) ProtoMessage

func (*AssignmentFindByFormIDRequest) ProtoMessage()

func (*AssignmentFindByFormIDRequest) ProtoReflect

func (*AssignmentFindByFormIDRequest) Reset

func (x *AssignmentFindByFormIDRequest) Reset()

func (*AssignmentFindByFormIDRequest) String

func (*AssignmentFindByFormIDRequest) Validate

func (m *AssignmentFindByFormIDRequest) Validate() error

Validate checks the field values on AssignmentFindByFormIDRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*AssignmentFindByFormIDRequest) ValidateAll

func (m *AssignmentFindByFormIDRequest) ValidateAll() error

ValidateAll checks the field values on AssignmentFindByFormIDRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AssignmentFindByFormIDRequestMultiError, or nil if none found.

type AssignmentFindByFormIDRequestMultiError

type AssignmentFindByFormIDRequestMultiError []error

AssignmentFindByFormIDRequestMultiError is an error wrapping multiple validation errors returned by AssignmentFindByFormIDRequest.ValidateAll() if the designated constraints aren't met.

func (AssignmentFindByFormIDRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (AssignmentFindByFormIDRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type AssignmentFindByFormIDRequestValidationError

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

AssignmentFindByFormIDRequestValidationError is the validation error returned by AssignmentFindByFormIDRequest.Validate if the designated constraints aren't met.

func (AssignmentFindByFormIDRequestValidationError) Cause

Cause function returns cause value.

func (AssignmentFindByFormIDRequestValidationError) Error

Error satisfies the builtin error interface

func (AssignmentFindByFormIDRequestValidationError) ErrorName

ErrorName returns error name.

func (AssignmentFindByFormIDRequestValidationError) Field

Field function returns field value.

func (AssignmentFindByFormIDRequestValidationError) Key

Key function returns key value.

func (AssignmentFindByFormIDRequestValidationError) Reason

Reason function returns reason value.

type AssignmentFindByFormIDResponse

type AssignmentFindByFormIDResponse struct {
	GroupIds []string `protobuf:"bytes,1,rep,name=group_ids,json=groupIds,proto3" json:"group_ids,omitempty"`
	// contains filtered or unexported fields
}

func (*AssignmentFindByFormIDResponse) Descriptor deprecated

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

Deprecated: Use AssignmentFindByFormIDResponse.ProtoReflect.Descriptor instead.

func (*AssignmentFindByFormIDResponse) GetGroupIds

func (x *AssignmentFindByFormIDResponse) GetGroupIds() []string

func (*AssignmentFindByFormIDResponse) ProtoMessage

func (*AssignmentFindByFormIDResponse) ProtoMessage()

func (*AssignmentFindByFormIDResponse) ProtoReflect

func (*AssignmentFindByFormIDResponse) Reset

func (x *AssignmentFindByFormIDResponse) Reset()

func (*AssignmentFindByFormIDResponse) String

func (*AssignmentFindByFormIDResponse) Validate

func (m *AssignmentFindByFormIDResponse) Validate() error

Validate checks the field values on AssignmentFindByFormIDResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*AssignmentFindByFormIDResponse) ValidateAll

func (m *AssignmentFindByFormIDResponse) ValidateAll() error

ValidateAll checks the field values on AssignmentFindByFormIDResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AssignmentFindByFormIDResponseMultiError, or nil if none found.

type AssignmentFindByFormIDResponseMultiError

type AssignmentFindByFormIDResponseMultiError []error

AssignmentFindByFormIDResponseMultiError is an error wrapping multiple validation errors returned by AssignmentFindByFormIDResponse.ValidateAll() if the designated constraints aren't met.

func (AssignmentFindByFormIDResponseMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (AssignmentFindByFormIDResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type AssignmentFindByFormIDResponseValidationError

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

AssignmentFindByFormIDResponseValidationError is the validation error returned by AssignmentFindByFormIDResponse.Validate if the designated constraints aren't met.

func (AssignmentFindByFormIDResponseValidationError) Cause

Cause function returns cause value.

func (AssignmentFindByFormIDResponseValidationError) Error

Error satisfies the builtin error interface

func (AssignmentFindByFormIDResponseValidationError) ErrorName

ErrorName returns error name.

func (AssignmentFindByFormIDResponseValidationError) Field

Field function returns field value.

func (AssignmentFindByFormIDResponseValidationError) Key

Key function returns key value.

func (AssignmentFindByFormIDResponseValidationError) Reason

Reason function returns reason value.

type AssignmentFindByGroupIDRequest

type AssignmentFindByGroupIDRequest struct {
	GroupId string `protobuf:"bytes,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
	// contains filtered or unexported fields
}

func (*AssignmentFindByGroupIDRequest) Descriptor deprecated

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

Deprecated: Use AssignmentFindByGroupIDRequest.ProtoReflect.Descriptor instead.

func (*AssignmentFindByGroupIDRequest) GetGroupId

func (x *AssignmentFindByGroupIDRequest) GetGroupId() string

func (*AssignmentFindByGroupIDRequest) ProtoMessage

func (*AssignmentFindByGroupIDRequest) ProtoMessage()

func (*AssignmentFindByGroupIDRequest) ProtoReflect

func (*AssignmentFindByGroupIDRequest) Reset

func (x *AssignmentFindByGroupIDRequest) Reset()

func (*AssignmentFindByGroupIDRequest) String

func (*AssignmentFindByGroupIDRequest) Validate

func (m *AssignmentFindByGroupIDRequest) Validate() error

Validate checks the field values on AssignmentFindByGroupIDRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*AssignmentFindByGroupIDRequest) ValidateAll

func (m *AssignmentFindByGroupIDRequest) ValidateAll() error

ValidateAll checks the field values on AssignmentFindByGroupIDRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AssignmentFindByGroupIDRequestMultiError, or nil if none found.

type AssignmentFindByGroupIDRequestMultiError

type AssignmentFindByGroupIDRequestMultiError []error

AssignmentFindByGroupIDRequestMultiError is an error wrapping multiple validation errors returned by AssignmentFindByGroupIDRequest.ValidateAll() if the designated constraints aren't met.

func (AssignmentFindByGroupIDRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (AssignmentFindByGroupIDRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type AssignmentFindByGroupIDRequestValidationError

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

AssignmentFindByGroupIDRequestValidationError is the validation error returned by AssignmentFindByGroupIDRequest.Validate if the designated constraints aren't met.

func (AssignmentFindByGroupIDRequestValidationError) Cause

Cause function returns cause value.

func (AssignmentFindByGroupIDRequestValidationError) Error

Error satisfies the builtin error interface

func (AssignmentFindByGroupIDRequestValidationError) ErrorName

ErrorName returns error name.

func (AssignmentFindByGroupIDRequestValidationError) Field

Field function returns field value.

func (AssignmentFindByGroupIDRequestValidationError) Key

Key function returns key value.

func (AssignmentFindByGroupIDRequestValidationError) Reason

Reason function returns reason value.

type AssignmentFindByGroupIDResponse

type AssignmentFindByGroupIDResponse struct {
	FormIds []string `protobuf:"bytes,1,rep,name=form_ids,json=formIds,proto3" json:"form_ids,omitempty"`
	// contains filtered or unexported fields
}

func (*AssignmentFindByGroupIDResponse) Descriptor deprecated

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

Deprecated: Use AssignmentFindByGroupIDResponse.ProtoReflect.Descriptor instead.

func (*AssignmentFindByGroupIDResponse) GetFormIds

func (x *AssignmentFindByGroupIDResponse) GetFormIds() []string

func (*AssignmentFindByGroupIDResponse) ProtoMessage

func (*AssignmentFindByGroupIDResponse) ProtoMessage()

func (*AssignmentFindByGroupIDResponse) ProtoReflect

func (*AssignmentFindByGroupIDResponse) Reset

func (*AssignmentFindByGroupIDResponse) String

func (*AssignmentFindByGroupIDResponse) Validate

func (m *AssignmentFindByGroupIDResponse) Validate() error

Validate checks the field values on AssignmentFindByGroupIDResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*AssignmentFindByGroupIDResponse) ValidateAll

func (m *AssignmentFindByGroupIDResponse) ValidateAll() error

ValidateAll checks the field values on AssignmentFindByGroupIDResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AssignmentFindByGroupIDResponseMultiError, or nil if none found.

type AssignmentFindByGroupIDResponseMultiError

type AssignmentFindByGroupIDResponseMultiError []error

AssignmentFindByGroupIDResponseMultiError is an error wrapping multiple validation errors returned by AssignmentFindByGroupIDResponse.ValidateAll() if the designated constraints aren't met.

func (AssignmentFindByGroupIDResponseMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (AssignmentFindByGroupIDResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type AssignmentFindByGroupIDResponseValidationError

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

AssignmentFindByGroupIDResponseValidationError is the validation error returned by AssignmentFindByGroupIDResponse.Validate if the designated constraints aren't met.

func (AssignmentFindByGroupIDResponseValidationError) Cause

Cause function returns cause value.

func (AssignmentFindByGroupIDResponseValidationError) Error

Error satisfies the builtin error interface

func (AssignmentFindByGroupIDResponseValidationError) ErrorName

ErrorName returns error name.

func (AssignmentFindByGroupIDResponseValidationError) Field

Field function returns field value.

func (AssignmentFindByGroupIDResponseValidationError) Key

Key function returns key value.

func (AssignmentFindByGroupIDResponseValidationError) Reason

Reason function returns reason value.

type AssignmentServer

type AssignmentServer interface {
	FindByFormID(context.Context, *AssignmentFindByFormIDRequest) (*AssignmentFindByFormIDResponse, error)
	FindByGroupID(context.Context, *AssignmentFindByGroupIDRequest) (*AssignmentFindByGroupIDResponse, error)
	// contains filtered or unexported methods
}

AssignmentServer is the server API for Assignment service. All implementations must embed UnimplementedAssignmentServer for forward compatibility.

type UnimplementedAssignmentServer

type UnimplementedAssignmentServer struct{}

UnimplementedAssignmentServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

type UnsafeAssignmentServer

type UnsafeAssignmentServer interface {
	// contains filtered or unexported methods
}

UnsafeAssignmentServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AssignmentServer will result in compilation errors.

Jump to

Keyboard shortcuts

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