apiconnect

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// GlobalKVSServiceGetV1Procedure is the fully-qualified name of the GlobalKVSService's GetV1 RPC.
	GlobalKVSServiceGetV1Procedure = "/api.GlobalKVSService/GetV1"
	// GlobalKVSServiceSetV1Procedure is the fully-qualified name of the GlobalKVSService's SetV1 RPC.
	GlobalKVSServiceSetV1Procedure = "/api.GlobalKVSService/SetV1"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// LeaderBoardServiceGetV1Procedure is the fully-qualified name of the LeaderBoardService's GetV1
	// RPC.
	LeaderBoardServiceGetV1Procedure = "/api.LeaderBoardService/GetV1"
	// LeaderBoardServiceSubmitScoreV1Procedure is the fully-qualified name of the LeaderBoardService's
	// SubmitScoreV1 RPC.
	LeaderBoardServiceSubmitScoreV1Procedure = "/api.LeaderBoardService/SubmitScoreV1"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// LobbyServiceSearchRoomsV1Procedure is the fully-qualified name of the LobbyService's
	// SearchRoomsV1 RPC.
	LobbyServiceSearchRoomsV1Procedure = "/api.LobbyService/SearchRoomsV1"
	// LobbyServiceCreateRoomV1Procedure is the fully-qualified name of the LobbyService's CreateRoomV1
	// RPC.
	LobbyServiceCreateRoomV1Procedure = "/api.LobbyService/CreateRoomV1"
	// LobbyServiceEditRoomV1Procedure is the fully-qualified name of the LobbyService's EditRoomV1 RPC.
	LobbyServiceEditRoomV1Procedure = "/api.LobbyService/EditRoomV1"
	// LobbyServiceDeleteRoomV1Procedure is the fully-qualified name of the LobbyService's DeleteRoomV1
	// RPC.
	LobbyServiceDeleteRoomV1Procedure = "/api.LobbyService/DeleteRoomV1"
	// LobbyServiceJoinRoomV1Procedure is the fully-qualified name of the LobbyService's JoinRoomV1 RPC.
	LobbyServiceJoinRoomV1Procedure = "/api.LobbyService/JoinRoomV1"
	// LobbyServiceLeaveRoomV1Procedure is the fully-qualified name of the LobbyService's LeaveRoomV1
	// RPC.
	LobbyServiceLeaveRoomV1Procedure = "/api.LobbyService/LeaveRoomV1"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// MasterDataServiceGetV1Procedure is the fully-qualified name of the MasterDataService's GetV1 RPC.
	MasterDataServiceGetV1Procedure = "/api.MasterDataService/GetV1"
	// MasterDataServiceGetRevisionV1Procedure is the fully-qualified name of the MasterDataService's
	// GetRevisionV1 RPC.
	MasterDataServiceGetRevisionV1Procedure = "/api.MasterDataService/GetRevisionV1"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// PrivateKVSServiceGetETagV1Procedure is the fully-qualified name of the PrivateKVSService's
	// GetETagV1 RPC.
	PrivateKVSServiceGetETagV1Procedure = "/api.PrivateKVSService/GetETagV1"
	// PrivateKVSServiceGetV1Procedure is the fully-qualified name of the PrivateKVSService's GetV1 RPC.
	PrivateKVSServiceGetV1Procedure = "/api.PrivateKVSService/GetV1"
	// PrivateKVSServiceSetV1Procedure is the fully-qualified name of the PrivateKVSService's SetV1 RPC.
	PrivateKVSServiceSetV1Procedure = "/api.PrivateKVSService/SetV1"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// UserServiceActivateV1Procedure is the fully-qualified name of the UserService's ActivateV1 RPC.
	UserServiceActivateV1Procedure = "/api.UserService/ActivateV1"
	// UserServiceSearchProfilesV1Procedure is the fully-qualified name of the UserService's
	// SearchProfilesV1 RPC.
	UserServiceSearchProfilesV1Procedure = "/api.UserService/SearchProfilesV1"
	// UserServiceEditProfileV1Procedure is the fully-qualified name of the UserService's EditProfileV1
	// RPC.
	UserServiceEditProfileV1Procedure = "/api.UserService/EditProfileV1"
	// UserServiceAccountDeleteV1Procedure is the fully-qualified name of the UserService's
	// AccountDeleteV1 RPC.
	UserServiceAccountDeleteV1Procedure = "/api.UserService/AccountDeleteV1"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// GlobalKVSServiceName is the fully-qualified name of the GlobalKVSService service.
	GlobalKVSServiceName = "api.GlobalKVSService"
)
View Source
const (
	// LeaderBoardServiceName is the fully-qualified name of the LeaderBoardService service.
	LeaderBoardServiceName = "api.LeaderBoardService"
)
View Source
const (
	// LobbyServiceName is the fully-qualified name of the LobbyService service.
	LobbyServiceName = "api.LobbyService"
)
View Source
const (
	// MasterDataServiceName is the fully-qualified name of the MasterDataService service.
	MasterDataServiceName = "api.MasterDataService"
)
View Source
const (
	// PrivateKVSServiceName is the fully-qualified name of the PrivateKVSService service.
	PrivateKVSServiceName = "api.PrivateKVSService"
)
View Source
const (
	// SessionServiceAuthorizeV1Procedure is the fully-qualified name of the SessionService's
	// AuthorizeV1 RPC.
	SessionServiceAuthorizeV1Procedure = "/api.SessionService/AuthorizeV1"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// SessionServiceName is the fully-qualified name of the SessionService service.
	SessionServiceName = "api.SessionService"
)
View Source
const (
	// UserServiceName is the fully-qualified name of the UserService service.
	UserServiceName = "api.UserService"
)

