accountconnmanager

package
v0.0.0-...-2443a0a Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AccountConnectionManager_GetUser_FullMethodName         = "/emortal.grpc.account_conn_manager.AccountConnectionManager/GetUser"
	AccountConnectionManager_CreateOAuthLink_FullMethodName = "/emortal.grpc.account_conn_manager.AccountConnectionManager/CreateOAuthLink"
)

Variables

View Source
var (
	CreateOAuthLinkErrorResponse_Reason_name = map[int32]string{
		0: "INVALID_SOURCE_ID",
		1: "CONNECTION_ALREADY_EXISTS",
	}
	CreateOAuthLinkErrorResponse_Reason_value = map[string]int32{
		"INVALID_SOURCE_ID":         0,
		"CONNECTION_ALREADY_EXISTS": 1,
	}
)

Enum value maps for CreateOAuthLinkErrorResponse_Reason.

View Source
var AccountConnectionManager_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "emortal.grpc.account_conn_manager.AccountConnectionManager",
	HandlerType: (*AccountConnectionManagerServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetUser",
			Handler:    _AccountConnectionManager_GetUser_Handler,
		},
		{
			MethodName: "CreateOAuthLink",
			Handler:    _AccountConnectionManager_CreateOAuthLink_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "account_conn_manager/grpc.proto",
}

AccountConnectionManager_ServiceDesc is the grpc.ServiceDesc for AccountConnectionManager service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_account_conn_manager_grpc_proto protoreflect.FileDescriptor

Functions

func RegisterAccountConnectionManagerServer

func RegisterAccountConnectionManagerServer(s grpc.ServiceRegistrar, srv AccountConnectionManagerServer)

Types

type AccountConnectionManagerClient

type AccountConnectionManagerClient interface {
	GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*GetUserResponse, error)
	CreateOAuthLink(ctx context.Context, in *CreateOAuthLinkRequest, opts ...grpc.CallOption) (*CreateOAuthLinkResponse, error)
}

AccountConnectionManagerClient is the client API for AccountConnectionManager 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 AccountConnectionManagerServer

type AccountConnectionManagerServer interface {
	GetUser(context.Context, *GetUserRequest) (*GetUserResponse, error)
	CreateOAuthLink(context.Context, *CreateOAuthLinkRequest) (*CreateOAuthLinkResponse, error)
	// contains filtered or unexported methods
}

AccountConnectionManagerServer is the server API for AccountConnectionManager service. All implementations must embed UnimplementedAccountConnectionManagerServer for forward compatibility.

type CreateOAuthLinkErrorResponse

type CreateOAuthLinkErrorResponse struct {
	// contains filtered or unexported fields
}

func (*CreateOAuthLinkErrorResponse) Descriptor deprecated

func (*CreateOAuthLinkErrorResponse) Descriptor() ([]byte, []int)

Deprecated: Use CreateOAuthLinkErrorResponse.ProtoReflect.Descriptor instead.

func (*CreateOAuthLinkErrorResponse) ProtoMessage

func (*CreateOAuthLinkErrorResponse) ProtoMessage()

func (*CreateOAuthLinkErrorResponse) ProtoReflect

func (*CreateOAuthLinkErrorResponse) Reset

func (x *CreateOAuthLinkErrorResponse) Reset()

func (*CreateOAuthLinkErrorResponse) String

type CreateOAuthLinkErrorResponse_Reason

type CreateOAuthLinkErrorResponse_Reason int32
const (
	CreateOAuthLinkErrorResponse_INVALID_SOURCE_ID CreateOAuthLinkErrorResponse_Reason = 0
	// CONNECTION_ALREADY_EXISTS note this is only that this user already has this connection, we don't know the target conn ID yet.
	CreateOAuthLinkErrorResponse_CONNECTION_ALREADY_EXISTS CreateOAuthLinkErrorResponse_Reason = 1
)

func (CreateOAuthLinkErrorResponse_Reason) Descriptor

func (CreateOAuthLinkErrorResponse_Reason) Enum

func (CreateOAuthLinkErrorResponse_Reason) EnumDescriptor deprecated

func (CreateOAuthLinkErrorResponse_Reason) EnumDescriptor() ([]byte, []int)

Deprecated: Use CreateOAuthLinkErrorResponse_Reason.Descriptor instead.

func (CreateOAuthLinkErrorResponse_Reason) Number

func (CreateOAuthLinkErrorResponse_Reason) String

func (CreateOAuthLinkErrorResponse_Reason) Type

type CreateOAuthLinkRequest

type CreateOAuthLinkRequest struct {

	// Types that are assignable to SourceId:
	//
	//	*CreateOAuthLinkRequest_SourceMinecraftId
	//	*CreateOAuthLinkRequest_SourceDiscordId
	//	*CreateOAuthLinkRequest_SourceGithubId
	SourceId         isCreateOAuthLinkRequest_SourceId `protobuf_oneof:"source_id"`
	TargetConnection accountconnmanager.ConnectionType `` /* 165-byte string literal not displayed */
	// contains filtered or unexported fields
}

CreateOAuthLinkRequest requests an OAuth URL to link an account to another.

func (*CreateOAuthLinkRequest) Descriptor deprecated

