accountv1

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package accountv1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package accountv1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	AccountService_GetAccountById_FullMethodName        = "/account.v1.AccountService/GetAccountById"
	AccountService_GetAccountSession_FullMethodName     = "/account.v1.AccountService/GetAccountSession"
	AccountService_UpdateAccount_FullMethodName         = "/account.v1.AccountService/UpdateAccount"
	AccountService_UpdateAccountPassword_FullMethodName = "/account.v1.AccountService/UpdateAccountPassword"
	AccountService_DeleteAccount_FullMethodName         = "/account.v1.AccountService/DeleteAccount"
)
View Source
const (
	AuthService_Login_FullMethodName             = "/account.v1.AuthService/Login"
	AuthService_Register_FullMethodName          = "/account.v1.AuthService/Register"
	AuthService_RefreshToken_FullMethodName      = "/account.v1.AuthService/RefreshToken"
	AuthService_RetrospectToken_FullMethodName   = "/account.v1.AuthService/RetrospectToken"
	AuthService_DecodeAccessToken_FullMethodName = "/account.v1.AuthService/DecodeAccessToken"
	AuthService_Logout_FullMethodName            = "/account.v1.AuthService/Logout"
)

Variables

View Source
var AccountService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "account.v1.AccountService",
	HandlerType: (*AccountServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetAccountById",
			Handler:    _AccountService_GetAccountById_Handler,
		},
		{
			MethodName: "GetAccountSession",
			Handler:    _AccountService_GetAccountSession_Handler,
		},
		{
			MethodName: "UpdateAccount",
			Handler:    _AccountService_UpdateAccount_Handler,
		},
		{
			MethodName: "UpdateAccountPassword",
			Handler:    _AccountService_UpdateAccountPassword_Handler,
		},
		{
			MethodName: "DeleteAccount",
			Handler:    _AccountService_DeleteAccount_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "account/v1/account.proto",
}

AccountService_ServiceDesc is the grpc.ServiceDesc for AccountService 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 AuthService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "account.v1.AuthService",
	HandlerType: (*AuthServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Login",
			Handler:    _AuthService_Login_Handler,
		},
		{
			MethodName: "Register",
			Handler:    _AuthService_Register_Handler,
		},
		{
			MethodName: "RefreshToken",
			Handler:    _AuthService_RefreshToken_Handler,
		},
		{
			MethodName: "RetrospectToken",
			Handler:    _AuthService_RetrospectToken_Handler,
		},
		{
			MethodName: "DecodeAccessToken",
			Handler:    _AuthService_DecodeAccessToken_Handler,
		},
		{
			MethodName: "Logout",
			Handler:    _AuthService_Logout_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "account/v1/auth.proto",
}

AuthService_ServiceDesc is the grpc.ServiceDesc for AuthService 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_v1_account_proto protoreflect.FileDescriptor
View Source
var File_account_v1_auth_proto protoreflect.FileDescriptor

Functions

func RegisterAccountServiceHandler

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

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

func RegisterAccountServiceHandlerClient

func RegisterAccountServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AccountServiceClient) error

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

func RegisterAccountServiceHandlerFromEndpoint

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

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

func RegisterAccountServiceHandlerServer

func RegisterAccountServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AccountServiceServer) error

RegisterAccountServiceHandlerServer registers the http handlers for service AccountService to "mux". UnaryRPC :call AccountServiceServer 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 RegisterAccountServiceHandlerFromEndpoint instead. GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call.

func RegisterAccountServiceServer

func RegisterAccountServiceServer(s grpc.ServiceRegistrar, srv AccountServiceServer)

func RegisterAuthServiceHandler

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

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

func RegisterAuthServiceHandlerClient

func RegisterAuthServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AuthServiceClient) error

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

func RegisterAuthServiceHandlerFromEndpoint

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

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

func RegisterAuthServiceHandlerServer

func RegisterAuthServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AuthServiceServer) error

RegisterAuthServiceHandlerServer registers the http handlers for service AuthService to "mux". UnaryRPC :call AuthServiceServer 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 RegisterAuthServiceHandlerFromEndpoint instead. GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call.

func RegisterAuthServiceServer

func RegisterAuthServiceServer(s grpc.ServiceRegistrar, srv AuthServiceServer)

Types

type Account

