Documentation ¶
Index ¶
- Variables
- func RegisterAccountServiceServer(s *grpc.Server, srv AccountServiceServer)
- type AccountServiceClient
- type AccountServiceServer
- type AuthenticateRequest
- func (*AuthenticateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AuthenticateRequest) GetSessionId() string
- func (*AuthenticateRequest) ProtoMessage()
- func (x *AuthenticateRequest) ProtoReflect() protoreflect.Message
- func (x *AuthenticateRequest) Reset()
- func (x *AuthenticateRequest) String() string
- type AuthenticateResponse
- func (*AuthenticateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AuthenticateResponse) GetUserProfile() *CurrentUserProfile
- func (*AuthenticateResponse) ProtoMessage()
- func (x *AuthenticateResponse) ProtoReflect() protoreflect.Message
- func (x *AuthenticateResponse) Reset()
- func (x *AuthenticateResponse) String() string
- type CurrentUserProfile
- func (*CurrentUserProfile) Descriptor() ([]byte, []int)deprecated
- func (x *CurrentUserProfile) GetDisplayName() string
- func (x *CurrentUserProfile) GetEmail() string
- func (x *CurrentUserProfile) GetScreenImgUrl() string
- func (x *CurrentUserProfile) GetUserId() string
- func (*CurrentUserProfile) ProtoMessage()
- func (x *CurrentUserProfile) ProtoReflect() protoreflect.Message
- func (x *CurrentUserProfile) Reset()
- func (x *CurrentUserProfile) String() string
- type Empty
- type GetCurrentUserProfileResponse
- func (*GetCurrentUserProfileResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetCurrentUserProfileResponse) GetUserProfile() *CurrentUserProfile
- func (*GetCurrentUserProfileResponse) ProtoMessage()
- func (x *GetCurrentUserProfileResponse) ProtoReflect() protoreflect.Message
- func (x *GetCurrentUserProfileResponse) Reset()
- func (x *GetCurrentUserProfileResponse) String() string
- type GetUserProfileRequest
- func (*GetUserProfileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserProfileRequest) GetUserId() string
- func (*GetUserProfileRequest) ProtoMessage()
- func (x *GetUserProfileRequest) ProtoReflect() protoreflect.Message
- func (x *GetUserProfileRequest) Reset()
- func (x *GetUserProfileRequest) String() string
- type GetUserProfileResponse
- func (*GetUserProfileResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserProfileResponse) GetUserProfile() *UserProfile
- func (*GetUserProfileResponse) ProtoMessage()
- func (x *GetUserProfileResponse) ProtoReflect() protoreflect.Message
- func (x *GetUserProfileResponse) Reset()
- func (x *GetUserProfileResponse) String() string
- type UnimplementedAccountServiceServer
- func (*UnimplementedAccountServiceServer) Authenticate(context.Context, *AuthenticateRequest) (*AuthenticateResponse, error)
- func (*UnimplementedAccountServiceServer) GetCurrentUserProfile(context.Context, *Empty) (*GetCurrentUserProfileResponse, error)
- func (*UnimplementedAccountServiceServer) GetUserProfile(context.Context, *GetUserProfileRequest) (*GetUserProfileResponse, error)
- type UserProfile
- func (*UserProfile) Descriptor() ([]byte, []int)deprecated
- func (x *UserProfile) GetDisplayName() string
- func (x *UserProfile) GetScreenImgUrl() string
- func (x *UserProfile) GetUserId() string
- func (*UserProfile) ProtoMessage()
- func (x *UserProfile) ProtoReflect() protoreflect.Message
- func (x *UserProfile) Reset()
- func (x *UserProfile) String() string
- type UserRegisteredEvent
- func (*UserRegisteredEvent) Descriptor() ([]byte, []int)deprecated
- func (x *UserRegisteredEvent) GetDisplayName() string
- func (x *UserRegisteredEvent) GetEmail() string
- func (x *UserRegisteredEvent) GetProvider() string
- func (x *UserRegisteredEvent) GetUserId() string
- func (*UserRegisteredEvent) ProtoMessage()
- func (x *UserRegisteredEvent) ProtoReflect() protoreflect.Message
- func (x *UserRegisteredEvent) Reset()
- func (x *UserRegisteredEvent) String() string
Constants ¶
This section is empty.
Variables ¶
var File_account_proto protoreflect.FileDescriptor
var File_common_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAccountServiceServer ¶
func RegisterAccountServiceServer(s *grpc.Server, srv AccountServiceServer)
Types ¶
type AccountServiceClient ¶
type AccountServiceClient interface { Authenticate(ctx context.Context, in *AuthenticateRequest, opts ...grpc.CallOption) (*AuthenticateResponse, error) GetCurrentUserProfile(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*GetCurrentUserProfileResponse, error) GetUserProfile(ctx context.Context, in *GetUserProfileRequest, opts ...grpc.CallOption) (*GetUserProfileResponse, error) }
AccountServiceClient is the client API for AccountService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAccountServiceClient ¶
func NewAccountServiceClient(cc grpc.ClientConnInterface) AccountServiceClient
type AccountServiceServer ¶
type AccountServiceServer interface { Authenticate(context.Context, *AuthenticateRequest) (*AuthenticateResponse, error) GetCurrentUserProfile(context.Context, *Empty) (*GetCurrentUserProfileResponse, error) GetUserProfile(context.Context, *GetUserProfileRequest) (*GetUserProfileResponse, error) }
AccountServiceServer is the server API for AccountService service.
type AuthenticateRequest ¶
type AuthenticateRequest struct { SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` // contains filtered or unexported fields }
func (*AuthenticateRequest) Descriptor
deprecated
func (*AuthenticateRequest) Descriptor() ([]byte, []int)
Deprecated: Use AuthenticateRequest.ProtoReflect.Descriptor instead.
func (*AuthenticateRequest) GetSessionId ¶
func (x *AuthenticateRequest) GetSessionId() string
func (*AuthenticateRequest) ProtoMessage ¶
func (*AuthenticateRequest) ProtoMessage()
func (*AuthenticateRequest) ProtoReflect ¶
func (x *AuthenticateRequest) ProtoReflect() protoreflect.Message
func (*AuthenticateRequest) Reset ¶
func (x *AuthenticateRequest) Reset()
func (*AuthenticateRequest) String ¶
func (x *AuthenticateRequest) String() string
type AuthenticateResponse ¶
type AuthenticateResponse struct { UserProfile *CurrentUserProfile `protobuf:"bytes,1,opt,name=user_profile,json=userProfile,proto3" json:"user_profile,omitempty"` // contains filtered or unexported fields }
func (*AuthenticateResponse) Descriptor
deprecated
func (*AuthenticateResponse) Descriptor() ([]byte, []int)
Deprecated: Use AuthenticateResponse.ProtoReflect.Descriptor instead.
func (*AuthenticateResponse) GetUserProfile ¶
func (x *AuthenticateResponse) GetUserProfile() *CurrentUserProfile
func (*AuthenticateResponse) ProtoMessage ¶
func (*AuthenticateResponse) ProtoMessage()
func (*AuthenticateResponse) ProtoReflect ¶
func (x *AuthenticateResponse) ProtoReflect() protoreflect.Message
func (*AuthenticateResponse) Reset ¶
func (x *AuthenticateResponse) Reset()
func (*AuthenticateResponse) String ¶
func (x *AuthenticateResponse) String() string
type CurrentUserProfile ¶
type CurrentUserProfile struct { UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` ScreenImgUrl *string `protobuf:"bytes,4,opt,name=screen_img_url,json=screenImgUrl,proto3,oneof" json:"screen_img_url,omitempty"` // contains filtered or unexported fields }
func (*CurrentUserProfile) Descriptor
deprecated
func (*CurrentUserProfile) Descriptor() ([]byte, []int)
Deprecated: Use CurrentUserProfile.ProtoReflect.Descriptor instead.
func (*CurrentUserProfile) GetDisplayName ¶
func (x *CurrentUserProfile) GetDisplayName() string
func (*CurrentUserProfile) GetEmail ¶
func (x *CurrentUserProfile) GetEmail() string
func (*CurrentUserProfile) GetScreenImgUrl ¶
func (x *CurrentUserProfile) GetScreenImgUrl() string
func (*CurrentUserProfile) GetUserId ¶
func (x *CurrentUserProfile) GetUserId() string
func (*CurrentUserProfile) ProtoMessage ¶
func (*CurrentUserProfile) ProtoMessage()
func (*CurrentUserProfile) ProtoReflect ¶
func (x *CurrentUserProfile) ProtoReflect() protoreflect.Message
func (*CurrentUserProfile) Reset ¶
func (x *CurrentUserProfile) Reset()
func (*CurrentUserProfile) String ¶
func (x *CurrentUserProfile) String() string
type Empty ¶
type Empty struct {
// contains filtered or unexported fields
}
func (*Empty) Descriptor
deprecated
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
type GetCurrentUserProfileResponse ¶
type GetCurrentUserProfileResponse struct { UserProfile *CurrentUserProfile `protobuf:"bytes,1,opt,name=user_profile,json=userProfile,proto3" json:"user_profile,omitempty"` // contains filtered or unexported fields }
func (*GetCurrentUserProfileResponse) Descriptor
deprecated
func (*GetCurrentUserProfileResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetCurrentUserProfileResponse.ProtoReflect.Descriptor instead.
func (*GetCurrentUserProfileResponse) GetUserProfile ¶
func (x *GetCurrentUserProfileResponse) GetUserProfile() *CurrentUserProfile
func (*GetCurrentUserProfileResponse) ProtoMessage ¶
func (*GetCurrentUserProfileResponse) ProtoMessage()
func (*GetCurrentUserProfileResponse) ProtoReflect ¶
func (x *GetCurrentUserProfileResponse) ProtoReflect() protoreflect.Message
func (*GetCurrentUserProfileResponse) Reset ¶
func (x *GetCurrentUserProfileResponse) Reset()
func (*GetCurrentUserProfileResponse) String ¶
func (x *GetCurrentUserProfileResponse) String() string
type GetUserProfileRequest ¶
type GetUserProfileRequest struct { UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
func (*GetUserProfileRequest) Descriptor
deprecated
func (*GetUserProfileRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetUserProfileRequest.ProtoReflect.Descriptor instead.
func (*GetUserProfileRequest) GetUserId ¶
func (x *GetUserProfileRequest) GetUserId() string
func (*GetUserProfileRequest) ProtoMessage ¶
func (*GetUserProfileRequest) ProtoMessage()
func (*GetUserProfileRequest) ProtoReflect ¶
func (x *GetUserProfileRequest) ProtoReflect() protoreflect.Message
func (*GetUserProfileRequest) Reset ¶
func (x *GetUserProfileRequest) Reset()
func (*GetUserProfileRequest) String ¶
func (x *GetUserProfileRequest) String() string
type GetUserProfileResponse ¶
type GetUserProfileResponse struct { UserProfile *UserProfile `protobuf:"bytes,1,opt,name=user_profile,json=userProfile,proto3" json:"user_profile,omitempty"` // contains filtered or unexported fields }
func (*GetUserProfileResponse) Descriptor
deprecated
func (*GetUserProfileResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetUserProfileResponse.ProtoReflect.Descriptor instead.
func (*GetUserProfileResponse) GetUserProfile ¶
func (x *GetUserProfileResponse) GetUserProfile() *UserProfile
func (*GetUserProfileResponse) ProtoMessage ¶
func (*GetUserProfileResponse) ProtoMessage()
func (*GetUserProfileResponse) ProtoReflect ¶
func (x *GetUserProfileResponse) ProtoReflect() protoreflect.Message
func (*GetUserProfileResponse) Reset ¶
func (x *GetUserProfileResponse) Reset()
func (*GetUserProfileResponse) String ¶
func (x *GetUserProfileResponse) String() string
type UnimplementedAccountServiceServer ¶
type UnimplementedAccountServiceServer struct { }
UnimplementedAccountServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedAccountServiceServer) Authenticate ¶
func (*UnimplementedAccountServiceServer) Authenticate(context.Context, *AuthenticateRequest) (*AuthenticateResponse, error)
func (*UnimplementedAccountServiceServer) GetCurrentUserProfile ¶
func (*UnimplementedAccountServiceServer) GetCurrentUserProfile(context.Context, *Empty) (*GetCurrentUserProfileResponse, error)
func (*UnimplementedAccountServiceServer) GetUserProfile ¶
func (*UnimplementedAccountServiceServer) GetUserProfile(context.Context, *GetUserProfileRequest) (*GetUserProfileResponse, error)
type UserProfile ¶
type UserProfile struct { UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` ScreenImgUrl *string `protobuf:"bytes,3,opt,name=screen_img_url,json=screenImgUrl,proto3,oneof" json:"screen_img_url,omitempty"` // contains filtered or unexported fields }
func (*UserProfile) Descriptor
deprecated
func (*UserProfile) Descriptor() ([]byte, []int)
Deprecated: Use UserProfile.ProtoReflect.Descriptor instead.
func (*UserProfile) GetDisplayName ¶
func (x *UserProfile) GetDisplayName() string
func (*UserProfile) GetScreenImgUrl ¶
func (x *UserProfile) GetScreenImgUrl() string
func (*UserProfile) GetUserId ¶
func (x *UserProfile) GetUserId() string
func (*UserProfile) ProtoMessage ¶
func (*UserProfile) ProtoMessage()
func (*UserProfile) ProtoReflect ¶
func (x *UserProfile) ProtoReflect() protoreflect.Message
func (*UserProfile) Reset ¶
func (x *UserProfile) Reset()
func (*UserProfile) String ¶
func (x *UserProfile) String() string
type UserRegisteredEvent ¶
type UserRegisteredEvent struct { UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Provider string `protobuf:"bytes,2,opt,name=provider,proto3" json:"provider,omitempty"` Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` DisplayName string `protobuf:"bytes,4,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` // contains filtered or unexported fields }
func (*UserRegisteredEvent) Descriptor
deprecated
func (*UserRegisteredEvent) Descriptor() ([]byte, []int)
Deprecated: Use UserRegisteredEvent.ProtoReflect.Descriptor instead.
func (*UserRegisteredEvent) GetDisplayName ¶
func (x *UserRegisteredEvent) GetDisplayName() string
func (*UserRegisteredEvent) GetEmail ¶
func (x *UserRegisteredEvent) GetEmail() string
func (*UserRegisteredEvent) GetProvider ¶
func (x *UserRegisteredEvent) GetProvider() string
func (*UserRegisteredEvent) GetUserId ¶
func (x *UserRegisteredEvent) GetUserId() string
func (*UserRegisteredEvent) ProtoMessage ¶
func (*UserRegisteredEvent) ProtoMessage()
func (*UserRegisteredEvent) ProtoReflect ¶
func (x *UserRegisteredEvent) ProtoReflect() protoreflect.Message
func (*UserRegisteredEvent) Reset ¶
func (x *UserRegisteredEvent) Reset()
func (*UserRegisteredEvent) String ¶
func (x *UserRegisteredEvent) String() string