social_v1beta

package
v0.0.0-...-52ddc4d Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 31 Imported by: 0

Documentation

Overview

Package social_v1beta is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	InvitationService_CreateInvitation_FullMethodName = "/gommerce.social.v1beta.InvitationService/CreateInvitation"
	InvitationService_ListInvitations_FullMethodName  = "/gommerce.social.v1beta.InvitationService/ListInvitations"
)

Variables

View Source
var File_gommerce_social_v1beta_invitations_proto protoreflect.FileDescriptor
View Source
var File_gommerce_social_v1beta_memberships_proto protoreflect.FileDescriptor
View Source
var File_gommerce_social_v1beta_profiles_proto protoreflect.FileDescriptor
View Source
var File_gommerce_social_v1beta_social_proto protoreflect.FileDescriptor
View Source
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.

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.

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

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

Cause function returns cause value.

func (CreateInvitationRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateInvitationRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateInvitationRequestValidationError) Field

Field function returns field value.

func (CreateInvitationRequestValidationError) Key

Key function returns key value.

func (CreateInvitationRequestValidationError) Reason

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

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

Cause function returns cause value.

func (CreateInvitationResponseValidationError) Error

Error satisfies the builtin error interface

func (CreateInvitationResponseValidationError) ErrorName

ErrorName returns error name.

func (CreateInvitationResponseValidationError) Field

Field function returns field value.

func (CreateInvitationResponseValidationError) Key

Key function returns key value.

func (CreateInvitationResponseValidationError) Reason

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.

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

Error satisfies the builtin error interface

func (InvitationValidationError) ErrorName

func (e InvitationValidationError) ErrorName() string

ErrorName returns error name.

func (InvitationValidationError) Field

Field function returns field value.

func (InvitationValidationError) Key

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

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

Cause function returns cause value.

func (ListInvitationsRequestValidationError) Error

Error satisfies the builtin error interface

func (ListInvitationsRequestValidationError) ErrorName

ErrorName returns error name.

func (ListInvitationsRequestValidationError) Field

Field function returns field value.

func (ListInvitationsRequestValidationError) Key

Key function returns key value.

func (ListInvitationsRequestValidationError) Reason

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

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

Cause function returns cause value.

func (ListInvitationsResponseValidationError) Error

Error satisfies the builtin error interface

func (ListInvitationsResponseValidationError) ErrorName

ErrorName returns error name.

func (ListInvitationsResponseValidationError) Field

Field function returns field value.

func (ListInvitationsResponseValidationError) Key

Key function returns key value.

func (ListInvitationsResponseValidationError) Reason

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

Error satisfies the builtin error interface

func (MembershipValidationError) ErrorName

func (e MembershipValidationError) ErrorName() string

ErrorName returns error name.

func (MembershipValidationError) Field

Field function returns field value.

func (MembershipValidationError) Key

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    *date.Date              `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) Descriptor() ([]byte, []int)

Deprecated: Use Profile.ProtoReflect.Descriptor instead.

func (*Profile) GetAvatarUrl

func (x *Profile) GetAvatarUrl() *wrapperspb.StringValue

func (*Profile) GetBirthdate

func (x *Profile) GetBirthdate() *date.Date

func (*Profile) GetDisplayName

func (x *Profile) GetDisplayName() *wrapperspb.StringValue

func (*Profile) GetGender

func (x *Profile) GetGender() gender.Gender

func (*Profile) GetIntroduction

func (x *Profile) GetIntroduction() *wrapperspb.StringValue

func (*Profile) GetUserId

func (x *Profile) GetUserId() string

func (*Profile) ProtoMessage

func (*Profile) ProtoMessage()

func (*Profile) ProtoReflect

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

func (*Profile) Reset

func (x *Profile) Reset()

func (*Profile) String

func (x *Profile) String() string

func (*Profile) Validate

func (m *Profile) Validate() error

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

func (m *Profile) ValidateAll() error

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.

func (UnimplementedInvitationServiceServer) CreateInvitation

func (UnimplementedInvitationServiceServer) ListInvitations

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.

Jump to

Keyboard shortcuts

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