Variables

This section is empty.

Functions

func NewGlobalKVSServiceHandler

func NewGlobalKVSServiceHandler(svc GlobalKVSServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewGlobalKVSServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

func NewLeaderBoardServiceHandler added in v0.2.0

func NewLeaderBoardServiceHandler(svc LeaderBoardServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewLeaderBoardServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

func NewLobbyServiceHandler added in v0.3.0

func NewLobbyServiceHandler(svc LobbyServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewLobbyServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

func NewMasterDataServiceHandler added in v0.3.0

func NewMasterDataServiceHandler(svc MasterDataServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewMasterDataServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

func NewPrivateKVSServiceHandler

func NewPrivateKVSServiceHandler(svc PrivateKVSServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewPrivateKVSServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

func NewSessionServiceHandler

func NewSessionServiceHandler(svc SessionServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewSessionServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

func NewUserServiceHandler

func NewUserServiceHandler(svc UserServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewUserServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

Types

type GlobalKVSServiceClient

type GlobalKVSServiceClient interface {
	// KVS のエントリを検索します。
	// ただし、検索条件が空の場合は空リストを返します。
	GetV1(context.Context, *connect.Request[api.GlobalKVSServiceGetV1Request]) (*connect.Response[api.GlobalKVSServiceGetV1Response], error)
	// KVS にエントリを登録します。
	// エントリの作成、更新、削除を行うことが可能で、value が空のエントリは削除されます。
	SetV1(context.Context, *connect.Request[api.GlobalKVSServiceSetV1Request]) (*connect.Response[api.GlobalKVSServiceSetV1Response], error)
}

GlobalKVSServiceClient is a client for the api.GlobalKVSService service.

func NewGlobalKVSServiceClient

func NewGlobalKVSServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) GlobalKVSServiceClient

NewGlobalKVSServiceClient constructs a client for the api.GlobalKVSService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type GlobalKVSServiceHandler

type GlobalKVSServiceHandler interface {
	// KVS のエントリを検索します。
	// ただし、検索条件が空の場合は空リストを返します。
	GetV1(context.Context, *connect.Request[api.GlobalKVSServiceGetV1Request]) (*connect.Response[api.GlobalKVSServiceGetV1Response], error)
	// KVS にエントリを登録します。
	// エントリの作成、更新、削除を行うことが可能で、value が空のエントリは削除されます。
	SetV1(context.Context, *connect.Request[api.GlobalKVSServiceSetV1Request]) (*connect.Response[api.GlobalKVSServiceSetV1Response], error)
}

GlobalKVSServiceHandler is an implementation of the api.GlobalKVSService service.

type LeaderBoardServiceClient added in v0.2.0

LeaderBoardServiceClient is a client for the api.LeaderBoardService service.

func NewLeaderBoardServiceClient added in v0.2.0

func NewLeaderBoardServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) LeaderBoardServiceClient

NewLeaderBoardServiceClient constructs a client for the api.LeaderBoardService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type LeaderBoardServiceHandler added in v0.2.0

LeaderBoardServiceHandler is an implementation of the api.LeaderBoardService service.

type LobbyServiceClient added in v0.3.0

LobbyServiceClient is a client for the api.LobbyService service.

func NewLobbyServiceClient added in v0.3.0

func NewLobbyServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) LobbyServiceClient

NewLobbyServiceClient constructs a client for the api.LobbyService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type MasterDataServiceClient added in v0.3.0

type MasterDataServiceClient interface {
	// 現在アクティブなマスターデータを取得します。
	GetV1(context.Context, *connect.Request[api.MasterDataServiceGetV1Request]) (*connect.Response[api.MasterDataServiceGetV1Response], error)
	// 現在アクティブなマスターリビジョンを取得します。
	GetRevisionV1(context.Context, *connect.Request[api.MasterDataServiceGetRevisionV1Request]) (*connect.Response[api.MasterDataServiceGetRevisionV1Response], error)
}

MasterDataServiceClient is a client for the api.MasterDataService service.

func NewMasterDataServiceClient added in v0.3.0

func NewMasterDataServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) MasterDataServiceClient

NewMasterDataServiceClient constructs a client for the api.MasterDataService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type MasterDataServiceHandler added in v0.3.0

type MasterDataServiceHandler interface {
	// 現在アクティブなマスターデータを取得します。
	GetV1(context.Context, *connect.Request[api.MasterDataServiceGetV1Request]) (*connect.Response[api.MasterDataServiceGetV1Response], error)
	// 現在アクティブなマスターリビジョンを取得します。
	GetRevisionV1(context.Context, *connect.Request[api.MasterDataServiceGetRevisionV1Request]) (*connect.Response[api.MasterDataServiceGetRevisionV1Response], error)
}

MasterDataServiceHandler is an implementation of the api.MasterDataService service.

type PrivateKVSServiceClient

type PrivateKVSServiceClient interface {
	GetETagV1(context.Context, *connect.Request[api.PrivateKVSServiceGetETagV1Request]) (*connect.Response[api.PrivateKVSServiceGetETagV1Response], error)
	// KVS のエントリを検索します。
	// ただし、検索条件が空の場合は空リストを返します。
	GetV1(context.Context, *connect.Request[api.PrivateKVSServiceGetV1Request]) (*connect.Response[api.PrivateKVSServiceGetV1Response], error)
	// KVS にエントリを登録します。
	// エントリの作成、更新、削除を行うことが可能で、value が空のエントリは削除されます。
	SetV1(context.Context, *connect.Request[api.PrivateKVSServiceSetV1Request]) (*connect.Response[api.PrivateKVSServiceSetV1Response], error)
}

PrivateKVSServiceClient is a client for the api.PrivateKVSService service.

func NewPrivateKVSServiceClient

func NewPrivateKVSServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) PrivateKVSServiceClient

NewPrivateKVSServiceClient constructs a client for the api.PrivateKVSService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type PrivateKVSServiceHandler

type PrivateKVSServiceHandler interface {
	GetETagV1(context.Context, *connect.Request[api.PrivateKVSServiceGetETagV1Request]) (*connect.Response[api.PrivateKVSServiceGetETagV1Response], error)
	// KVS のエントリを検索します。
	// ただし、検索条件が空の場合は空リストを返します。
	GetV1(context.Context, *connect.Request[api.PrivateKVSServiceGetV1Request]) (*connect.Response[api.PrivateKVSServiceGetV1Response], error)
	// KVS にエントリを登録します。
	// エントリの作成、更新、削除を行うことが可能で、value が空のエントリは削除されます。
	SetV1(context.Context, *connect.Request[api.PrivateKVSServiceSetV1Request]) (*connect.Response[api.PrivateKVSServiceSetV1Response], error)
}

PrivateKVSServiceHandler is an implementation of the api.PrivateKVSService service.

type SessionServiceClient

type SessionServiceClient interface {
	// ID トークンを検証し、セッションを作成します。
	// サインインとサインアップが統合されており、初回実行時はユーザ作成も同時に行います。
	AuthorizeV1(context.Context, *connect.Request[api.SessionServiceAuthorizeV1Request]) (*connect.Response[api.SessionServiceAuthorizeV1Response], error)
}

SessionServiceClient is a client for the api.SessionService service.

func NewSessionServiceClient

func NewSessionServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) SessionServiceClient

NewSessionServiceClient constructs a client for the api.SessionService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type SessionServiceHandler

type SessionServiceHandler interface {
	// ID トークンを検証し、セッションを作成します。
	// サインインとサインアップが統合されており、初回実行時はユーザ作成も同時に行います。
	AuthorizeV1(context.Context, *connect.Request[api.SessionServiceAuthorizeV1Request]) (*connect.Response[api.SessionServiceAuthorizeV1Response], error)
}

SessionServiceHandler is an implementation of the api.SessionService service.

type UnimplementedGlobalKVSServiceHandler

type UnimplementedGlobalKVSServiceHandler struct{}

UnimplementedGlobalKVSServiceHandler returns CodeUnimplemented from all methods.

type UnimplementedLeaderBoardServiceHandler added in v0.2.0

type UnimplementedLeaderBoardServiceHandler struct{}

UnimplementedLeaderBoardServiceHandler returns CodeUnimplemented from all methods.

type UnimplementedLobbyServiceHandler added in v0.3.0

type UnimplementedLobbyServiceHandler struct{}

UnimplementedLobbyServiceHandler returns CodeUnimplemented from all methods.

type UnimplementedMasterDataServiceHandler added in v0.3.0

type UnimplementedMasterDataServiceHandler struct{}

UnimplementedMasterDataServiceHandler returns CodeUnimplemented from all methods.

type UnimplementedPrivateKVSServiceHandler

type UnimplementedPrivateKVSServiceHandler struct{}

UnimplementedPrivateKVSServiceHandler returns CodeUnimplemented from all methods.

type UnimplementedSessionServiceHandler

type UnimplementedSessionServiceHandler struct{}

UnimplementedSessionServiceHandler returns CodeUnimplemented from all methods.

type UnimplementedUserServiceHandler

type UnimplementedUserServiceHandler struct{}

UnimplementedUserServiceHandler returns CodeUnimplemented from all methods.

type UserServiceClient

type UserServiceClient interface {
	// プロフィール設定/言語設定などの初期設定が完了したら、この API を呼び出してください。
	// ユーザがアクティベートされるまで、ユーザのプロフィールは非公開になります。
	ActivateV1(context.Context, *connect.Request[api.UserServiceActivateV1Request]) (*connect.Response[api.UserServiceActivateV1Response], error)
	// プロフィールを検索します。
	SearchProfilesV1(context.Context, *connect.Request[api.UserServiceSearchProfilesV1Request]) (*connect.Response[api.UserServiceSearchProfilesV1Response], error)
	// プロフィールを編集します。
	EditProfileV1(context.Context, *connect.Request[api.UserServiceEditProfileV1Request]) (*connect.Response[api.UserServiceEditProfileV1Response], error)
	// 退会処理を行います。
	// アカウントは永続的に削除され、復元することはできません。
	AccountDeleteV1(context.Context, *connect.Request[api.UserServiceAccountDeleteV1Request]) (*connect.Response[api.UserServiceAccountDeleteV1Response], error)
}

UserServiceClient is a client for the api.UserService service.

func NewUserServiceClient

func NewUserServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) UserServiceClient

NewUserServiceClient constructs a client for the api.UserService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type UserServiceHandler

type UserServiceHandler interface {
	// プロフィール設定/言語設定などの初期設定が完了したら、この API を呼び出してください。
	// ユーザがアクティベートされるまで、ユーザのプロフィールは非公開になります。
	ActivateV1(context.Context, *connect.Request[api.UserServiceActivateV1Request]) (*connect.Response[api.UserServiceActivateV1Response], error)
	// プロフィールを検索します。
	SearchProfilesV1(context.Context, *connect.Request[api.UserServiceSearchProfilesV1Request]) (*connect.Response[api.UserServiceSearchProfilesV1Response], error)
	// プロフィールを編集します。
	EditProfileV1(context.Context, *connect.Request[api.UserServiceEditProfileV1Request]) (*connect.Response[api.UserServiceEditProfileV1Response], error)
	// 退会処理を行います。
	// アカウントは永続的に削除され、復元することはできません。
	AccountDeleteV1(context.Context, *connect.Request[api.UserServiceAccountDeleteV1Request]) (*connect.Response[api.UserServiceAccountDeleteV1Response], error)
}

UserServiceHandler is an implementation of the api.UserService service.

Jump to

Keyboard shortcuts

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