pb

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Overview

Package pb is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package pb is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	Profiles_CreateProfile_FullMethodName    = "/pb.Profiles/CreateProfile"
	Profiles_GetProfile_FullMethodName       = "/pb.Profiles/GetProfile"
	Profiles_GetPublicProfile_FullMethodName = "/pb.Profiles/GetPublicProfile"
	Profiles_ListAllProfiles_FullMethodName  = "/pb.Profiles/ListAllProfiles"
	Profiles_UpdateProfile_FullMethodName    = "/pb.Profiles/UpdateProfile"
	Profiles_DeleteProfile_FullMethodName    = "/pb.Profiles/DeleteProfile"
)
View Source
const (
	Referrals_GetReferrer_FullMethodName   = "/pb.Referrals/GetReferrer"
	Referrals_ListReferrals_FullMethodName = "/pb.Referrals/ListReferrals"
)

Variables

View Source
var File_config_proto protoreflect.FileDescriptor
View Source
var File_profile_proto protoreflect.FileDescriptor
View Source
var File_referral_proto protoreflect.FileDescriptor
View Source
var File_rpc_create_profile_proto protoreflect.FileDescriptor
View Source
var File_rpc_delete_profile_proto protoreflect.FileDescriptor
View Source
var File_rpc_get_profile_proto protoreflect.FileDescriptor
View Source
var File_rpc_get_referrer_proto protoreflect.FileDescriptor
View Source
var File_rpc_list_all_profiles_proto protoreflect.FileDescriptor
View Source
var File_rpc_list_referrals_proto protoreflect.FileDescriptor
View Source
var File_rpc_update_profile_proto protoreflect.FileDescriptor
View Source
var File_service_profiles_proto protoreflect.FileDescriptor
View Source
var File_service_referrals_proto protoreflect.FileDescriptor
View Source
var Profiles_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "pb.Profiles",
	HandlerType: (*ProfilesServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateProfile",
			Handler:    _Profiles_CreateProfile_Handler,
		},
		{
			MethodName: "GetProfile",
			Handler:    _Profiles_GetProfile_Handler,
		},
		{
			MethodName: "GetPublicProfile",
			Handler:    _Profiles_GetPublicProfile_Handler,
		},
		{
			MethodName: "ListAllProfiles",
			Handler:    _Profiles_ListAllProfiles_Handler,
		},
		{
			MethodName: "UpdateProfile",
			Handler:    _Profiles_UpdateProfile_Handler,
		},
		{
			MethodName: "DeleteProfile",
			Handler:    _Profiles_DeleteProfile_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "service_profiles.proto",
}

Profiles_ServiceDesc is the grpc.ServiceDesc for Profiles 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 Referrals_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "pb.Referrals",
	HandlerType: (*ReferralsServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetReferrer",
			Handler:    _Referrals_GetReferrer_Handler,
		},
		{
			MethodName: "ListReferrals",
			Handler:    _Referrals_ListReferrals_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "service_referrals.proto",
}

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

Functions

func RegisterProfilesHandler

func RegisterProfilesHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterProfilesHandler registers the http handlers for service Profiles to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterProfilesHandlerClient

func RegisterProfilesHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ProfilesClient) error

RegisterProfilesHandlerClient registers the http handlers for service Profiles to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ProfilesClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ProfilesClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ProfilesClient" to call the correct interceptors.

func RegisterProfilesHandlerFromEndpoint

func RegisterProfilesHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterProfilesHandlerFromEndpoint is same as RegisterProfilesHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterProfilesHandlerServer

func RegisterProfilesHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ProfilesServer) error

RegisterProfilesHandlerServer registers the http handlers for service Profiles to "mux". UnaryRPC :call ProfilesServer 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 RegisterProfilesHandlerFromEndpoint instead.

func RegisterProfilesServer

func RegisterProfilesServer(s grpc.ServiceRegistrar, srv ProfilesServer)

func RegisterReferralsHandler

func RegisterReferralsHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterReferralsHandler registers the http handlers for service Referrals to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterReferralsHandlerClient

func RegisterReferralsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ReferralsClient) error

RegisterReferralsHandlerClient registers the http handlers for service Referrals to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ReferralsClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ReferralsClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ReferralsClient" to call the correct interceptors.

func RegisterReferralsHandlerFromEndpoint

func RegisterReferralsHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterReferralsHandlerFromEndpoint is same as RegisterReferralsHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterReferralsHandlerServer

func RegisterReferralsHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ReferralsServer) error

RegisterReferralsHandlerServer registers the http handlers for service Referrals to "mux". UnaryRPC :call ReferralsServer 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 RegisterReferralsHandlerFromEndpoint instead.

func RegisterReferralsServer

func RegisterReferralsServer(s grpc.ServiceRegistrar, srv ReferralsServer)

Types

type CreateProfileRequest

type CreateProfileRequest struct {
	WalletAddress string `protobuf:"bytes,1,opt,name=wallet_address,json=walletAddress,proto3" json:"wallet_address,omitempty"`
	GamerTag      string `protobuf:"bytes,2,opt,name=gamer_tag,json=gamerTag,proto3" json:"gamer_tag,omitempty"`
	Referrer      string `protobuf:"bytes,3,opt,name=referrer,proto3" json:"referrer,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateProfileRequest) Descriptor deprecated

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

Deprecated: Use CreateProfileRequest.ProtoReflect.Descriptor instead.

func (*CreateProfileRequest) GetGamerTag

func (x *CreateProfileRequest) GetGamerTag() string

func (*CreateProfileRequest) GetReferrer

func (x *CreateProfileRequest) GetReferrer() string

func (*CreateProfileRequest) GetWalletAddress

func (x *CreateProfileRequest) GetWalletAddress() string

func (*CreateProfileRequest) ProtoMessage

func (*CreateProfileRequest) ProtoMessage()

func (*CreateProfileRequest) ProtoReflect

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

func (*CreateProfileRequest) Reset

func (x *CreateProfileRequest) Reset()

func (*CreateProfileRequest) String

func (x *CreateProfileRequest) String() string

type CreateProfileResponse

type CreateProfileResponse struct {
	Profile  *Profile  `protobuf:"bytes,1,opt,name=profile,proto3" json:"profile,omitempty"`
	Referral *Referral `protobuf:"bytes,2,opt,name=referral,proto3" json:"referral,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateProfileResponse) Descriptor deprecated

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

Deprecated: Use CreateProfileResponse.ProtoReflect.Descriptor instead.

func (*CreateProfileResponse) GetProfile

func (x *CreateProfileResponse) GetProfile() *Profile

func (*CreateProfileResponse) GetReferral

func (x *CreateProfileResponse) GetReferral() *Referral

func (*CreateProfileResponse) ProtoMessage

func (*CreateProfileResponse) ProtoMessage()

func (*CreateProfileResponse) ProtoReflect

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

func (*CreateProfileResponse) Reset

func (x *CreateProfileResponse) Reset()

func (*CreateProfileResponse) String

func (x *CreateProfileResponse) String() string

type DeleteProfileRequest

type DeleteProfileRequest struct {
	WalletAddress string `protobuf:"bytes,1,opt,name=wallet_address,json=walletAddress,proto3" json:"wallet_address,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteProfileRequest) Descriptor deprecated

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

Deprecated: Use DeleteProfileRequest.ProtoReflect.Descriptor instead.

func (*DeleteProfileRequest) GetWalletAddress

func (x *DeleteProfileRequest) GetWalletAddress() string

func (*DeleteProfileRequest) ProtoMessage

func (*DeleteProfileRequest) ProtoMessage()

func (*DeleteProfileRequest) ProtoReflect

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

func (*DeleteProfileRequest) Reset

func (x *DeleteProfileRequest) Reset()

func (*DeleteProfileRequest) String

func (x *DeleteProfileRequest) String() string

type GetProfileRequest

type GetProfileRequest struct {
	WalletAddress string `protobuf:"bytes,1,opt,name=wallet_address,json=walletAddress,proto3" json:"wallet_address,omitempty"`
	// contains filtered or unexported fields
}

func (*GetProfileRequest) Descriptor deprecated

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

Deprecated: Use GetProfileRequest.ProtoReflect.Descriptor instead.

func (*GetProfileRequest) GetWalletAddress

func (x *GetProfileRequest) GetWalletAddress() string

func (*GetProfileRequest) ProtoMessage

func (*GetProfileRequest) ProtoMessage()

func (*GetProfileRequest) ProtoReflect

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

func (*GetProfileRequest) Reset

func (x *GetProfileRequest) Reset()

func (*GetProfileRequest) String

func (x *GetProfileRequest) String() string

type GetProfileResponse

type GetProfileResponse struct {
	Profile *Profile `protobuf:"bytes,1,opt,name=profile,proto3" json:"profile,omitempty"`
	// contains filtered or unexported fields
}

func (*GetProfileResponse) Descriptor deprecated

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

Deprecated: Use GetProfileResponse.ProtoReflect.Descriptor instead.

func (*GetProfileResponse) GetProfile

func (x *GetProfileResponse) GetProfile() *Profile

func (*GetProfileResponse) ProtoMessage

func (*GetProfileResponse) ProtoMessage()

func (*GetProfileResponse) ProtoReflect

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

func (*GetProfileResponse) Reset

func (x *GetProfileResponse) Reset()

func (*GetProfileResponse) String

func (x *GetProfileResponse) String() string

type GetPublicProfileResponse

type GetPublicProfileResponse struct {
	Profile *PublicProfile `protobuf:"bytes,1,opt,name=profile,proto3" json:"profile,omitempty"`
	// contains filtered or unexported fields
}

func (*GetPublicProfileResponse) Descriptor deprecated

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

Deprecated: Use GetPublicProfileResponse.ProtoReflect.Descriptor instead.

func (*GetPublicProfileResponse) GetProfile

func (x *GetPublicProfileResponse) GetProfile() *PublicProfile

func (*GetPublicProfileResponse) ProtoMessage

func (*GetPublicProfileResponse) ProtoMessage()

func (*GetPublicProfileResponse) ProtoReflect

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

func (*GetPublicProfileResponse) Reset

func (x *GetPublicProfileResponse) Reset()

func (*GetPublicProfileResponse) String

func (x *GetPublicProfileResponse) String() string

type GetReferrerRequest

type GetReferrerRequest struct {
	WalletAddress string `protobuf:"bytes,1,opt,name=wallet_address,json=walletAddress,proto3" json:"wallet_address,omitempty"`
	// contains filtered or unexported fields
}

func (*GetReferrerRequest) Descriptor deprecated

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

Deprecated: Use GetReferrerRequest.ProtoReflect.Descriptor instead.

func (*GetReferrerRequest) GetWalletAddress

func (x *GetReferrerRequest) GetWalletAddress() string

func (*GetReferrerRequest) ProtoMessage

func (*GetReferrerRequest) ProtoMessage()

func (*GetReferrerRequest) ProtoReflect

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

func (*GetReferrerRequest) Reset

func (x *GetReferrerRequest) Reset()

func (*GetReferrerRequest) String

func (x *GetReferrerRequest) String() string

type GetReferrerResponse

type GetReferrerResponse struct {
	Referral *Referral `protobuf:"bytes,1,opt,name=referral,proto3" json:"referral,omitempty"`
	// contains filtered or unexported fields
}

func (*GetReferrerResponse) Descriptor deprecated

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

Deprecated: Use GetReferrerResponse.ProtoReflect.Descriptor instead.

func (*GetReferrerResponse) GetReferral

func (x *GetReferrerResponse) GetReferral() *Referral

func (*GetReferrerResponse) ProtoMessage

func (*GetReferrerResponse) ProtoMessage()

func (*GetReferrerResponse) ProtoReflect

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

func (*GetReferrerResponse) Reset

func (x *GetReferrerResponse) Reset()

func (*GetReferrerResponse) String

func (x *GetReferrerResponse) String() string

type ListAllProfilesRequest

type ListAllProfilesRequest struct {
	Page     int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// contains filtered or unexported fields
}

func (*ListAllProfilesRequest) Descriptor deprecated

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

Deprecated: Use ListAllProfilesRequest.ProtoReflect.Descriptor instead.

func (*ListAllProfilesRequest) GetPage

func (x *ListAllProfilesRequest) GetPage() int32

func (*ListAllProfilesRequest) GetPageSize

func (x *ListAllProfilesRequest) GetPageSize() int32

func (*ListAllProfilesRequest) ProtoMessage

func (*ListAllProfilesRequest) ProtoMessage()

func (*ListAllProfilesRequest) ProtoReflect

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

func (*ListAllProfilesRequest) Reset

func (x *ListAllProfilesRequest) Reset()

func (*ListAllProfilesRequest) String

func (x *ListAllProfilesRequest) String() string

type ListAllProfilesResponse

type ListAllProfilesResponse struct {
	Page          int32            `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
	PageSize      int32            `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	TotalProfiles int32            `protobuf:"varint,3,opt,name=total_profiles,json=totalProfiles,proto3" json:"total_profiles,omitempty"`
	Profiles      []*PublicProfile `protobuf:"bytes,4,rep,name=profiles,proto3" json:"profiles,omitempty"`
	// contains filtered or unexported fields
}

func (*ListAllProfilesResponse) Descriptor deprecated

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

Deprecated: Use ListAllProfilesResponse.ProtoReflect.Descriptor instead.

func (*ListAllProfilesResponse) GetPage

func (x *ListAllProfilesResponse) GetPage() int32

func (*ListAllProfilesResponse) GetPageSize

func (x *ListAllProfilesResponse) GetPageSize() int32

func (*ListAllProfilesResponse) GetProfiles

func (x *ListAllProfilesResponse) GetProfiles() []*PublicProfile

func (*ListAllProfilesResponse) GetTotalProfiles

func (x *ListAllProfilesResponse) GetTotalProfiles() int32

func (*ListAllProfilesResponse) ProtoMessage

func (*ListAllProfilesResponse) ProtoMessage()

func (*ListAllProfilesResponse) ProtoReflect

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

func (*ListAllProfilesResponse) Reset

func (x *ListAllProfilesResponse) Reset()

func (*ListAllProfilesResponse) String

func (x *ListAllProfilesResponse) String() string

type ListReferralsRequest

type ListReferralsRequest struct {
	WalletAddress string `protobuf:"bytes,1,opt,name=wallet_address,json=walletAddress,proto3" json:"wallet_address,omitempty"`
	Page          int32  `protobuf:"varint,2,opt,name=page,proto3" json:"page,omitempty"`
	PageSize      int32  `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// contains filtered or unexported fields
}

func (*ListReferralsRequest) Descriptor deprecated

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

Deprecated: Use ListReferralsRequest.ProtoReflect.Descriptor instead.

func (*ListReferralsRequest) GetPage

func (x *ListReferralsRequest) GetPage() int32

func (*ListReferralsRequest) GetPageSize

func (x *ListReferralsRequest) GetPageSize() int32

func (*ListReferralsRequest) GetWalletAddress

func (x *ListReferralsRequest) GetWalletAddress() string

func (*ListReferralsRequest) ProtoMessage

func (*ListReferralsRequest) ProtoMessage()

func (*ListReferralsRequest) ProtoReflect

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

func (*ListReferralsRequest) Reset

func (x *ListReferralsRequest) Reset()

func (*ListReferralsRequest) String

func (x *ListReferralsRequest) String() string

type ListReferralsResponse

type ListReferralsResponse struct {
	Page           int32       `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
	PageSize       int32       `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	TotalReferrals int32       `protobuf:"varint,3,opt,name=total_referrals,json=totalReferrals,proto3" json:"total_referrals,omitempty"`
	Referrals      []*Referral `protobuf:"bytes,4,rep,name=referrals,proto3" json:"referrals,omitempty"`
	// contains filtered or unexported fields
}

func (*ListReferralsResponse) Descriptor deprecated

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

Deprecated: Use ListReferralsResponse.ProtoReflect.Descriptor instead.

func (*ListReferralsResponse) GetPage

func (x *ListReferralsResponse) GetPage() int32

func (*ListReferralsResponse) GetPageSize

func (x *ListReferralsResponse) GetPageSize() int32

func (*ListReferralsResponse) GetReferrals

func (x *ListReferralsResponse) GetReferrals() []*Referral

func (*ListReferralsResponse) GetTotalReferrals

func (x *ListReferralsResponse) GetTotalReferrals() int32

func (*ListReferralsResponse) ProtoMessage

func (*ListReferralsResponse) ProtoMessage()

func (*ListReferralsResponse) ProtoReflect

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

func (*ListReferralsResponse) Reset

func (x *ListReferralsResponse) Reset()

func (*ListReferralsResponse) String

func (x *ListReferralsResponse) String() string

type Profile

type Profile struct {
	WalletAddress string                 `protobuf:"bytes,1,opt,name=wallet_address,json=walletAddress,proto3" json:"wallet_address,omitempty"`
	GamerTag      string                 `protobuf:"bytes,2,opt,name=gamer_tag,json=gamerTag,proto3" json:"gamer_tag,omitempty"`
	EnsName       string                 `protobuf:"bytes,3,opt,name=ens_name,json=ensName,proto3" json:"ens_name,omitempty"`
	CreatedAt     *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// contains filtered or unexported fields
}

func (*Profile) Descriptor deprecated

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

Deprecated: Use Profile.ProtoReflect.Descriptor instead.

func (*Profile) GetCreatedAt

func (x *Profile) GetCreatedAt() *timestamppb.Timestamp

func (*Profile) GetEnsName

func (x *Profile) GetEnsName() string

func (*Profile) GetGamerTag

func (x *Profile) GetGamerTag() string

func (*Profile) GetWalletAddress

func (x *Profile) GetWalletAddress() 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

type ProfilesClient

type ProfilesClient interface {
	CreateProfile(ctx context.Context, in *CreateProfileRequest, opts ...grpc.CallOption) (*CreateProfileResponse, error)
	GetProfile(ctx context.Context, in *GetProfileRequest, opts ...grpc.CallOption) (*GetProfileResponse, error)
	GetPublicProfile(ctx context.Context, in *GetProfileRequest, opts ...grpc.CallOption) (*GetPublicProfileResponse, error)
	ListAllProfiles(ctx context.Context, in *ListAllProfilesRequest, opts ...grpc.CallOption) (*ListAllProfilesResponse, error)
	UpdateProfile(ctx context.Context, in *UpdateProfileRequest, opts ...grpc.CallOption) (*UpdateProfileResponse, error)
	DeleteProfile(ctx context.Context, in *DeleteProfileRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

ProfilesClient is the client API for Profiles 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.

func NewProfilesClient

func NewProfilesClient(cc grpc.ClientConnInterface) ProfilesClient

type ProfilesServer

type ProfilesServer interface {
	CreateProfile(context.Context, *CreateProfileRequest) (*CreateProfileResponse, error)
	GetProfile(context.Context, *GetProfileRequest) (*GetProfileResponse, error)
	GetPublicProfile(context.Context, *GetProfileRequest) (*GetPublicProfileResponse, error)
	ListAllProfiles(context.Context, *ListAllProfilesRequest) (*ListAllProfilesResponse, error)
	UpdateProfile(context.Context, *UpdateProfileRequest) (*UpdateProfileResponse, error)
	DeleteProfile(context.Context, *DeleteProfileRequest) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

ProfilesServer is the server API for Profiles service. All implementations must embed UnimplementedProfilesServer for forward compatibility

type PublicProfile

type PublicProfile struct {
	WalletAddress string                 `protobuf:"bytes,1,opt,name=wallet_address,json=walletAddress,proto3" json:"wallet_address,omitempty"`
	GamerTag      string                 `protobuf:"bytes,2,opt,name=gamer_tag,json=gamerTag,proto3" json:"gamer_tag,omitempty"`
	EnsName       string                 `protobuf:"bytes,3,opt,name=ens_name,json=ensName,proto3" json:"ens_name,omitempty"`
	CreatedAt     *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// contains filtered or unexported fields
}

publicly accessible user profile

func (*PublicProfile) Descriptor deprecated

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

Deprecated: Use PublicProfile.ProtoReflect.Descriptor instead.

func (*PublicProfile) GetCreatedAt

func (x *PublicProfile) GetCreatedAt() *timestamppb.Timestamp

func (*PublicProfile) GetEnsName

func (x *PublicProfile) GetEnsName() string

func (*PublicProfile) GetGamerTag

func (x *PublicProfile) GetGamerTag() string

func (*PublicProfile) GetWalletAddress

func (x *PublicProfile) GetWalletAddress() string

func (*PublicProfile) ProtoMessage

func (*PublicProfile) ProtoMessage()

func (*PublicProfile) ProtoReflect

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

func (*PublicProfile) Reset

func (x *PublicProfile) Reset()

func (*PublicProfile) String

func (x *PublicProfile) String() string

type Referral

type Referral struct {
	Referrer   string                 `protobuf:"bytes,1,opt,name=referrer,proto3" json:"referrer,omitempty"`
	Referee    string                 `protobuf:"bytes,2,opt,name=referee,proto3" json:"referee,omitempty"`
	ReferredAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=referred_at,json=referredAt,proto3" json:"referred_at,omitempty"`
	// contains filtered or unexported fields
}

func (*Referral) Descriptor deprecated

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

Deprecated: Use Referral.ProtoReflect.Descriptor instead.

func (*Referral) GetReferee

func (x *Referral) GetReferee() string

func (*Referral) GetReferredAt

func (x *Referral) GetReferredAt() *timestamppb.Timestamp

func (*Referral) GetReferrer

func (x *Referral) GetReferrer() string

func (*Referral) ProtoMessage

func (*Referral) ProtoMessage()

func (*Referral) ProtoReflect

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

func (*Referral) Reset

func (x *Referral) Reset()

func (*Referral) String

func (x *Referral) String() string

type ReferralsClient

type ReferralsClient interface {
	GetReferrer(ctx context.Context, in *GetReferrerRequest, opts ...grpc.CallOption) (*GetReferrerResponse, error)
	ListReferrals(ctx context.Context, in *ListReferralsRequest, opts ...grpc.CallOption) (*ListReferralsResponse, error)
}

ReferralsClient is the client API for Referrals 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.

func NewReferralsClient

func NewReferralsClient(cc grpc.ClientConnInterface) ReferralsClient

type ReferralsServer

type ReferralsServer interface {
	GetReferrer(context.Context, *GetReferrerRequest) (*GetReferrerResponse, error)
	ListReferrals(context.Context, *ListReferralsRequest) (*ListReferralsResponse, error)
	// contains filtered or unexported methods
}

ReferralsServer is the server API for Referrals service. All implementations must embed UnimplementedReferralsServer for forward compatibility

type UnimplementedProfilesServer

type UnimplementedProfilesServer struct {
}

UnimplementedProfilesServer must be embedded to have forward compatible implementations.

func (UnimplementedProfilesServer) CreateProfile

func (UnimplementedProfilesServer) DeleteProfile

func (UnimplementedProfilesServer) GetProfile

func (UnimplementedProfilesServer) GetPublicProfile

func (UnimplementedProfilesServer) ListAllProfiles

func (UnimplementedProfilesServer) UpdateProfile

type UnimplementedReferralsServer

type UnimplementedReferralsServer struct {
}

UnimplementedReferralsServer must be embedded to have forward compatible implementations.

func (UnimplementedReferralsServer) GetReferrer

func (UnimplementedReferralsServer) ListReferrals

type UnsafeProfilesServer

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

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

type UnsafeReferralsServer

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

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

type UpdateProfileRequest

type UpdateProfileRequest struct {
	WalletAddress string `protobuf:"bytes,1,opt,name=wallet_address,json=walletAddress,proto3" json:"wallet_address,omitempty"`
	GamerTag      string `protobuf:"bytes,2,opt,name=gamer_tag,json=gamerTag,proto3" json:"gamer_tag,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateProfileRequest) Descriptor deprecated

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

Deprecated: Use UpdateProfileRequest.ProtoReflect.Descriptor instead.

func (*UpdateProfileRequest) GetGamerTag

func (x *UpdateProfileRequest) GetGamerTag() string

func (*UpdateProfileRequest) GetWalletAddress

func (x *UpdateProfileRequest) GetWalletAddress() string

func (*UpdateProfileRequest) ProtoMessage

func (*UpdateProfileRequest) ProtoMessage()

func (*UpdateProfileRequest) ProtoReflect

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

func (*UpdateProfileRequest) Reset

func (x *UpdateProfileRequest) Reset()

func (*UpdateProfileRequest) String

func (x *UpdateProfileRequest) String() string

type UpdateProfileResponse

type UpdateProfileResponse struct {
	Profile *Profile `protobuf:"bytes,1,opt,name=profile,proto3" json:"profile,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateProfileResponse) Descriptor deprecated

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

Deprecated: Use UpdateProfileResponse.ProtoReflect.Descriptor instead.

func (*UpdateProfileResponse) GetProfile

func (x *UpdateProfileResponse) GetProfile() *Profile

func (*UpdateProfileResponse) ProtoMessage

func (*UpdateProfileResponse) ProtoMessage()

func (*UpdateProfileResponse) ProtoReflect

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

func (*UpdateProfileResponse) Reset

func (x *UpdateProfileResponse) Reset()

func (*UpdateProfileResponse) String

func (x *UpdateProfileResponse) String() string

Jump to

Keyboard shortcuts

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