func (*CreateOAuthLinkRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateOAuthLinkRequest.ProtoReflect.Descriptor instead.

func (*CreateOAuthLinkRequest) GetSourceDiscordId

func (x *CreateOAuthLinkRequest) GetSourceDiscordId() int64

func (*CreateOAuthLinkRequest) GetSourceGithubId

func (x *CreateOAuthLinkRequest) GetSourceGithubId() int64

func (*CreateOAuthLinkRequest) GetSourceId

func (m *CreateOAuthLinkRequest) GetSourceId() isCreateOAuthLinkRequest_SourceId

func (*CreateOAuthLinkRequest) GetSourceMinecraftId

func (x *CreateOAuthLinkRequest) GetSourceMinecraftId() string

func (*CreateOAuthLinkRequest) GetTargetConnection

func (x *CreateOAuthLinkRequest) GetTargetConnection() accountconnmanager.ConnectionType

func (*CreateOAuthLinkRequest) ProtoMessage

func (*CreateOAuthLinkRequest) ProtoMessage()

func (*CreateOAuthLinkRequest) ProtoReflect

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

func (*CreateOAuthLinkRequest) Reset

func (x *CreateOAuthLinkRequest) Reset()

func (*CreateOAuthLinkRequest) String

func (x *CreateOAuthLinkRequest) String() string

type CreateOAuthLinkRequest_SourceDiscordId

type CreateOAuthLinkRequest_SourceDiscordId struct {
	SourceDiscordId int64 `protobuf:"varint,2,opt,name=source_discord_id,json=sourceDiscordId,proto3,oneof"`
}

type CreateOAuthLinkRequest_SourceGithubId

type CreateOAuthLinkRequest_SourceGithubId struct {
	SourceGithubId int64 `protobuf:"varint,3,opt,name=source_github_id,json=sourceGithubId,proto3,oneof"`
}

type CreateOAuthLinkRequest_SourceMinecraftId

type CreateOAuthLinkRequest_SourceMinecraftId struct {
	SourceMinecraftId string `protobuf:"bytes,1,opt,name=source_minecraft_id,json=sourceMinecraftId,proto3,oneof"`
}

type CreateOAuthLinkResponse

type CreateOAuthLinkResponse struct {
	Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateOAuthLinkResponse) Descriptor deprecated

func (*CreateOAuthLinkResponse) Descriptor() ([]byte, []int)

Deprecated: Use CreateOAuthLinkResponse.ProtoReflect.Descriptor instead.

func (*CreateOAuthLinkResponse) GetUrl

func (x *CreateOAuthLinkResponse) GetUrl() string

func (*CreateOAuthLinkResponse) ProtoMessage

func (*CreateOAuthLinkResponse) ProtoMessage()

func (*CreateOAuthLinkResponse) ProtoReflect

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

func (*CreateOAuthLinkResponse) Reset

func (x *CreateOAuthLinkResponse) Reset()

func (*CreateOAuthLinkResponse) String

func (x *CreateOAuthLinkResponse) String() string

type GetUserRequest

type GetUserRequest struct {

	// Types that are assignable to Id:
	//
	//	*GetUserRequest_MinecraftId
	//	*GetUserRequest_DiscordId
	//	*GetUserRequest_GithubId
	Id isGetUserRequest_Id `protobuf_oneof:"id"`
	// contains filtered or unexported fields
}

func (*GetUserRequest) Descriptor deprecated

func (*GetUserRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetUserRequest.ProtoReflect.Descriptor instead.

func (*GetUserRequest) GetDiscordId

func (x *GetUserRequest) GetDiscordId() int64

func (*GetUserRequest) GetGithubId

func (x *GetUserRequest) GetGithubId() int64

func (*GetUserRequest) GetId

func (m *GetUserRequest) GetId() isGetUserRequest_Id

func (*GetUserRequest) GetMinecraftId

func (x *GetUserRequest) GetMinecraftId() string

func (*GetUserRequest) ProtoMessage

func (*GetUserRequest) ProtoMessage()

func (*GetUserRequest) ProtoReflect

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

func (*GetUserRequest) Reset

func (x *GetUserRequest) Reset()

func (*GetUserRequest) String

func (x *GetUserRequest) String() string

type GetUserRequest_DiscordId

type GetUserRequest_DiscordId struct {
	DiscordId int64 `protobuf:"varint,2,opt,name=discord_id,json=discordId,proto3,oneof"`
}

type GetUserRequest_GithubId

type GetUserRequest_GithubId struct {
	GithubId int64 `protobuf:"varint,3,opt,name=github_id,json=githubId,proto3,oneof"`
}

type GetUserRequest_MinecraftId

type GetUserRequest_MinecraftId struct {
	MinecraftId string `protobuf:"bytes,1,opt,name=minecraft_id,json=minecraftId,proto3,oneof"`
}

type GetUserResponse

type GetUserResponse struct {
	User *accountconnmanager.ConnectionUser `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserResponse) Descriptor deprecated

func (*GetUserResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetUserResponse.ProtoReflect.Descriptor instead.

func (*GetUserResponse) GetUser

func (*GetUserResponse) ProtoMessage

func (*GetUserResponse) ProtoMessage()

func (*GetUserResponse) ProtoReflect

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

func (*GetUserResponse) Reset

func (x *GetUserResponse) Reset()

func (*GetUserResponse) String

func (x *GetUserResponse) String() string

type UnimplementedAccountConnectionManagerServer

type UnimplementedAccountConnectionManagerServer struct{}

UnimplementedAccountConnectionManagerServer 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 (UnimplementedAccountConnectionManagerServer) GetUser

type UnsafeAccountConnectionManagerServer

type UnsafeAccountConnectionManagerServer interface {
	// contains filtered or unexported methods
}

UnsafeAccountConnectionManagerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AccountConnectionManagerServer will result in compilation errors.

Jump to

Keyboard shortcuts

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