eitan

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 21, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_account_proto protoreflect.FileDescriptor
View Source
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.

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) Descriptor() ([]byte, []int)

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

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

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string

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 (*GetCurrentUserProfileResponse) ProtoMessage

func (*GetCurrentUserProfileResponse) ProtoMessage()

func (*GetCurrentUserProfileResponse) ProtoReflect

func (*GetCurrentUserProfileResponse) Reset

func (x *GetCurrentUserProfileResponse) Reset()

func (*GetCurrentUserProfileResponse) 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) GetCurrentUserProfile

func (*UnimplementedAccountServiceServer) GetUserProfile

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

Jump to

Keyboard shortcuts

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