type Account struct {
	AccountId string                 `protobuf:"bytes,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
	Email     string                 `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
	FirstName string                 `protobuf:"bytes,3,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"`
	LastName  string                 `protobuf:"bytes,4,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"`
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// contains filtered or unexported fields
}

func (*Account) Descriptor deprecated

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

Deprecated: Use Account.ProtoReflect.Descriptor instead.

func (*Account) GetAccountId

func (x *Account) GetAccountId() string

func (*Account) GetCreatedAt

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

func (*Account) GetEmail

func (x *Account) GetEmail() string

func (*Account) GetFirstName

func (x *Account) GetFirstName() string

func (*Account) GetLastName

func (x *Account) GetLastName() string

func (*Account) ProtoMessage

func (*Account) ProtoMessage()

func (*Account) ProtoReflect

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

func (*Account) Reset

func (x *Account) Reset()

func (*Account) String

func (x *Account) String() string

type AccountServiceClient

type AccountServiceClient interface {
	GetAccountById(ctx context.Context, in *GetAccountByIdRequest, opts ...grpc.CallOption) (*GetAccountByIdResponse, error)
	GetAccountSession(ctx context.Context, in *GetAccountSessionRequest, opts ...grpc.CallOption) (*GetAccountSessionResponse, error)
	UpdateAccount(ctx context.Context, in *UpdateAccountRequest, opts ...grpc.CallOption) (*UpdateAccountResponse, error)
	UpdateAccountPassword(ctx context.Context, in *UpdateAccountPasswordRequest, opts ...grpc.CallOption) (*UpdateAccountPasswordResponse, error)
	DeleteAccount(ctx context.Context, in *DeleteAccountRequest, opts ...grpc.CallOption) (*DeleteAccountResponse, error)
}

AccountServiceClient is the client API for AccountService 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 AccountServiceServer

type AccountServiceServer interface {
	GetAccountById(context.Context, *GetAccountByIdRequest) (*GetAccountByIdResponse, error)
	GetAccountSession(context.Context, *GetAccountSessionRequest) (*GetAccountSessionResponse, error)
	UpdateAccount(context.Context, *UpdateAccountRequest) (*UpdateAccountResponse, error)
	UpdateAccountPassword(context.Context, *UpdateAccountPasswordRequest) (*UpdateAccountPasswordResponse, error)
	DeleteAccount(context.Context, *DeleteAccountRequest) (*DeleteAccountResponse, error)
	// contains filtered or unexported methods
}

AccountServiceServer is the server API for AccountService service. All implementations must embed UnimplementedAccountServiceServer for forward compatibility.

type AccountSession

type AccountSession struct {
	AccountId  string                 `protobuf:"bytes,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
	Start      *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=start,proto3" json:"start,omitempty"`
	LastAccess *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=last_access,json=lastAccess,proto3" json:"last_access,omitempty"`
	IpAddress  string                 `protobuf:"bytes,4,opt,name=ip_address,json=ipAddress,proto3" json:"ip_address,omitempty"`
	// contains filtered or unexported fields
}

func (*AccountSession) Descriptor deprecated

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

Deprecated: Use AccountSession.ProtoReflect.Descriptor instead.

func (*AccountSession) GetAccountId

func (x *AccountSession) GetAccountId() string

func (*AccountSession) GetIpAddress

func (x *AccountSession) GetIpAddress() string

func (*AccountSession) GetLastAccess

func (x *AccountSession) GetLastAccess() *timestamppb.Timestamp

func (*AccountSession) GetStart

func (x *AccountSession) GetStart() *timestamppb.Timestamp

func (*AccountSession) ProtoMessage

func (*AccountSession) ProtoMessage()

func (*AccountSession) ProtoReflect

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

func (*AccountSession) Reset

func (x *AccountSession) Reset()

func (*AccountSession) String

func (x *AccountSession) String() string

type AuthServiceClient

type AuthServiceClient interface {
	Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginResponse, error)
	Register(ctx context.Context, in *RegisterRequest, opts ...grpc.CallOption) (*RegisterResponse, error)
	RefreshToken(ctx context.Context, in *RefreshTokenRequest, opts ...grpc.CallOption) (*RefreshTokenResponse, error)
	RetrospectToken(ctx context.Context, in *RetrospectTokenRequest, opts ...grpc.CallOption) (*RetrospectTokenResponse, error)
	DecodeAccessToken(ctx context.Context, in *DecodeAccessTokenRequest, opts ...grpc.CallOption) (*DecodeAccessTokenResponse, error)
	Logout(ctx context.Context, in *LogoutRequest, opts ...grpc.CallOption) (*LogoutResponse, error)
}

