Documentation ¶
Overview ¶
Package social_v1beta is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterInvitationServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterInvitationServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client InvitationServiceClient) error
- func RegisterInvitationServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterInvitationServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server InvitationServiceServer) error
- func RegisterInvitationServiceServer(s grpc.ServiceRegistrar, srv InvitationServiceServer)
- type CreateInvitationRequest
- func (*CreateInvitationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateInvitationRequest) GetChannelId() *wrapperspb.StringValue
- func (x *CreateInvitationRequest) GetInviteeId() string
- func (x *CreateInvitationRequest) GetInviterId() string
- func (*CreateInvitationRequest) ProtoMessage()
- func (x *CreateInvitationRequest) ProtoReflect() protoreflect.Message
- func (x *CreateInvitationRequest) Reset()
- func (x *CreateInvitationRequest) String() string
- func (m *CreateInvitationRequest) Validate() error
- func (m *CreateInvitationRequest) ValidateAll() error
- type CreateInvitationRequestMultiError
- type CreateInvitationRequestValidationError
- func (e CreateInvitationRequestValidationError) Cause() error
- func (e CreateInvitationRequestValidationError) Error() string
- func (e CreateInvitationRequestValidationError) ErrorName() string
- func (e CreateInvitationRequestValidationError) Field() string
- func (e CreateInvitationRequestValidationError) Key() bool
- func (e CreateInvitationRequestValidationError) Reason() string
- type CreateInvitationResponse
- func (*CreateInvitationResponse) Descriptor() ([]byte, []int)deprecated
- func (*CreateInvitationResponse) ProtoMessage()
- func (x *CreateInvitationResponse) ProtoReflect() protoreflect.Message
- func (x *CreateInvitationResponse) Reset()
- func (x *CreateInvitationResponse) String() string
- func (m *CreateInvitationResponse) Validate() error
- func (m *CreateInvitationResponse) ValidateAll() error
- type CreateInvitationResponseMultiError
- type CreateInvitationResponseValidationError
- func (e CreateInvitationResponseValidationError) Cause() error
- func (e CreateInvitationResponseValidationError) Error() string
- func (e CreateInvitationResponseValidationError) ErrorName() string
- func (e CreateInvitationResponseValidationError) Field() string
- func (e CreateInvitationResponseValidationError) Key() bool
- func (e CreateInvitationResponseValidationError) Reason() string
- type Invitation
- func (*Invitation) Descriptor() ([]byte, []int)deprecated
- func (x *Invitation) GetChannelId() *wrapperspb.StringValue
- func (x *Invitation) GetCreatedAt() *timestamppb.Timestamp
- func (x *Invitation) GetInviteeId() string
- func (x *Invitation) GetInviterId() string
- func (*Invitation) ProtoMessage()
- func (x *Invitation) ProtoReflect() protoreflect.Message
- func (x *Invitation) Reset()
- func (x *Invitation) String() string
- func (m *Invitation) Validate() error
- func (m *Invitation) ValidateAll() error
- type InvitationMultiError
- type InvitationServiceClient
- type InvitationServiceServer
- type InvitationValidationError
- type ListInvitationsRequest
- func (*ListInvitationsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListInvitationsRequest) GetPage() int32
- func (x *ListInvitationsRequest) GetSize() int32
- func (x *ListInvitationsRequest) GetSort() string
- func (*ListInvitationsRequest) ProtoMessage()
- func (x *ListInvitationsRequest) ProtoReflect() protoreflect.Message
- func (x *ListInvitationsRequest) Reset()
- func (x *ListInvitationsRequest) String() string
- func (m *ListInvitationsRequest) Validate() error
- func (m *ListInvitationsRequest) ValidateAll() error
- type ListInvitationsRequestMultiError
- type ListInvitationsRequestValidationError
- func (e ListInvitationsRequestValidationError) Cause() error
- func (e ListInvitationsRequestValidationError) Error() string
- func (e ListInvitationsRequestValidationError) ErrorName() string
- func (e ListInvitationsRequestValidationError) Field() string
- func (e ListInvitationsRequestValidationError) Key() bool
- func (e ListInvitationsRequestValidationError) Reason() string
- type ListInvitationsResponse
- func (*ListInvitationsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListInvitationsResponse) GetItems() []*Invitation
- func (x *ListInvitationsResponse) GetPage() int32
- func (x *ListInvitationsResponse) GetSize() int32
- func (x *ListInvitationsResponse) GetTotal() int64
- func (*ListInvitationsResponse) ProtoMessage()
- func (x *ListInvitationsResponse) ProtoReflect() protoreflect.Message
- func (x *ListInvitationsResponse) Reset()
- func (x *ListInvitationsResponse) String() string
- func (m *ListInvitationsResponse) Validate() error
- func (m *ListInvitationsResponse) ValidateAll() error
- type ListInvitationsResponseMultiError
- type ListInvitationsResponseValidationError
- func (e ListInvitationsResponseValidationError) Cause() error
- func (e ListInvitationsResponseValidationError) Error() string
- func (e ListInvitationsResponseValidationError) ErrorName() string
- func (e ListInvitationsResponseValidationError) Field() string
- func (e ListInvitationsResponseValidationError) Key() bool
- func (e ListInvitationsResponseValidationError) Reason() string
- type Membership
- func (*Membership) Descriptor() ([]byte, []int)deprecated
- func (x *Membership) GetLevel() int32
- func (x *Membership) GetUserId() string
- func (x *Membership) GetValue() int64
- func (*Membership) ProtoMessage()
- func (x *Membership) ProtoReflect() protoreflect.Message
- func (x *Membership) Reset()
- func (x *Membership) String() string
- func (m *Membership) Validate() error
- func (m *Membership) ValidateAll() error
- type MembershipMultiError
- type MembershipValidationError
- type Profile
- func (*Profile) Descriptor() ([]byte, []int)deprecated
- func (x *Profile) GetAvatarUrl() *wrapperspb.StringValue
- func (x *Profile) GetBirthdate() *dateonly.DateOnly
- func (x *Profile) GetDisplayName() *wrapperspb.StringValue
- func (x *Profile) GetGender() gender.Gender
- func (x *Profile) GetIntroduction() *wrapperspb.StringValue
- func (x *Profile) GetUserId() string
- func (*Profile) ProtoMessage()
- func (x *Profile) ProtoReflect() protoreflect.Message
- func (x *Profile) Reset()
- func (x *Profile) String() string
- func (m *Profile) Validate() error
- func (m *Profile) ValidateAll() error
- type ProfileMultiError
- type ProfileValidationError
- type UnimplementedInvitationServiceServer
- type UnsafeInvitationServiceServer
Constants ¶
const ( InvitationService_CreateInvitation_FullMethodName = "/gommerce.social.v1beta.InvitationService/CreateInvitation" InvitationService_ListInvitations_FullMethodName = "/gommerce.social.v1beta.InvitationService/ListInvitations" )
Variables ¶
var InvitationService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "gommerce.social.v1beta.InvitationService", HandlerType: (*InvitationServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateInvitation", Handler: _InvitationService_CreateInvitation_Handler, }, { MethodName: "ListInvitations", Handler: _InvitationService_ListInvitations_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "gommerce/social/v1beta/invitations.proto", }
InvitationService_ServiceDesc is the grpc.ServiceDesc for InvitationService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterInvitationServiceHandler ¶
func RegisterInvitationServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterInvitationServiceHandler registers the http handlers for service InvitationService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterInvitationServiceHandlerClient ¶
func RegisterInvitationServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client InvitationServiceClient) error
RegisterInvitationServiceHandlerClient registers the http handlers for service InvitationService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "InvitationServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "InvitationServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "InvitationServiceClient" to call the correct interceptors. This client ignores the HTTP middlewares.
func RegisterInvitationServiceHandlerFromEndpoint ¶
func RegisterInvitationServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterInvitationServiceHandlerFromEndpoint is same as RegisterInvitationServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterInvitationServiceHandlerServer ¶
func RegisterInvitationServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server InvitationServiceServer) error
RegisterInvitationServiceHandlerServer registers the http handlers for service InvitationService to "mux". UnaryRPC :call InvitationServiceServer 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 RegisterInvitationServiceHandlerFromEndpoint instead. GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call.
func RegisterInvitationServiceServer ¶
func RegisterInvitationServiceServer(s grpc.ServiceRegistrar, srv InvitationServiceServer)
Types ¶
type CreateInvitationRequest ¶
type CreateInvitationRequest struct { InviterId string `protobuf:"bytes,1,opt,name=inviter_id,json=inviterId,proto3" json:"inviter_id,omitempty"` InviteeId string `protobuf:"bytes,2,opt,name=invitee_id,json=inviteeId,proto3" json:"invitee_id,omitempty"` ChannelId *wrapperspb.StringValue `protobuf:"bytes,3,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` // contains filtered or unexported fields }
func (*CreateInvitationRequest) Descriptor
deprecated
func (*CreateInvitationRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateInvitationRequest.ProtoReflect.Descriptor instead.
func (*CreateInvitationRequest) GetChannelId ¶
func (x *CreateInvitationRequest) GetChannelId() *wrapperspb.StringValue
func (*CreateInvitationRequest) GetInviteeId ¶
func (x *CreateInvitationRequest) GetInviteeId() string
func (*CreateInvitationRequest) GetInviterId ¶
func (x *CreateInvitationRequest) GetInviterId() string
func (*CreateInvitationRequest) ProtoMessage ¶
func (*CreateInvitationRequest) ProtoMessage()
func (*CreateInvitationRequest) ProtoReflect ¶
func (x *CreateInvitationRequest) ProtoReflect() protoreflect.Message
func (*CreateInvitationRequest) Reset ¶
func (x *CreateInvitationRequest) Reset()
func (*CreateInvitationRequest) String ¶
func (x *CreateInvitationRequest) String() string
func (*CreateInvitationRequest) Validate ¶
func (m *CreateInvitationRequest) Validate() error
Validate checks the field values on CreateInvitationRequest 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 (*CreateInvitationRequest) ValidateAll ¶
func (m *CreateInvitationRequest) ValidateAll() error
ValidateAll checks the field values on CreateInvitationRequest 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 CreateInvitationRequestMultiError, or nil if none found.
type CreateInvitationRequestMultiError ¶
type CreateInvitationRequestMultiError []error
CreateInvitationRequestMultiError is an error wrapping multiple validation errors returned by CreateInvitationRequest.ValidateAll() if the designated constraints aren't met.
func (CreateInvitationRequestMultiError) AllErrors ¶
func (m CreateInvitationRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateInvitationRequestMultiError) Error ¶
func (m CreateInvitationRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateInvitationRequestValidationError ¶
type CreateInvitationRequestValidationError struct {
// contains filtered or unexported fields
}
CreateInvitationRequestValidationError is the validation error returned by CreateInvitationRequest.Validate if the designated constraints aren't met.
func (CreateInvitationRequestValidationError) Cause ¶
func (e CreateInvitationRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateInvitationRequestValidationError) Error ¶
func (e CreateInvitationRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateInvitationRequestValidationError) ErrorName ¶
func (e CreateInvitationRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateInvitationRequestValidationError) Field ¶
func (e CreateInvitationRequestValidationError) Field() string
Field function returns field value.
func (CreateInvitationRequestValidationError) Key ¶
func (e CreateInvitationRequestValidationError) Key() bool
Key function returns key value.
func (CreateInvitationRequestValidationError) Reason ¶
func (e CreateInvitationRequestValidationError) Reason() string
Reason function returns reason value.
type CreateInvitationResponse ¶
type CreateInvitationResponse struct {
// contains filtered or unexported fields
}
func (*CreateInvitationResponse) Descriptor
deprecated
func (*CreateInvitationResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateInvitationResponse.ProtoReflect.Descriptor instead.
func (*CreateInvitationResponse) ProtoMessage ¶
func (*CreateInvitationResponse) ProtoMessage()
func (*CreateInvitationResponse) ProtoReflect ¶
func (x *CreateInvitationResponse) ProtoReflect() protoreflect.Message
func (*CreateInvitationResponse) Reset ¶
func (x *CreateInvitationResponse) Reset()
func (*CreateInvitationResponse) String ¶
func (x *CreateInvitationResponse) String() string
func (*CreateInvitationResponse) Validate ¶
func (m *CreateInvitationResponse) Validate() error
Validate checks the field values on CreateInvitationResponse 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 (*CreateInvitationResponse) ValidateAll ¶
func (m *CreateInvitationResponse) ValidateAll() error
ValidateAll checks the field values on CreateInvitationResponse 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 CreateInvitationResponseMultiError, or nil if none found.
type CreateInvitationResponseMultiError ¶
type CreateInvitationResponseMultiError []error
CreateInvitationResponseMultiError is an error wrapping multiple validation errors returned by CreateInvitationResponse.ValidateAll() if the designated constraints aren't met.
func (CreateInvitationResponseMultiError) AllErrors ¶
func (m CreateInvitationResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateInvitationResponseMultiError) Error ¶
func (m CreateInvitationResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateInvitationResponseValidationError ¶
type CreateInvitationResponseValidationError struct {
// contains filtered or unexported fields
}
CreateInvitationResponseValidationError is the validation error returned by CreateInvitationResponse.Validate if the designated constraints aren't met.
func (CreateInvitationResponseValidationError) Cause ¶
func (e CreateInvitationResponseValidationError) Cause() error
Cause function returns cause value.
func (CreateInvitationResponseValidationError) Error ¶
func (e CreateInvitationResponseValidationError) Error() string
Error satisfies the builtin error interface
func (CreateInvitationResponseValidationError) ErrorName ¶
func (e CreateInvitationResponseValidationError) ErrorName() string
ErrorName returns error name.
func (CreateInvitationResponseValidationError) Field ¶
func (e CreateInvitationResponseValidationError) Field() string
Field function returns field value.
func (CreateInvitationResponseValidationError) Key ¶
func (e CreateInvitationResponseValidationError) Key() bool
Key function returns key value.
func (CreateInvitationResponseValidationError) Reason ¶
func (e CreateInvitationResponseValidationError) Reason() string
Reason function returns reason value.
type Invitation ¶
type Invitation struct { InviterId string `protobuf:"bytes,1,opt,name=inviter_id,json=inviterId,proto3" json:"inviter_id,omitempty"` InviteeId string `protobuf:"bytes,2,opt,name=invitee_id,json=inviteeId,proto3" json:"invitee_id,omitempty"` ChannelId *wrapperspb.StringValue `protobuf:"bytes,3,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // contains filtered or unexported fields }
func (*Invitation) Descriptor
deprecated
func (*Invitation) Descriptor() ([]byte, []int)
Deprecated: Use Invitation.ProtoReflect.Descriptor instead.
func (*Invitation) GetChannelId ¶
func (x *Invitation) GetChannelId() *wrapperspb.StringValue
func (*Invitation) GetCreatedAt ¶
func (x *Invitation) GetCreatedAt() *timestamppb.Timestamp
func (*Invitation) GetInviteeId ¶
func (x *Invitation) GetInviteeId() string
func (*Invitation) GetInviterId ¶
func (x *Invitation) GetInviterId() string
func (*Invitation) ProtoMessage ¶
func (*Invitation) ProtoMessage()
func (*Invitation) ProtoReflect ¶
func (x *Invitation) ProtoReflect() protoreflect.Message
func (*Invitation) Reset ¶
func (x *Invitation) Reset()
func (*Invitation) String ¶
func (x *Invitation) String() string
func (*Invitation) Validate ¶
func (m *Invitation) Validate() error
Validate checks the field values on Invitation 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 (*Invitation) ValidateAll ¶
func (m *Invitation) ValidateAll() error
ValidateAll checks the field values on Invitation 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 InvitationMultiError, or nil if none found.
type InvitationMultiError ¶
type InvitationMultiError []error
InvitationMultiError is an error wrapping multiple validation errors returned by Invitation.ValidateAll() if the designated constraints aren't met.
func (InvitationMultiError) AllErrors ¶
func (m InvitationMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (InvitationMultiError) Error ¶
func (m InvitationMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type InvitationServiceClient ¶
type InvitationServiceClient interface { CreateInvitation(ctx context.Context, in *CreateInvitationRequest, opts ...grpc.CallOption) (*CreateInvitationResponse, error) ListInvitations(ctx context.Context, in *ListInvitationsRequest, opts ...grpc.CallOption) (*ListInvitationsResponse, error) }
InvitationServiceClient is the client API for InvitationService 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 NewInvitationServiceClient ¶
func NewInvitationServiceClient(cc grpc.ClientConnInterface) InvitationServiceClient
type InvitationServiceServer ¶
type InvitationServiceServer interface { CreateInvitation(context.Context, *CreateInvitationRequest) (*CreateInvitationResponse, error) ListInvitations(context.Context, *ListInvitationsRequest) (*ListInvitationsResponse, error) // contains filtered or unexported methods }
InvitationServiceServer is the server API for InvitationService service. All implementations must embed UnimplementedInvitationServiceServer for forward compatibility.
type InvitationValidationError ¶
type InvitationValidationError struct {
// contains filtered or unexported fields
}
InvitationValidationError is the validation error returned by Invitation.Validate if the designated constraints aren't met.
func (InvitationValidationError) Cause ¶
func (e InvitationValidationError) Cause() error
Cause function returns cause value.
func (InvitationValidationError) Error ¶
func (e InvitationValidationError) Error() string
Error satisfies the builtin error interface
func (InvitationValidationError) ErrorName ¶
func (e InvitationValidationError) ErrorName() string
ErrorName returns error name.
func (InvitationValidationError) Field ¶
func (e InvitationValidationError) Field() string
Field function returns field value.
func (InvitationValidationError) Key ¶
func (e InvitationValidationError) Key() bool
Key function returns key value.
func (InvitationValidationError) Reason ¶
func (e InvitationValidationError) Reason() string
Reason function returns reason value.
type ListInvitationsRequest ¶
type ListInvitationsRequest struct { Page int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` Size int32 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` Sort string `protobuf:"bytes,3,opt,name=sort,proto3" json:"sort,omitempty"` // contains filtered or unexported fields }
func (*ListInvitationsRequest) Descriptor
deprecated
func (*ListInvitationsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListInvitationsRequest.ProtoReflect.Descriptor instead.
func (*ListInvitationsRequest) GetPage ¶
func (x *ListInvitationsRequest) GetPage() int32
func (*ListInvitationsRequest) GetSize ¶
func (x *ListInvitationsRequest) GetSize() int32
func (*ListInvitationsRequest) GetSort ¶
func (x *ListInvitationsRequest) GetSort() string
func (*ListInvitationsRequest) ProtoMessage ¶
func (*ListInvitationsRequest) ProtoMessage()
func (*ListInvitationsRequest) ProtoReflect ¶
func (x *ListInvitationsRequest) ProtoReflect() protoreflect.Message
func (*ListInvitationsRequest) Reset ¶
func (x *ListInvitationsRequest) Reset()
func (*ListInvitationsRequest) String ¶
func (x *ListInvitationsRequest) String() string
func (*ListInvitationsRequest) Validate ¶
func (m *ListInvitationsRequest) Validate() error
Validate checks the field values on ListInvitationsRequest 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 (*ListInvitationsRequest) ValidateAll ¶
func (m *ListInvitationsRequest) ValidateAll() error
ValidateAll checks the field values on ListInvitationsRequest 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 ListInvitationsRequestMultiError, or nil if none found.
type ListInvitationsRequestMultiError ¶
type ListInvitationsRequestMultiError []error
ListInvitationsRequestMultiError is an error wrapping multiple validation errors returned by ListInvitationsRequest.ValidateAll() if the designated constraints aren't met.
func (ListInvitationsRequestMultiError) AllErrors ¶
func (m ListInvitationsRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListInvitationsRequestMultiError) Error ¶
func (m ListInvitationsRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListInvitationsRequestValidationError ¶
type ListInvitationsRequestValidationError struct {
// contains filtered or unexported fields
}
ListInvitationsRequestValidationError is the validation error returned by ListInvitationsRequest.Validate if the designated constraints aren't met.
func (ListInvitationsRequestValidationError) Cause ¶
func (e ListInvitationsRequestValidationError) Cause() error
Cause function returns cause value.
func (ListInvitationsRequestValidationError) Error ¶
func (e ListInvitationsRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListInvitationsRequestValidationError) ErrorName ¶
func (e ListInvitationsRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListInvitationsRequestValidationError) Field ¶
func (e ListInvitationsRequestValidationError) Field() string
Field function returns field value.
func (ListInvitationsRequestValidationError) Key ¶
func (e ListInvitationsRequestValidationError) Key() bool
Key function returns key value.
func (ListInvitationsRequestValidationError) Reason ¶
func (e ListInvitationsRequestValidationError) Reason() string
Reason function returns reason value.
type ListInvitationsResponse ¶
type ListInvitationsResponse struct { Items []*Invitation `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` Page int32 `protobuf:"varint,2,opt,name=page,proto3" json:"page,omitempty"` Size int32 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"` Total int64 `protobuf:"varint,4,opt,name=total,proto3" json:"total,omitempty"` // contains filtered or unexported fields }
func (*ListInvitationsResponse) Descriptor
deprecated
func (*ListInvitationsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListInvitationsResponse.ProtoReflect.Descriptor instead.
func (*ListInvitationsResponse) GetItems ¶
func (x *ListInvitationsResponse) GetItems() []*Invitation
func (*ListInvitationsResponse) GetPage ¶
func (x *ListInvitationsResponse) GetPage() int32
func (*ListInvitationsResponse) GetSize ¶
func (x *ListInvitationsResponse) GetSize() int32
func (*ListInvitationsResponse) GetTotal ¶
func (x *ListInvitationsResponse) GetTotal() int64
func (*ListInvitationsResponse) ProtoMessage ¶
func (*ListInvitationsResponse) ProtoMessage()
func (*ListInvitationsResponse) ProtoReflect ¶
func (x *ListInvitationsResponse) ProtoReflect() protoreflect.Message
func (*ListInvitationsResponse) Reset ¶
func (x *ListInvitationsResponse) Reset()
func (*ListInvitationsResponse) String ¶
func (x *ListInvitationsResponse) String() string
func (*ListInvitationsResponse) Validate ¶
func (m *ListInvitationsResponse) Validate() error
Validate checks the field values on ListInvitationsResponse 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 (*ListInvitationsResponse) ValidateAll ¶
func (m *ListInvitationsResponse) ValidateAll() error
ValidateAll checks the field values on ListInvitationsResponse 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 ListInvitationsResponseMultiError, or nil if none found.
type ListInvitationsResponseMultiError ¶
type ListInvitationsResponseMultiError []error
ListInvitationsResponseMultiError is an error wrapping multiple validation errors returned by ListInvitationsResponse.ValidateAll() if the designated constraints aren't met.
func (ListInvitationsResponseMultiError) AllErrors ¶
func (m ListInvitationsResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListInvitationsResponseMultiError) Error ¶
func (m ListInvitationsResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListInvitationsResponseValidationError ¶
type ListInvitationsResponseValidationError struct {
// contains filtered or unexported fields
}
ListInvitationsResponseValidationError is the validation error returned by ListInvitationsResponse.Validate if the designated constraints aren't met.
func (ListInvitationsResponseValidationError) Cause ¶
func (e ListInvitationsResponseValidationError) Cause() error
Cause function returns cause value.
func (ListInvitationsResponseValidationError) Error ¶
func (e ListInvitationsResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ListInvitationsResponseValidationError) ErrorName ¶
func (e ListInvitationsResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ListInvitationsResponseValidationError) Field ¶
func (e ListInvitationsResponseValidationError) Field() string
Field function returns field value.
func (ListInvitationsResponseValidationError) Key ¶
func (e ListInvitationsResponseValidationError) Key() bool
Key function returns key value.
func (ListInvitationsResponseValidationError) Reason ¶
func (e ListInvitationsResponseValidationError) Reason() string
Reason function returns reason value.
type Membership ¶
type Membership struct { UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Level int32 `protobuf:"varint,2,opt,name=level,proto3" json:"level,omitempty"` Value int64 `protobuf:"varint,3,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*Membership) Descriptor
deprecated
func (*Membership) Descriptor() ([]byte, []int)
Deprecated: Use Membership.ProtoReflect.Descriptor instead.
func (*Membership) GetLevel ¶
func (x *Membership) GetLevel() int32
func (*Membership) GetUserId ¶
func (x *Membership) GetUserId() string
func (*Membership) GetValue ¶
func (x *Membership) GetValue() int64
func (*Membership) ProtoMessage ¶
func (*Membership) ProtoMessage()
func (*Membership) ProtoReflect ¶
func (x *Membership) ProtoReflect() protoreflect.Message
func (*Membership) Reset ¶
func (x *Membership) Reset()
func (*Membership) String ¶
func (x *Membership) String() string
func (*Membership) Validate ¶
func (m *Membership) Validate() error
Validate checks the field values on Membership 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 (*Membership) ValidateAll ¶
func (m *Membership) ValidateAll() error
ValidateAll checks the field values on Membership 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 MembershipMultiError, or nil if none found.
type MembershipMultiError ¶
type MembershipMultiError []error
MembershipMultiError is an error wrapping multiple validation errors returned by Membership.ValidateAll() if the designated constraints aren't met.
func (MembershipMultiError) AllErrors ¶
func (m MembershipMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (MembershipMultiError) Error ¶
func (m MembershipMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type MembershipValidationError ¶
type MembershipValidationError struct {
// contains filtered or unexported fields
}
MembershipValidationError is the validation error returned by Membership.Validate if the designated constraints aren't met.
func (MembershipValidationError) Cause ¶
func (e MembershipValidationError) Cause() error
Cause function returns cause value.
func (MembershipValidationError) Error ¶
func (e MembershipValidationError) Error() string
Error satisfies the builtin error interface
func (MembershipValidationError) ErrorName ¶
func (e MembershipValidationError) ErrorName() string
ErrorName returns error name.
func (MembershipValidationError) Field ¶
func (e MembershipValidationError) Field() string
Field function returns field value.
func (MembershipValidationError) Key ¶
func (e MembershipValidationError) Key() bool
Key function returns key value.
func (MembershipValidationError) Reason ¶
func (e MembershipValidationError) Reason() string
Reason function returns reason value.
type Profile ¶
type Profile struct { UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` DisplayName *wrapperspb.StringValue `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` AvatarUrl *wrapperspb.StringValue `protobuf:"bytes,3,opt,name=avatar_url,json=avatarUrl,proto3" json:"avatar_url,omitempty"` Gender gender.Gender `protobuf:"varint,4,opt,name=gender,proto3,enum=gommerce.types.v1.Gender" json:"gender,omitempty"` Birthdate *dateonly.DateOnly `protobuf:"bytes,5,opt,name=birthdate,proto3" json:"birthdate,omitempty"` Introduction *wrapperspb.StringValue `protobuf:"bytes,6,opt,name=introduction,proto3" json:"introduction,omitempty"` // contains filtered or unexported fields }
func (*Profile) Descriptor
deprecated
func (*Profile) GetAvatarUrl ¶
func (x *Profile) GetAvatarUrl() *wrapperspb.StringValue
func (*Profile) GetBirthdate ¶
func (*Profile) GetDisplayName ¶
func (x *Profile) GetDisplayName() *wrapperspb.StringValue
func (*Profile) GetIntroduction ¶
func (x *Profile) GetIntroduction() *wrapperspb.StringValue
func (*Profile) ProtoMessage ¶
func (*Profile) ProtoMessage()
func (*Profile) ProtoReflect ¶
func (x *Profile) ProtoReflect() protoreflect.Message
func (*Profile) Validate ¶
Validate checks the field values on Profile 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 (*Profile) ValidateAll ¶
ValidateAll checks the field values on Profile 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 ProfileMultiError, or nil if none found.
type ProfileMultiError ¶
type ProfileMultiError []error
ProfileMultiError is an error wrapping multiple validation errors returned by Profile.ValidateAll() if the designated constraints aren't met.
func (ProfileMultiError) AllErrors ¶
func (m ProfileMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ProfileMultiError) Error ¶
func (m ProfileMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ProfileValidationError ¶
type ProfileValidationError struct {
// contains filtered or unexported fields
}
ProfileValidationError is the validation error returned by Profile.Validate if the designated constraints aren't met.
func (ProfileValidationError) Cause ¶
func (e ProfileValidationError) Cause() error
Cause function returns cause value.
func (ProfileValidationError) Error ¶
func (e ProfileValidationError) Error() string
Error satisfies the builtin error interface
func (ProfileValidationError) ErrorName ¶
func (e ProfileValidationError) ErrorName() string
ErrorName returns error name.
func (ProfileValidationError) Field ¶
func (e ProfileValidationError) Field() string
Field function returns field value.
func (ProfileValidationError) Key ¶
func (e ProfileValidationError) Key() bool
Key function returns key value.
func (ProfileValidationError) Reason ¶
func (e ProfileValidationError) Reason() string
Reason function returns reason value.
type UnimplementedInvitationServiceServer ¶
type UnimplementedInvitationServiceServer struct{}
UnimplementedInvitationServiceServer 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.
func (UnimplementedInvitationServiceServer) CreateInvitation ¶
func (UnimplementedInvitationServiceServer) CreateInvitation(context.Context, *CreateInvitationRequest) (*CreateInvitationResponse, error)
func (UnimplementedInvitationServiceServer) ListInvitations ¶
func (UnimplementedInvitationServiceServer) ListInvitations(context.Context, *ListInvitationsRequest) (*ListInvitationsResponse, error)
type UnsafeInvitationServiceServer ¶
type UnsafeInvitationServiceServer interface {
// contains filtered or unexported methods
}
UnsafeInvitationServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to InvitationServiceServer will result in compilation errors.