Documentation ¶
Overview ¶
Package organizations is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterMruVOrganizationsServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterMruVOrganizationsServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, ...) error
- func RegisterMruVOrganizationsServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterMruVOrganizationsServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, ...) error
- func RegisterMruVOrganizationsServiceServer(s *grpc.Server, srv MruVOrganizationsServiceServer)
- type AssignLeaderRequest
- func (*AssignLeaderRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AssignLeaderRequest) GetId() uint32
- func (*AssignLeaderRequest) ProtoMessage()
- func (x *AssignLeaderRequest) ProtoReflect() protoreflect.Message
- func (x *AssignLeaderRequest) Reset()
- func (x *AssignLeaderRequest) String() string
- func (m *AssignLeaderRequest) Validate() error
- type AssignLeaderRequestValidationError
- func (e AssignLeaderRequestValidationError) Cause() error
- func (e AssignLeaderRequestValidationError) Error() string
- func (e AssignLeaderRequestValidationError) ErrorName() string
- func (e AssignLeaderRequestValidationError) Field() string
- func (e AssignLeaderRequestValidationError) Key() bool
- func (e AssignLeaderRequestValidationError) Reason() string
- type AssignLeaderResponse
- func (*AssignLeaderResponse) Descriptor() ([]byte, []int)deprecated
- func (*AssignLeaderResponse) ProtoMessage()
- func (x *AssignLeaderResponse) ProtoReflect() protoreflect.Message
- func (x *AssignLeaderResponse) Reset()
- func (x *AssignLeaderResponse) String() string
- func (m *AssignLeaderResponse) Validate() error
- type AssignLeaderResponseValidationError
- func (e AssignLeaderResponseValidationError) Cause() error
- func (e AssignLeaderResponseValidationError) Error() string
- func (e AssignLeaderResponseValidationError) ErrorName() string
- func (e AssignLeaderResponseValidationError) Field() string
- func (e AssignLeaderResponseValidationError) Key() bool
- func (e AssignLeaderResponseValidationError) Reason() string
- type CreateOrganizationRequest
- func (*CreateOrganizationRequest) Descriptor() ([]byte, []int)deprecated
- func (*CreateOrganizationRequest) ProtoMessage()
- func (x *CreateOrganizationRequest) ProtoReflect() protoreflect.Message
- func (x *CreateOrganizationRequest) Reset()
- func (x *CreateOrganizationRequest) String() string
- func (m *CreateOrganizationRequest) Validate() error
- type CreateOrganizationRequestValidationError
- func (e CreateOrganizationRequestValidationError) Cause() error
- func (e CreateOrganizationRequestValidationError) Error() string
- func (e CreateOrganizationRequestValidationError) ErrorName() string
- func (e CreateOrganizationRequestValidationError) Field() string
- func (e CreateOrganizationRequestValidationError) Key() bool
- func (e CreateOrganizationRequestValidationError) Reason() string
- type CreateOrganizationResponse
- func (*CreateOrganizationResponse) Descriptor() ([]byte, []int)deprecated
- func (*CreateOrganizationResponse) ProtoMessage()
- func (x *CreateOrganizationResponse) ProtoReflect() protoreflect.Message
- func (x *CreateOrganizationResponse) Reset()
- func (x *CreateOrganizationResponse) String() string
- func (m *CreateOrganizationResponse) Validate() error
- type CreateOrganizationResponseValidationError
- func (e CreateOrganizationResponseValidationError) Cause() error
- func (e CreateOrganizationResponseValidationError) Error() string
- func (e CreateOrganizationResponseValidationError) ErrorName() string
- func (e CreateOrganizationResponseValidationError) Field() string
- func (e CreateOrganizationResponseValidationError) Key() bool
- func (e CreateOrganizationResponseValidationError) Reason() string
- type DeleteOrganizationRequest
- func (*DeleteOrganizationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteOrganizationRequest) GetId() uint32
- func (*DeleteOrganizationRequest) ProtoMessage()
- func (x *DeleteOrganizationRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteOrganizationRequest) Reset()
- func (x *DeleteOrganizationRequest) String() string
- func (m *DeleteOrganizationRequest) Validate() error
- type DeleteOrganizationRequestValidationError
- func (e DeleteOrganizationRequestValidationError) Cause() error
- func (e DeleteOrganizationRequestValidationError) Error() string
- func (e DeleteOrganizationRequestValidationError) ErrorName() string
- func (e DeleteOrganizationRequestValidationError) Field() string
- func (e DeleteOrganizationRequestValidationError) Key() bool
- func (e DeleteOrganizationRequestValidationError) Reason() string
- type DeleteOrganizationResponse
- func (*DeleteOrganizationResponse) Descriptor() ([]byte, []int)deprecated
- func (*DeleteOrganizationResponse) ProtoMessage()
- func (x *DeleteOrganizationResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteOrganizationResponse) Reset()
- func (x *DeleteOrganizationResponse) String() string
- func (m *DeleteOrganizationResponse) Validate() error
- type DeleteOrganizationResponseValidationError
- func (e DeleteOrganizationResponseValidationError) Cause() error
- func (e DeleteOrganizationResponseValidationError) Error() string
- func (e DeleteOrganizationResponseValidationError) ErrorName() string
- func (e DeleteOrganizationResponseValidationError) Field() string
- func (e DeleteOrganizationResponseValidationError) Key() bool
- func (e DeleteOrganizationResponseValidationError) Reason() string
- type GetOrganizationRequest
- func (*GetOrganizationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetOrganizationRequest) GetId() uint32
- func (*GetOrganizationRequest) ProtoMessage()
- func (x *GetOrganizationRequest) ProtoReflect() protoreflect.Message
- func (x *GetOrganizationRequest) Reset()
- func (x *GetOrganizationRequest) String() string
- func (m *GetOrganizationRequest) Validate() error
- type GetOrganizationRequestValidationError
- func (e GetOrganizationRequestValidationError) Cause() error
- func (e GetOrganizationRequestValidationError) Error() string
- func (e GetOrganizationRequestValidationError) ErrorName() string
- func (e GetOrganizationRequestValidationError) Field() string
- func (e GetOrganizationRequestValidationError) Key() bool
- func (e GetOrganizationRequestValidationError) Reason() string
- type GetOrganizationResponse
- func (*GetOrganizationResponse) Descriptor() ([]byte, []int)deprecated
- func (*GetOrganizationResponse) ProtoMessage()
- func (x *GetOrganizationResponse) ProtoReflect() protoreflect.Message
- func (x *GetOrganizationResponse) Reset()
- func (x *GetOrganizationResponse) String() string
- func (m *GetOrganizationResponse) Validate() error
- type GetOrganizationResponseValidationError
- func (e GetOrganizationResponseValidationError) Cause() error
- func (e GetOrganizationResponseValidationError) Error() string
- func (e GetOrganizationResponseValidationError) ErrorName() string
- func (e GetOrganizationResponseValidationError) Field() string
- func (e GetOrganizationResponseValidationError) Key() bool
- func (e GetOrganizationResponseValidationError) Reason() string
- type MruVOrganizationsServiceClient
- type MruVOrganizationsServiceServer
- type UnassignLeaderRequest
- func (*UnassignLeaderRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UnassignLeaderRequest) GetId() uint32
- func (*UnassignLeaderRequest) ProtoMessage()
- func (x *UnassignLeaderRequest) ProtoReflect() protoreflect.Message
- func (x *UnassignLeaderRequest) Reset()
- func (x *UnassignLeaderRequest) String() string
- func (m *UnassignLeaderRequest) Validate() error
- type UnassignLeaderRequestValidationError
- func (e UnassignLeaderRequestValidationError) Cause() error
- func (e UnassignLeaderRequestValidationError) Error() string
- func (e UnassignLeaderRequestValidationError) ErrorName() string
- func (e UnassignLeaderRequestValidationError) Field() string
- func (e UnassignLeaderRequestValidationError) Key() bool
- func (e UnassignLeaderRequestValidationError) Reason() string
- type UnassignLeaderResponse
- func (*UnassignLeaderResponse) Descriptor() ([]byte, []int)deprecated
- func (*UnassignLeaderResponse) ProtoMessage()
- func (x *UnassignLeaderResponse) ProtoReflect() protoreflect.Message
- func (x *UnassignLeaderResponse) Reset()
- func (x *UnassignLeaderResponse) String() string
- func (m *UnassignLeaderResponse) Validate() error
- type UnassignLeaderResponseValidationError
- func (e UnassignLeaderResponseValidationError) Cause() error
- func (e UnassignLeaderResponseValidationError) Error() string
- func (e UnassignLeaderResponseValidationError) ErrorName() string
- func (e UnassignLeaderResponseValidationError) Field() string
- func (e UnassignLeaderResponseValidationError) Key() bool
- func (e UnassignLeaderResponseValidationError) Reason() string
- type UnimplementedMruVOrganizationsServiceServer
- func (*UnimplementedMruVOrganizationsServiceServer) AssignLeader(context.Context, *AssignLeaderRequest) (*AssignLeaderResponse, error)
- func (*UnimplementedMruVOrganizationsServiceServer) CreateOrganization(context.Context, *CreateOrganizationRequest) (*CreateOrganizationResponse, error)
- func (*UnimplementedMruVOrganizationsServiceServer) DeleteOrganization(context.Context, *DeleteOrganizationRequest) (*DeleteOrganizationResponse, error)
- func (*UnimplementedMruVOrganizationsServiceServer) GetOrganization(context.Context, *GetOrganizationRequest) (*GetOrganizationResponse, error)
- func (*UnimplementedMruVOrganizationsServiceServer) UnassignLeader(context.Context, *UnassignLeaderRequest) (*UnassignLeaderResponse, error)
- func (*UnimplementedMruVOrganizationsServiceServer) UpdateOrganization(context.Context, *UpdateOrganizationRequest) (*UpdateOrganizationResponse, error)
- type UpdateOrganizationRequest
- func (*UpdateOrganizationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateOrganizationRequest) GetId() uint32
- func (*UpdateOrganizationRequest) ProtoMessage()
- func (x *UpdateOrganizationRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateOrganizationRequest) Reset()
- func (x *UpdateOrganizationRequest) String() string
- func (m *UpdateOrganizationRequest) Validate() error
- type UpdateOrganizationRequestValidationError
- func (e UpdateOrganizationRequestValidationError) Cause() error
- func (e UpdateOrganizationRequestValidationError) Error() string
- func (e UpdateOrganizationRequestValidationError) ErrorName() string
- func (e UpdateOrganizationRequestValidationError) Field() string
- func (e UpdateOrganizationRequestValidationError) Key() bool
- func (e UpdateOrganizationRequestValidationError) Reason() string
- type UpdateOrganizationResponse
- func (*UpdateOrganizationResponse) Descriptor() ([]byte, []int)deprecated
- func (*UpdateOrganizationResponse) ProtoMessage()
- func (x *UpdateOrganizationResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateOrganizationResponse) Reset()
- func (x *UpdateOrganizationResponse) String() string
- func (m *UpdateOrganizationResponse) Validate() error
- type UpdateOrganizationResponseValidationError
- func (e UpdateOrganizationResponseValidationError) Cause() error
- func (e UpdateOrganizationResponseValidationError) Error() string
- func (e UpdateOrganizationResponseValidationError) ErrorName() string
- func (e UpdateOrganizationResponseValidationError) Field() string
- func (e UpdateOrganizationResponseValidationError) Key() bool
- func (e UpdateOrganizationResponseValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var File_organizations_organizations_proto protoreflect.FileDescriptor
Functions ¶
func RegisterMruVOrganizationsServiceHandler ¶
func RegisterMruVOrganizationsServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterMruVOrganizationsServiceHandler registers the http handlers for service MruVOrganizationsService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterMruVOrganizationsServiceHandlerClient ¶
func RegisterMruVOrganizationsServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client MruVOrganizationsServiceClient) error
RegisterMruVOrganizationsServiceHandlerClient registers the http handlers for service MruVOrganizationsService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "MruVOrganizationsServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "MruVOrganizationsServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "MruVOrganizationsServiceClient" to call the correct interceptors.
func RegisterMruVOrganizationsServiceHandlerFromEndpoint ¶
func RegisterMruVOrganizationsServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterMruVOrganizationsServiceHandlerFromEndpoint is same as RegisterMruVOrganizationsServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterMruVOrganizationsServiceHandlerServer ¶
func RegisterMruVOrganizationsServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server MruVOrganizationsServiceServer) error
RegisterMruVOrganizationsServiceHandlerServer registers the http handlers for service MruVOrganizationsService to "mux". UnaryRPC :call MruVOrganizationsServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterMruVOrganizationsServiceHandlerFromEndpoint instead.
func RegisterMruVOrganizationsServiceServer ¶
func RegisterMruVOrganizationsServiceServer(s *grpc.Server, srv MruVOrganizationsServiceServer)
Types ¶
type AssignLeaderRequest ¶
type AssignLeaderRequest struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
Request message for rpc `AssignLeader`.
func (*AssignLeaderRequest) Descriptor
deprecated
func (*AssignLeaderRequest) Descriptor() ([]byte, []int)
Deprecated: Use AssignLeaderRequest.ProtoReflect.Descriptor instead.
func (*AssignLeaderRequest) GetId ¶
func (x *AssignLeaderRequest) GetId() uint32
func (*AssignLeaderRequest) ProtoMessage ¶
func (*AssignLeaderRequest) ProtoMessage()
func (*AssignLeaderRequest) ProtoReflect ¶ added in v0.8.4
func (x *AssignLeaderRequest) ProtoReflect() protoreflect.Message
func (*AssignLeaderRequest) Reset ¶
func (x *AssignLeaderRequest) Reset()
func (*AssignLeaderRequest) String ¶
func (x *AssignLeaderRequest) String() string
func (*AssignLeaderRequest) Validate ¶
func (m *AssignLeaderRequest) Validate() error
Validate checks the field values on AssignLeaderRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type AssignLeaderRequestValidationError ¶
type AssignLeaderRequestValidationError struct {
// contains filtered or unexported fields
}
AssignLeaderRequestValidationError is the validation error returned by AssignLeaderRequest.Validate if the designated constraints aren't met.
func (AssignLeaderRequestValidationError) Cause ¶
func (e AssignLeaderRequestValidationError) Cause() error
Cause function returns cause value.
func (AssignLeaderRequestValidationError) Error ¶
func (e AssignLeaderRequestValidationError) Error() string
Error satisfies the builtin error interface
func (AssignLeaderRequestValidationError) ErrorName ¶
func (e AssignLeaderRequestValidationError) ErrorName() string
ErrorName returns error name.
func (AssignLeaderRequestValidationError) Field ¶
func (e AssignLeaderRequestValidationError) Field() string
Field function returns field value.
func (AssignLeaderRequestValidationError) Key ¶
func (e AssignLeaderRequestValidationError) Key() bool
Key function returns key value.
func (AssignLeaderRequestValidationError) Reason ¶
func (e AssignLeaderRequestValidationError) Reason() string
Reason function returns reason value.
type AssignLeaderResponse ¶
type AssignLeaderResponse struct {
// contains filtered or unexported fields
}
Response message for rpc `AssignLeader`.
func (*AssignLeaderResponse) Descriptor
deprecated
func (*AssignLeaderResponse) Descriptor() ([]byte, []int)
Deprecated: Use AssignLeaderResponse.ProtoReflect.Descriptor instead.
func (*AssignLeaderResponse) ProtoMessage ¶
func (*AssignLeaderResponse) ProtoMessage()
func (*AssignLeaderResponse) ProtoReflect ¶ added in v0.8.4
func (x *AssignLeaderResponse) ProtoReflect() protoreflect.Message
func (*AssignLeaderResponse) Reset ¶
func (x *AssignLeaderResponse) Reset()
func (*AssignLeaderResponse) String ¶
func (x *AssignLeaderResponse) String() string
func (*AssignLeaderResponse) Validate ¶
func (m *AssignLeaderResponse) Validate() error
Validate checks the field values on AssignLeaderResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type AssignLeaderResponseValidationError ¶
type AssignLeaderResponseValidationError struct {
// contains filtered or unexported fields
}
AssignLeaderResponseValidationError is the validation error returned by AssignLeaderResponse.Validate if the designated constraints aren't met.
func (AssignLeaderResponseValidationError) Cause ¶
func (e AssignLeaderResponseValidationError) Cause() error
Cause function returns cause value.
func (AssignLeaderResponseValidationError) Error ¶
func (e AssignLeaderResponseValidationError) Error() string
Error satisfies the builtin error interface
func (AssignLeaderResponseValidationError) ErrorName ¶
func (e AssignLeaderResponseValidationError) ErrorName() string
ErrorName returns error name.
func (AssignLeaderResponseValidationError) Field ¶
func (e AssignLeaderResponseValidationError) Field() string
Field function returns field value.
func (AssignLeaderResponseValidationError) Key ¶
func (e AssignLeaderResponseValidationError) Key() bool
Key function returns key value.
func (AssignLeaderResponseValidationError) Reason ¶
func (e AssignLeaderResponseValidationError) Reason() string
Reason function returns reason value.
type CreateOrganizationRequest ¶
type CreateOrganizationRequest struct {
// contains filtered or unexported fields
}
Request message for rpc `CreateOrganization`.
func (*CreateOrganizationRequest) Descriptor
deprecated
func (*CreateOrganizationRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateOrganizationRequest.ProtoReflect.Descriptor instead.
func (*CreateOrganizationRequest) ProtoMessage ¶
func (*CreateOrganizationRequest) ProtoMessage()
func (*CreateOrganizationRequest) ProtoReflect ¶ added in v0.8.4
func (x *CreateOrganizationRequest) ProtoReflect() protoreflect.Message
func (*CreateOrganizationRequest) Reset ¶
func (x *CreateOrganizationRequest) Reset()
func (*CreateOrganizationRequest) String ¶
func (x *CreateOrganizationRequest) String() string
func (*CreateOrganizationRequest) Validate ¶
func (m *CreateOrganizationRequest) Validate() error
Validate checks the field values on CreateOrganizationRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type CreateOrganizationRequestValidationError ¶
type CreateOrganizationRequestValidationError struct {
// contains filtered or unexported fields
}
CreateOrganizationRequestValidationError is the validation error returned by CreateOrganizationRequest.Validate if the designated constraints aren't met.
func (CreateOrganizationRequestValidationError) Cause ¶
func (e CreateOrganizationRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateOrganizationRequestValidationError) Error ¶
func (e CreateOrganizationRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateOrganizationRequestValidationError) ErrorName ¶
func (e CreateOrganizationRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateOrganizationRequestValidationError) Field ¶
func (e CreateOrganizationRequestValidationError) Field() string
Field function returns field value.
func (CreateOrganizationRequestValidationError) Key ¶
func (e CreateOrganizationRequestValidationError) Key() bool
Key function returns key value.
func (CreateOrganizationRequestValidationError) Reason ¶
func (e CreateOrganizationRequestValidationError) Reason() string
Reason function returns reason value.
type CreateOrganizationResponse ¶
type CreateOrganizationResponse struct {
// contains filtered or unexported fields
}
Response message for rpc `CreateOrganization`.
func (*CreateOrganizationResponse) Descriptor
deprecated
func (*CreateOrganizationResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateOrganizationResponse.ProtoReflect.Descriptor instead.
func (*CreateOrganizationResponse) ProtoMessage ¶
func (*CreateOrganizationResponse) ProtoMessage()
func (*CreateOrganizationResponse) ProtoReflect ¶ added in v0.8.4
func (x *CreateOrganizationResponse) ProtoReflect() protoreflect.Message
func (*CreateOrganizationResponse) Reset ¶
func (x *CreateOrganizationResponse) Reset()
func (*CreateOrganizationResponse) String ¶
func (x *CreateOrganizationResponse) String() string
func (*CreateOrganizationResponse) Validate ¶
func (m *CreateOrganizationResponse) Validate() error
Validate checks the field values on CreateOrganizationResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type CreateOrganizationResponseValidationError ¶
type CreateOrganizationResponseValidationError struct {
// contains filtered or unexported fields
}
CreateOrganizationResponseValidationError is the validation error returned by CreateOrganizationResponse.Validate if the designated constraints aren't met.
func (CreateOrganizationResponseValidationError) Cause ¶
func (e CreateOrganizationResponseValidationError) Cause() error
Cause function returns cause value.
func (CreateOrganizationResponseValidationError) Error ¶
func (e CreateOrganizationResponseValidationError) Error() string
Error satisfies the builtin error interface
func (CreateOrganizationResponseValidationError) ErrorName ¶
func (e CreateOrganizationResponseValidationError) ErrorName() string
ErrorName returns error name.
func (CreateOrganizationResponseValidationError) Field ¶
func (e CreateOrganizationResponseValidationError) Field() string
Field function returns field value.
func (CreateOrganizationResponseValidationError) Key ¶
func (e CreateOrganizationResponseValidationError) Key() bool
Key function returns key value.
func (CreateOrganizationResponseValidationError) Reason ¶
func (e CreateOrganizationResponseValidationError) Reason() string
Reason function returns reason value.
type DeleteOrganizationRequest ¶
type DeleteOrganizationRequest struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
Request message for rpc `DeleteOrganization`.
func (*DeleteOrganizationRequest) Descriptor
deprecated
func (*DeleteOrganizationRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteOrganizationRequest.ProtoReflect.Descriptor instead.
func (*DeleteOrganizationRequest) GetId ¶
func (x *DeleteOrganizationRequest) GetId() uint32
func (*DeleteOrganizationRequest) ProtoMessage ¶
func (*DeleteOrganizationRequest) ProtoMessage()
func (*DeleteOrganizationRequest) ProtoReflect ¶ added in v0.8.4
func (x *DeleteOrganizationRequest) ProtoReflect() protoreflect.Message
func (*DeleteOrganizationRequest) Reset ¶
func (x *DeleteOrganizationRequest) Reset()
func (*DeleteOrganizationRequest) String ¶
func (x *DeleteOrganizationRequest) String() string
func (*DeleteOrganizationRequest) Validate ¶
func (m *DeleteOrganizationRequest) Validate() error
Validate checks the field values on DeleteOrganizationRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type DeleteOrganizationRequestValidationError ¶
type DeleteOrganizationRequestValidationError struct {
// contains filtered or unexported fields
}
DeleteOrganizationRequestValidationError is the validation error returned by DeleteOrganizationRequest.Validate if the designated constraints aren't met.
func (DeleteOrganizationRequestValidationError) Cause ¶
func (e DeleteOrganizationRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteOrganizationRequestValidationError) Error ¶
func (e DeleteOrganizationRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteOrganizationRequestValidationError) ErrorName ¶
func (e DeleteOrganizationRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteOrganizationRequestValidationError) Field ¶
func (e DeleteOrganizationRequestValidationError) Field() string
Field function returns field value.
func (DeleteOrganizationRequestValidationError) Key ¶
func (e DeleteOrganizationRequestValidationError) Key() bool
Key function returns key value.
func (DeleteOrganizationRequestValidationError) Reason ¶
func (e DeleteOrganizationRequestValidationError) Reason() string
Reason function returns reason value.
type DeleteOrganizationResponse ¶
type DeleteOrganizationResponse struct {
// contains filtered or unexported fields
}
Response message for rpc `DeleteOrganization`.
func (*DeleteOrganizationResponse) Descriptor
deprecated
func (*DeleteOrganizationResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteOrganizationResponse.ProtoReflect.Descriptor instead.
func (*DeleteOrganizationResponse) ProtoMessage ¶
func (*DeleteOrganizationResponse) ProtoMessage()
func (*DeleteOrganizationResponse) ProtoReflect ¶ added in v0.8.4
func (x *DeleteOrganizationResponse) ProtoReflect() protoreflect.Message
func (*DeleteOrganizationResponse) Reset ¶
func (x *DeleteOrganizationResponse) Reset()
func (*DeleteOrganizationResponse) String ¶
func (x *DeleteOrganizationResponse) String() string
func (*DeleteOrganizationResponse) Validate ¶
func (m *DeleteOrganizationResponse) Validate() error
Validate checks the field values on DeleteOrganizationResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type DeleteOrganizationResponseValidationError ¶
type DeleteOrganizationResponseValidationError struct {
// contains filtered or unexported fields
}
DeleteOrganizationResponseValidationError is the validation error returned by DeleteOrganizationResponse.Validate if the designated constraints aren't met.
func (DeleteOrganizationResponseValidationError) Cause ¶
func (e DeleteOrganizationResponseValidationError) Cause() error
Cause function returns cause value.
func (DeleteOrganizationResponseValidationError) Error ¶
func (e DeleteOrganizationResponseValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteOrganizationResponseValidationError) ErrorName ¶
func (e DeleteOrganizationResponseValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteOrganizationResponseValidationError) Field ¶
func (e DeleteOrganizationResponseValidationError) Field() string
Field function returns field value.
func (DeleteOrganizationResponseValidationError) Key ¶
func (e DeleteOrganizationResponseValidationError) Key() bool
Key function returns key value.
func (DeleteOrganizationResponseValidationError) Reason ¶
func (e DeleteOrganizationResponseValidationError) Reason() string
Reason function returns reason value.
type GetOrganizationRequest ¶
type GetOrganizationRequest struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
Request message for rpc `GetOrganization`.
func (*GetOrganizationRequest) Descriptor
deprecated
func (*GetOrganizationRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetOrganizationRequest.ProtoReflect.Descriptor instead.
func (*GetOrganizationRequest) GetId ¶
func (x *GetOrganizationRequest) GetId() uint32
func (*GetOrganizationRequest) ProtoMessage ¶
func (*GetOrganizationRequest) ProtoMessage()
func (*GetOrganizationRequest) ProtoReflect ¶ added in v0.8.4
func (x *GetOrganizationRequest) ProtoReflect() protoreflect.Message
func (*GetOrganizationRequest) Reset ¶
func (x *GetOrganizationRequest) Reset()
func (*GetOrganizationRequest) String ¶
func (x *GetOrganizationRequest) String() string
func (*GetOrganizationRequest) Validate ¶
func (m *GetOrganizationRequest) Validate() error
Validate checks the field values on GetOrganizationRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type GetOrganizationRequestValidationError ¶
type GetOrganizationRequestValidationError struct {
// contains filtered or unexported fields
}
GetOrganizationRequestValidationError is the validation error returned by GetOrganizationRequest.Validate if the designated constraints aren't met.
func (GetOrganizationRequestValidationError) Cause ¶
func (e GetOrganizationRequestValidationError) Cause() error
Cause function returns cause value.
func (GetOrganizationRequestValidationError) Error ¶
func (e GetOrganizationRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetOrganizationRequestValidationError) ErrorName ¶
func (e GetOrganizationRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetOrganizationRequestValidationError) Field ¶
func (e GetOrganizationRequestValidationError) Field() string
Field function returns field value.
func (GetOrganizationRequestValidationError) Key ¶
func (e GetOrganizationRequestValidationError) Key() bool
Key function returns key value.
func (GetOrganizationRequestValidationError) Reason ¶
func (e GetOrganizationRequestValidationError) Reason() string
Reason function returns reason value.
type GetOrganizationResponse ¶
type GetOrganizationResponse struct {
// contains filtered or unexported fields
}
Response message for rpc `GetOrganization`.
func (*GetOrganizationResponse) Descriptor
deprecated
func (*GetOrganizationResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetOrganizationResponse.ProtoReflect.Descriptor instead.
func (*GetOrganizationResponse) ProtoMessage ¶
func (*GetOrganizationResponse) ProtoMessage()
func (*GetOrganizationResponse) ProtoReflect ¶ added in v0.8.4
func (x *GetOrganizationResponse) ProtoReflect() protoreflect.Message
func (*GetOrganizationResponse) Reset ¶
func (x *GetOrganizationResponse) Reset()
func (*GetOrganizationResponse) String ¶
func (x *GetOrganizationResponse) String() string
func (*GetOrganizationResponse) Validate ¶
func (m *GetOrganizationResponse) Validate() error
Validate checks the field values on GetOrganizationResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type GetOrganizationResponseValidationError ¶
type GetOrganizationResponseValidationError struct {
// contains filtered or unexported fields
}
GetOrganizationResponseValidationError is the validation error returned by GetOrganizationResponse.Validate if the designated constraints aren't met.
func (GetOrganizationResponseValidationError) Cause ¶
func (e GetOrganizationResponseValidationError) Cause() error
Cause function returns cause value.
func (GetOrganizationResponseValidationError) Error ¶
func (e GetOrganizationResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetOrganizationResponseValidationError) ErrorName ¶
func (e GetOrganizationResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetOrganizationResponseValidationError) Field ¶
func (e GetOrganizationResponseValidationError) Field() string
Field function returns field value.
func (GetOrganizationResponseValidationError) Key ¶
func (e GetOrganizationResponseValidationError) Key() bool
Key function returns key value.
func (GetOrganizationResponseValidationError) Reason ¶
func (e GetOrganizationResponseValidationError) Reason() string
Reason function returns reason value.
type MruVOrganizationsServiceClient ¶
type MruVOrganizationsServiceClient interface { // Create a organization. CreateOrganization(ctx context.Context, in *CreateOrganizationRequest, opts ...grpc.CallOption) (*CreateOrganizationResponse, error) // Get organization. GetOrganization(ctx context.Context, in *GetOrganizationRequest, opts ...grpc.CallOption) (*GetOrganizationResponse, error) // Update organization. UpdateOrganization(ctx context.Context, in *UpdateOrganizationRequest, opts ...grpc.CallOption) (*UpdateOrganizationResponse, error) // Delete organization. DeleteOrganization(ctx context.Context, in *DeleteOrganizationRequest, opts ...grpc.CallOption) (*DeleteOrganizationResponse, error) // Assign an organization leader. Leader is a main administrator of a organization, have all rights to manage organization. // If the organization leader already exists, the leader will be overwritten. AssignLeader(ctx context.Context, in *AssignLeaderRequest, opts ...grpc.CallOption) (*AssignLeaderResponse, error) // UnassignLeader(ctx context.Context, in *UnassignLeaderRequest, opts ...grpc.CallOption) (*UnassignLeaderResponse, error) }
MruVOrganizationsServiceClient is the client API for MruVOrganizationsService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewMruVOrganizationsServiceClient ¶
func NewMruVOrganizationsServiceClient(cc grpc.ClientConnInterface) MruVOrganizationsServiceClient
type MruVOrganizationsServiceServer ¶
type MruVOrganizationsServiceServer interface { // Create a organization. CreateOrganization(context.Context, *CreateOrganizationRequest) (*CreateOrganizationResponse, error) // Get organization. GetOrganization(context.Context, *GetOrganizationRequest) (*GetOrganizationResponse, error) // Update organization. UpdateOrganization(context.Context, *UpdateOrganizationRequest) (*UpdateOrganizationResponse, error) // Delete organization. DeleteOrganization(context.Context, *DeleteOrganizationRequest) (*DeleteOrganizationResponse, error) // Assign an organization leader. Leader is a main administrator of a organization, have all rights to manage organization. // If the organization leader already exists, the leader will be overwritten. AssignLeader(context.Context, *AssignLeaderRequest) (*AssignLeaderResponse, error) // UnassignLeader(context.Context, *UnassignLeaderRequest) (*UnassignLeaderResponse, error) }
MruVOrganizationsServiceServer is the server API for MruVOrganizationsService service.
type UnassignLeaderRequest ¶
type UnassignLeaderRequest struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
Request message for rpc `UnassignLeader`.
func (*UnassignLeaderRequest) Descriptor
deprecated
func (*UnassignLeaderRequest) Descriptor() ([]byte, []int)
Deprecated: Use UnassignLeaderRequest.ProtoReflect.Descriptor instead.
func (*UnassignLeaderRequest) GetId ¶
func (x *UnassignLeaderRequest) GetId() uint32
func (*UnassignLeaderRequest) ProtoMessage ¶
func (*UnassignLeaderRequest) ProtoMessage()
func (*UnassignLeaderRequest) ProtoReflect ¶ added in v0.8.4
func (x *UnassignLeaderRequest) ProtoReflect() protoreflect.Message
func (*UnassignLeaderRequest) Reset ¶
func (x *UnassignLeaderRequest) Reset()
func (*UnassignLeaderRequest) String ¶
func (x *UnassignLeaderRequest) String() string
func (*UnassignLeaderRequest) Validate ¶
func (m *UnassignLeaderRequest) Validate() error
Validate checks the field values on UnassignLeaderRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type UnassignLeaderRequestValidationError ¶
type UnassignLeaderRequestValidationError struct {
// contains filtered or unexported fields
}
UnassignLeaderRequestValidationError is the validation error returned by UnassignLeaderRequest.Validate if the designated constraints aren't met.
func (UnassignLeaderRequestValidationError) Cause ¶
func (e UnassignLeaderRequestValidationError) Cause() error
Cause function returns cause value.
func (UnassignLeaderRequestValidationError) Error ¶
func (e UnassignLeaderRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UnassignLeaderRequestValidationError) ErrorName ¶
func (e UnassignLeaderRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UnassignLeaderRequestValidationError) Field ¶
func (e UnassignLeaderRequestValidationError) Field() string
Field function returns field value.
func (UnassignLeaderRequestValidationError) Key ¶
func (e UnassignLeaderRequestValidationError) Key() bool
Key function returns key value.
func (UnassignLeaderRequestValidationError) Reason ¶
func (e UnassignLeaderRequestValidationError) Reason() string
Reason function returns reason value.
type UnassignLeaderResponse ¶
type UnassignLeaderResponse struct {
// contains filtered or unexported fields
}
Response message for rpc `UnassignLeader`.
func (*UnassignLeaderResponse) Descriptor
deprecated
func (*UnassignLeaderResponse) Descriptor() ([]byte, []int)
Deprecated: Use UnassignLeaderResponse.ProtoReflect.Descriptor instead.
func (*UnassignLeaderResponse) ProtoMessage ¶
func (*UnassignLeaderResponse) ProtoMessage()
func (*UnassignLeaderResponse) ProtoReflect ¶ added in v0.8.4
func (x *UnassignLeaderResponse) ProtoReflect() protoreflect.Message
func (*UnassignLeaderResponse) Reset ¶
func (x *UnassignLeaderResponse) Reset()
func (*UnassignLeaderResponse) String ¶
func (x *UnassignLeaderResponse) String() string
func (*UnassignLeaderResponse) Validate ¶
func (m *UnassignLeaderResponse) Validate() error
Validate checks the field values on UnassignLeaderResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type UnassignLeaderResponseValidationError ¶
type UnassignLeaderResponseValidationError struct {
// contains filtered or unexported fields
}
UnassignLeaderResponseValidationError is the validation error returned by UnassignLeaderResponse.Validate if the designated constraints aren't met.
func (UnassignLeaderResponseValidationError) Cause ¶
func (e UnassignLeaderResponseValidationError) Cause() error
Cause function returns cause value.
func (UnassignLeaderResponseValidationError) Error ¶
func (e UnassignLeaderResponseValidationError) Error() string
Error satisfies the builtin error interface
func (UnassignLeaderResponseValidationError) ErrorName ¶
func (e UnassignLeaderResponseValidationError) ErrorName() string
ErrorName returns error name.
func (UnassignLeaderResponseValidationError) Field ¶
func (e UnassignLeaderResponseValidationError) Field() string
Field function returns field value.
func (UnassignLeaderResponseValidationError) Key ¶
func (e UnassignLeaderResponseValidationError) Key() bool
Key function returns key value.
func (UnassignLeaderResponseValidationError) Reason ¶
func (e UnassignLeaderResponseValidationError) Reason() string
Reason function returns reason value.
type UnimplementedMruVOrganizationsServiceServer ¶
type UnimplementedMruVOrganizationsServiceServer struct { }
UnimplementedMruVOrganizationsServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedMruVOrganizationsServiceServer) AssignLeader ¶
func (*UnimplementedMruVOrganizationsServiceServer) AssignLeader(context.Context, *AssignLeaderRequest) (*AssignLeaderResponse, error)
func (*UnimplementedMruVOrganizationsServiceServer) CreateOrganization ¶
func (*UnimplementedMruVOrganizationsServiceServer) CreateOrganization(context.Context, *CreateOrganizationRequest) (*CreateOrganizationResponse, error)
func (*UnimplementedMruVOrganizationsServiceServer) DeleteOrganization ¶
func (*UnimplementedMruVOrganizationsServiceServer) DeleteOrganization(context.Context, *DeleteOrganizationRequest) (*DeleteOrganizationResponse, error)
func (*UnimplementedMruVOrganizationsServiceServer) GetOrganization ¶
func (*UnimplementedMruVOrganizationsServiceServer) GetOrganization(context.Context, *GetOrganizationRequest) (*GetOrganizationResponse, error)
func (*UnimplementedMruVOrganizationsServiceServer) UnassignLeader ¶
func (*UnimplementedMruVOrganizationsServiceServer) UnassignLeader(context.Context, *UnassignLeaderRequest) (*UnassignLeaderResponse, error)
func (*UnimplementedMruVOrganizationsServiceServer) UpdateOrganization ¶
func (*UnimplementedMruVOrganizationsServiceServer) UpdateOrganization(context.Context, *UpdateOrganizationRequest) (*UpdateOrganizationResponse, error)
type UpdateOrganizationRequest ¶
type UpdateOrganizationRequest struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
Request message for rpc `UpdateOrganization`.
func (*UpdateOrganizationRequest) Descriptor
deprecated
func (*UpdateOrganizationRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateOrganizationRequest.ProtoReflect.Descriptor instead.
func (*UpdateOrganizationRequest) GetId ¶
func (x *UpdateOrganizationRequest) GetId() uint32
func (*UpdateOrganizationRequest) ProtoMessage ¶
func (*UpdateOrganizationRequest) ProtoMessage()
func (*UpdateOrganizationRequest) ProtoReflect ¶ added in v0.8.4
func (x *UpdateOrganizationRequest) ProtoReflect() protoreflect.Message
func (*UpdateOrganizationRequest) Reset ¶
func (x *UpdateOrganizationRequest) Reset()
func (*UpdateOrganizationRequest) String ¶
func (x *UpdateOrganizationRequest) String() string
func (*UpdateOrganizationRequest) Validate ¶
func (m *UpdateOrganizationRequest) Validate() error
Validate checks the field values on UpdateOrganizationRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type UpdateOrganizationRequestValidationError ¶
type UpdateOrganizationRequestValidationError struct {
// contains filtered or unexported fields
}
UpdateOrganizationRequestValidationError is the validation error returned by UpdateOrganizationRequest.Validate if the designated constraints aren't met.
func (UpdateOrganizationRequestValidationError) Cause ¶
func (e UpdateOrganizationRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateOrganizationRequestValidationError) Error ¶
func (e UpdateOrganizationRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateOrganizationRequestValidationError) ErrorName ¶
func (e UpdateOrganizationRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateOrganizationRequestValidationError) Field ¶
func (e UpdateOrganizationRequestValidationError) Field() string
Field function returns field value.
func (UpdateOrganizationRequestValidationError) Key ¶
func (e UpdateOrganizationRequestValidationError) Key() bool
Key function returns key value.
func (UpdateOrganizationRequestValidationError) Reason ¶
func (e UpdateOrganizationRequestValidationError) Reason() string
Reason function returns reason value.
type UpdateOrganizationResponse ¶
type UpdateOrganizationResponse struct {
// contains filtered or unexported fields
}
Response message for rpc `UpdateOrganization`.
func (*UpdateOrganizationResponse) Descriptor
deprecated
func (*UpdateOrganizationResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateOrganizationResponse.ProtoReflect.Descriptor instead.
func (*UpdateOrganizationResponse) ProtoMessage ¶
func (*UpdateOrganizationResponse) ProtoMessage()
func (*UpdateOrganizationResponse) ProtoReflect ¶ added in v0.8.4
func (x *UpdateOrganizationResponse) ProtoReflect() protoreflect.Message
func (*UpdateOrganizationResponse) Reset ¶
func (x *UpdateOrganizationResponse) Reset()
func (*UpdateOrganizationResponse) String ¶
func (x *UpdateOrganizationResponse) String() string
func (*UpdateOrganizationResponse) Validate ¶
func (m *UpdateOrganizationResponse) Validate() error
Validate checks the field values on UpdateOrganizationResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type UpdateOrganizationResponseValidationError ¶
type UpdateOrganizationResponseValidationError struct {
// contains filtered or unexported fields
}
UpdateOrganizationResponseValidationError is the validation error returned by UpdateOrganizationResponse.Validate if the designated constraints aren't met.
func (UpdateOrganizationResponseValidationError) Cause ¶
func (e UpdateOrganizationResponseValidationError) Cause() error
Cause function returns cause value.
func (UpdateOrganizationResponseValidationError) Error ¶
func (e UpdateOrganizationResponseValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateOrganizationResponseValidationError) ErrorName ¶
func (e UpdateOrganizationResponseValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateOrganizationResponseValidationError) Field ¶
func (e UpdateOrganizationResponseValidationError) Field() string
Field function returns field value.
func (UpdateOrganizationResponseValidationError) Key ¶
func (e UpdateOrganizationResponseValidationError) Key() bool
Key function returns key value.
func (UpdateOrganizationResponseValidationError) Reason ¶
func (e UpdateOrganizationResponseValidationError) Reason() string
Reason function returns reason value.