AuthServiceClient is the client API for AuthService 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 AuthServiceServer

type AuthServiceServer interface {
	Login(context.Context, *LoginRequest) (*LoginResponse, error)
	Register(context.Context, *RegisterRequest) (*RegisterResponse, error)
	RefreshToken(context.Context, *RefreshTokenRequest) (*RefreshTokenResponse, error)
	RetrospectToken(context.Context, *RetrospectTokenRequest) (*RetrospectTokenResponse, error)
	DecodeAccessToken(context.Context, *DecodeAccessTokenRequest) (*DecodeAccessTokenResponse, error)
	Logout(context.Context, *LogoutRequest) (*LogoutResponse, error)
	// contains filtered or unexported methods
}

AuthServiceServer is the server API for AuthService service. All implementations must embed UnimplementedAuthServiceServer for forward compatibility.

type DecodeAccessTokenRequest

type DecodeAccessTokenRequest struct {
	AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
	// contains filtered or unexported fields
}

func (*DecodeAccessTokenRequest) Descriptor deprecated

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

Deprecated: Use DecodeAccessTokenRequest.ProtoReflect.Descriptor instead.

func (*DecodeAccessTokenRequest) GetAccessToken

func (x *DecodeAccessTokenRequest) GetAccessToken() string

func (*DecodeAccessTokenRequest) ProtoMessage

func (*DecodeAccessTokenRequest) ProtoMessage()

func (*DecodeAccessTokenRequest) ProtoReflect

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

func (*DecodeAccessTokenRequest) Reset

func (x *DecodeAccessTokenRequest) Reset()

func (*DecodeAccessTokenRequest) String

func (x *DecodeAccessTokenRequest) String() string

type DecodeAccessTokenResponse

type DecodeAccessTokenResponse struct {
	Subject   string `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"`
	Email     string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
	FirstName string `protobuf:"bytes,3,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"`
	LastName  string `protobuf:"bytes,4,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"`
	// contains filtered or unexported fields
}

func (*DecodeAccessTokenResponse) Descriptor deprecated

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

Deprecated: Use DecodeAccessTokenResponse.ProtoReflect.Descriptor instead.

func (*DecodeAccessTokenResponse) GetEmail

func (x *DecodeAccessTokenResponse) GetEmail() string

func (*DecodeAccessTokenResponse) GetFirstName

func (x *DecodeAccessTokenResponse) GetFirstName() string

func (*DecodeAccessTokenResponse) GetLastName

func (x *DecodeAccessTokenResponse) GetLastName() string

func (*DecodeAccessTokenResponse) GetSubject

func (x *DecodeAccessTokenResponse) GetSubject() string

func (*DecodeAccessTokenResponse) ProtoMessage

func (*DecodeAccessTokenResponse) ProtoMessage()

func (*DecodeAccessTokenResponse) ProtoReflect

func (*DecodeAccessTokenResponse) Reset

func (x *DecodeAccessTokenResponse) Reset()

func (*DecodeAccessTokenResponse) String

func (x *DecodeAccessTokenResponse) String() string

type DeleteAccountRequest

type DeleteAccountRequest struct {
	AccountId string `protobuf:"bytes,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteAccountRequest) Descriptor deprecated

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

Deprecated: Use DeleteAccountRequest.ProtoReflect.Descriptor instead.

func (*DeleteAccountRequest) GetAccountId

func (x *DeleteAccountRequest) GetAccountId() string

func (*DeleteAccountRequest) ProtoMessage

func (*DeleteAccountRequest) ProtoMessage()

func (*DeleteAccountRequest) ProtoReflect

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

func (*DeleteAccountRequest) Reset

func (x *DeleteAccountRequest) Reset()

func (*DeleteAccountRequest) String

func (x *DeleteAccountRequest) String() string

type DeleteAccountResponse

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

func (*DeleteAccountResponse) Descriptor deprecated

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

Deprecated: Use DeleteAccountResponse.ProtoReflect.Descriptor instead.

func (*DeleteAccountResponse) GetAccount

func (x *DeleteAccountResponse) GetAccount() *Account

func (*DeleteAccountResponse) ProtoMessage

func (*DeleteAccountResponse) ProtoMessage()

func (*DeleteAccountResponse) ProtoReflect

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

func (*DeleteAccountResponse) Reset

func (x *DeleteAccountResponse) Reset()

func (*DeleteAccountResponse) String

func (x *DeleteAccountResponse) String() string

type GetAccountByIdRequest

type GetAccountByIdRequest struct {
	AccountId string `protobuf:"bytes,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAccountByIdRequest) Descriptor deprecated

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

Deprecated: Use GetAccountByIdRequest.ProtoReflect.Descriptor instead.

func (*GetAccountByIdRequest) GetAccountId

func (x *GetAccountByIdRequest) GetAccountId() string

func (*GetAccountByIdRequest) ProtoMessage

func (*GetAccountByIdRequest) ProtoMessage()

func (*GetAccountByIdRequest) ProtoReflect

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

func (*GetAccountByIdRequest) Reset

func (x *GetAccountByIdRequest) Reset()

func (*GetAccountByIdRequest) String

func (x *GetAccountByIdRequest) String() string

type GetAccountByIdResponse

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

func (*GetAccountByIdResponse) Descriptor deprecated

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

Deprecated: Use GetAccountByIdResponse.ProtoReflect.Descriptor instead.

func (*GetAccountByIdResponse) GetAccount

func (x *GetAccountByIdResponse) GetAccount() *Account

func (*GetAccountByIdResponse) ProtoMessage

func (*GetAccountByIdResponse) ProtoMessage()

func (*GetAccountByIdResponse) ProtoReflect

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

func (*GetAccountByIdResponse) Reset

func (x *GetAccountByIdResponse) Reset()

func (*GetAccountByIdResponse) String

func (x *GetAccountByIdResponse) String() string

type GetAccountSessionRequest

type GetAccountSessionRequest struct {
	AccountId string `protobuf:"bytes,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAccountSessionRequest) Descriptor deprecated

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

Deprecated: Use GetAccountSessionRequest.ProtoReflect.Descriptor instead.

func (*GetAccountSessionRequest) GetAccountId

func (x *GetAccountSessionRequest) GetAccountId() string

func (*GetAccountSessionRequest) ProtoMessage

func (*GetAccountSessionRequest) ProtoMessage()

func (*GetAccountSessionRequest) ProtoReflect

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

func (*GetAccountSessionRequest) Reset

func (x *GetAccountSessionRequest) Reset()

func (*GetAccountSessionRequest) String

func (x *GetAccountSessionRequest) String() string

type GetAccountSessionResponse

type GetAccountSessionResponse struct {
	Session []*AccountSession `protobuf:"bytes,1,rep,name=session,proto3" json:"session,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAccountSessionResponse) Descriptor deprecated

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

Deprecated: Use GetAccountSessionResponse.ProtoReflect.Descriptor instead.

func (*GetAccountSessionResponse) GetSession

func (x *GetAccountSessionResponse) GetSession() []*AccountSession

func (*GetAccountSessionResponse) ProtoMessage

func (*GetAccountSessionResponse) ProtoMessage()

func (*GetAccountSessionResponse) ProtoReflect

func (*GetAccountSessionResponse) Reset

func (x *GetAccountSessionResponse) Reset()

func (*GetAccountSessionResponse) String

func (x *GetAccountSessionResponse) String() string

type LoginRequest

type LoginRequest struct {
	Email    string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
	Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

func (*LoginRequest) Descriptor deprecated

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

Deprecated: Use LoginRequest.ProtoReflect.Descriptor instead.

func (*LoginRequest) GetEmail

func (x *LoginRequest) GetEmail() string

func (*LoginRequest) GetPassword

func (x *LoginRequest) GetPassword() string

func (*LoginRequest) ProtoMessage

func (*LoginRequest) ProtoMessage()

func (*LoginRequest) ProtoReflect

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

func (*LoginRequest) Reset

func (x *LoginRequest) Reset()

func (*LoginRequest) String

func (x *LoginRequest) String() string

type LoginResponse

type LoginResponse struct {
	AccessToken      string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
	RefreshToken     string `protobuf:"bytes,2,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"`
	ExpiresIn        int64  `protobuf:"varint,3,opt,name=expires_in,json=expiresIn,proto3" json:"expires_in,omitempty"`
	RefreshExpiresIn int64  `protobuf:"varint,4,opt,name=refresh_expires_in,json=refreshExpiresIn,proto3" json:"refresh_expires_in,omitempty"`
	// contains filtered or unexported fields
}

func (*LoginResponse) Descriptor deprecated

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

Deprecated: Use LoginResponse.ProtoReflect.Descriptor instead.

func (*LoginResponse) GetAccessToken

func (x *LoginResponse) GetAccessToken() string

func (*LoginResponse) GetExpiresIn

func (x *LoginResponse) GetExpiresIn() int64

func (*LoginResponse) GetRefreshExpiresIn

func (x *LoginResponse) GetRefreshExpiresIn() int64

func (*LoginResponse) GetRefreshToken

func (x *LoginResponse) GetRefreshToken() string

func (*LoginResponse) ProtoMessage

func (*LoginResponse) ProtoMessage()

func (*LoginResponse) ProtoReflect

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

func (*LoginResponse) Reset

func (x *LoginResponse) Reset()

func (*LoginResponse) String

func (x *LoginResponse) String() string

type LogoutRequest

type LogoutRequest struct {
	RefreshToken string `protobuf:"bytes,1,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"`
	// contains filtered or unexported fields
}

func (*LogoutRequest) Descriptor deprecated

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

Deprecated: Use LogoutRequest.ProtoReflect.Descriptor instead.

func (*LogoutRequest) GetRefreshToken

func (x *LogoutRequest) GetRefreshToken() string

func (*LogoutRequest) ProtoMessage

func (*LogoutRequest) ProtoMessage()

func (*LogoutRequest) ProtoReflect

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

func (*LogoutRequest) Reset

func (x *LogoutRequest) Reset()

func (*LogoutRequest) String

func (x *LogoutRequest) String() string

type LogoutResponse

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

func (*LogoutResponse) Descriptor deprecated

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

Deprecated: Use LogoutResponse.ProtoReflect.Descriptor instead.

func (*LogoutResponse) ProtoMessage

func (*LogoutResponse) ProtoMessage()

func (*LogoutResponse) ProtoReflect

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

func (*LogoutResponse) Reset

func (x *LogoutResponse) Reset()

func (*LogoutResponse) String

func (x *LogoutResponse) String() string

type RefreshTokenRequest

type RefreshTokenRequest struct {
	RefreshToken string `protobuf:"bytes,1,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"`
	// contains filtered or unexported fields
}

func (*RefreshTokenRequest) Descriptor deprecated

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

Deprecated: Use RefreshTokenRequest.ProtoReflect.Descriptor instead.

func (*RefreshTokenRequest) GetRefreshToken

func (x *RefreshTokenRequest) GetRefreshToken() string

func (*RefreshTokenRequest) ProtoMessage

func (*RefreshTokenRequest) ProtoMessage()

func (*RefreshTokenRequest) ProtoReflect

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

func (*RefreshTokenRequest) Reset

func (x *RefreshTokenRequest) Reset()

func (*RefreshTokenRequest) String

func (x *RefreshTokenRequest) String() string

type RefreshTokenResponse

type RefreshTokenResponse struct {
	AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
	ExpiresIn   int64  `protobuf:"varint,2,opt,name=expires_in,json=expiresIn,proto3" json:"expires_in,omitempty"`
	// contains filtered or unexported fields
}

func (*RefreshTokenResponse) Descriptor deprecated

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

Deprecated: Use RefreshTokenResponse.ProtoReflect.Descriptor instead.

func (*RefreshTokenResponse) GetAccessToken

func (x *RefreshTokenResponse) GetAccessToken() string

func (*RefreshTokenResponse) GetExpiresIn

func (x *RefreshTokenResponse) GetExpiresIn() int64

func (*RefreshTokenResponse) ProtoMessage

func (*RefreshTokenResponse) ProtoMessage()

func (*RefreshTokenResponse) ProtoReflect

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

func (*RefreshTokenResponse) Reset

func (x *RefreshTokenResponse) Reset()

func (*RefreshTokenResponse) String

func (x *RefreshTokenResponse) String() string

type RegisterRequest

type RegisterRequest struct {
	Email     string  `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
	FirstName *string `protobuf:"bytes,2,opt,name=first_name,json=firstName,proto3,oneof" json:"first_name,omitempty"`
	LastName  string  `protobuf:"bytes,3,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"`
	Password  string  `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

func (*RegisterRequest) Descriptor deprecated

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

Deprecated: Use RegisterRequest.ProtoReflect.Descriptor instead.

func (*RegisterRequest) GetEmail

func (x *RegisterRequest) GetEmail() string

func (*RegisterRequest) GetFirstName

func (x *RegisterRequest) GetFirstName() string

func (*RegisterRequest) GetLastName

func (x *RegisterRequest) GetLastName() string

func (*RegisterRequest) GetPassword

func (x *RegisterRequest) GetPassword() string

func (*RegisterRequest) ProtoMessage

func (*RegisterRequest) ProtoMessage()

func (*RegisterRequest) ProtoReflect

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

func (*RegisterRequest) Reset

func (x *RegisterRequest) Reset()

func (*RegisterRequest) String

func (x *RegisterRequest) String() string

type RegisterResponse

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

func (*RegisterResponse) Descriptor deprecated

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

Deprecated: Use RegisterResponse.ProtoReflect.Descriptor instead.

func (*RegisterResponse) ProtoMessage

func (*RegisterResponse) ProtoMessage()

func (*RegisterResponse) ProtoReflect

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

func (*RegisterResponse) Reset

func (x *RegisterResponse) Reset()

func (*RegisterResponse) String

func (x *RegisterResponse) String() string

type RetrospectTokenRequest

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

func (*RetrospectTokenRequest) Descriptor deprecated

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

Deprecated: Use RetrospectTokenRequest.ProtoReflect.Descriptor instead.

func (*RetrospectTokenRequest) GetToken

func (x *RetrospectTokenRequest) GetToken() string

func (*RetrospectTokenRequest) ProtoMessage

func (*RetrospectTokenRequest) ProtoMessage()

func (*RetrospectTokenRequest) ProtoReflect

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

func (*RetrospectTokenRequest) Reset

func (x *RetrospectTokenRequest) Reset()

func (*RetrospectTokenRequest) String

func (x *RetrospectTokenRequest) String() string

type RetrospectTokenResponse

type RetrospectTokenResponse struct {
	Active bool `protobuf:"varint,1,opt,name=active,proto3" json:"active,omitempty"`
	// contains filtered or unexported fields
}

func (*RetrospectTokenResponse) Descriptor deprecated

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

Deprecated: Use RetrospectTokenResponse.ProtoReflect.Descriptor instead.

func (*RetrospectTokenResponse) GetActive

func (x *RetrospectTokenResponse) GetActive() bool

func (*RetrospectTokenResponse) ProtoMessage

func (*RetrospectTokenResponse) ProtoMessage()

func (*RetrospectTokenResponse) ProtoReflect

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

func (*RetrospectTokenResponse) Reset

func (x *RetrospectTokenResponse) Reset()

func (*RetrospectTokenResponse) String

func (x *RetrospectTokenResponse) String() string

type UnimplementedAccountServiceServer

type UnimplementedAccountServiceServer struct{}

UnimplementedAccountServiceServer 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 (UnimplementedAccountServiceServer) DeleteAccount

func (UnimplementedAccountServiceServer) GetAccountById

func (UnimplementedAccountServiceServer) GetAccountSession

func (UnimplementedAccountServiceServer) UpdateAccount

type UnimplementedAuthServiceServer

type UnimplementedAuthServiceServer struct{}

UnimplementedAuthServiceServer 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 (UnimplementedAuthServiceServer) DecodeAccessToken

func (UnimplementedAuthServiceServer) Login

func (UnimplementedAuthServiceServer) Logout

func (UnimplementedAuthServiceServer) RefreshToken

func (UnimplementedAuthServiceServer) Register

func (UnimplementedAuthServiceServer) RetrospectToken

type UnsafeAccountServiceServer

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

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

type UnsafeAuthServiceServer

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

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

type UpdateAccountPasswordRequest

type UpdateAccountPasswordRequest struct {
	AccountId string `protobuf:"bytes,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
	// Request body
	Body *UpdateAccountPasswordRequest_Body `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateAccountPasswordRequest) Descriptor deprecated

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

Deprecated: Use UpdateAccountPasswordRequest.ProtoReflect.Descriptor instead.

func (*UpdateAccountPasswordRequest) GetAccountId

func (x *UpdateAccountPasswordRequest) GetAccountId() string

func (*UpdateAccountPasswordRequest) GetBody

func (*UpdateAccountPasswordRequest) ProtoMessage

func (*UpdateAccountPasswordRequest) ProtoMessage()

func (*UpdateAccountPasswordRequest) ProtoReflect

func (*UpdateAccountPasswordRequest) Reset

func (x *UpdateAccountPasswordRequest) Reset()

func (*UpdateAccountPasswordRequest) String

type UpdateAccountPasswordRequest_Body

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

func (*UpdateAccountPasswordRequest_Body) Descriptor deprecated

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

Deprecated: Use UpdateAccountPasswordRequest_Body.ProtoReflect.Descriptor instead.

func (*UpdateAccountPasswordRequest_Body) GetPassword

func (x *UpdateAccountPasswordRequest_Body) GetPassword() string

func (*UpdateAccountPasswordRequest_Body) ProtoMessage

func (*UpdateAccountPasswordRequest_Body) ProtoMessage()

func (*UpdateAccountPasswordRequest_Body) ProtoReflect

func (*UpdateAccountPasswordRequest_Body) Reset

func (*UpdateAccountPasswordRequest_Body) String

type UpdateAccountPasswordResponse

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

func (*UpdateAccountPasswordResponse) Descriptor deprecated

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

Deprecated: Use UpdateAccountPasswordResponse.ProtoReflect.Descriptor instead.

func (*UpdateAccountPasswordResponse) GetAccount

func (x *UpdateAccountPasswordResponse) GetAccount() *Account

func (*UpdateAccountPasswordResponse) ProtoMessage

func (*UpdateAccountPasswordResponse) ProtoMessage()

func (*UpdateAccountPasswordResponse) ProtoReflect

func (*UpdateAccountPasswordResponse) Reset

func (x *UpdateAccountPasswordResponse) Reset()

func (*UpdateAccountPasswordResponse) String

type UpdateAccountRequest

type UpdateAccountRequest struct {
	AccountId string `protobuf:"bytes,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
	// Request body
	Body *UpdateAccountRequest_Body `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateAccountRequest) Descriptor deprecated

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

Deprecated: Use UpdateAccountRequest.ProtoReflect.Descriptor instead.

func (*UpdateAccountRequest) GetAccountId

func (x *UpdateAccountRequest) GetAccountId() string

func (*UpdateAccountRequest) GetBody

func (*UpdateAccountRequest) ProtoMessage

func (*UpdateAccountRequest) ProtoMessage()

func (*UpdateAccountRequest) ProtoReflect

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

func (*UpdateAccountRequest) Reset

func (x *UpdateAccountRequest) Reset()

func (*UpdateAccountRequest) String

func (x *UpdateAccountRequest) String() string

type UpdateAccountRequest_Body

type UpdateAccountRequest_Body struct {
	FirstName *string `protobuf:"bytes,1,opt,name=first_name,json=firstName,proto3,oneof" json:"first_name,omitempty"`
	LastName  *string `protobuf:"bytes,2,opt,name=last_name,json=lastName,proto3,oneof" json:"last_name,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateAccountRequest_Body) Descriptor deprecated

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

Deprecated: Use UpdateAccountRequest_Body.ProtoReflect.Descriptor instead.

func (*UpdateAccountRequest_Body) GetFirstName

func (x *UpdateAccountRequest_Body) GetFirstName() string

func (*UpdateAccountRequest_Body) GetLastName

func (x *UpdateAccountRequest_Body) GetLastName() string

func (*UpdateAccountRequest_Body) ProtoMessage

func (*UpdateAccountRequest_Body) ProtoMessage()

func (*UpdateAccountRequest_Body) ProtoReflect

func (*UpdateAccountRequest_Body) Reset

func (x *UpdateAccountRequest_Body) Reset()

func (*UpdateAccountRequest_Body) String

func (x *UpdateAccountRequest_Body) String() string

type UpdateAccountResponse

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

func (*UpdateAccountResponse) Descriptor deprecated

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

Deprecated: Use UpdateAccountResponse.ProtoReflect.Descriptor instead.

func (*UpdateAccountResponse) GetAccount

func (x *UpdateAccountResponse) GetAccount() *Account

func (*UpdateAccountResponse) ProtoMessage

func (*UpdateAccountResponse) ProtoMessage()

func (*UpdateAccountResponse) ProtoReflect

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

func (*UpdateAccountResponse) Reset

func (x *UpdateAccountResponse) Reset()

func (*UpdateAccountResponse) String

func (x *UpdateAccountResponse) String() string

Jump to

Keyboard shortcuts

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