pb

package
v0.0.0-...-0b18b6b Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Overview

Package pb is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	EenergyService_CreateUser_FullMethodName         = "/pb.EenergyService/CreateUser"
	EenergyService_UpdateUser_FullMethodName         = "/pb.EenergyService/UpdateUser"
	EenergyService_LoginUser_FullMethodName          = "/pb.EenergyService/LoginUser"
	EenergyService_VerifyEmail_FullMethodName        = "/pb.EenergyService/VerifyEmail"
	EenergyService_TransferEnergy_FullMethodName     = "/pb.EenergyService/TransferEnergy"
	EenergyService_ListUserAccounts_FullMethodName   = "/pb.EenergyService/ListUserAccounts"
	EenergyService_ListAccountEntries_FullMethodName = "/pb.EenergyService/ListAccountEntries"
	EenergyService_CreateAccount_FullMethodName      = "/pb.EenergyService/CreateAccount"
)

Variables

View Source
var EenergyService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "pb.EenergyService",
	HandlerType: (*EenergyServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateUser",
			Handler:    _EenergyService_CreateUser_Handler,
		},
		{
			MethodName: "UpdateUser",
			Handler:    _EenergyService_UpdateUser_Handler,
		},
		{
			MethodName: "LoginUser",
			Handler:    _EenergyService_LoginUser_Handler,
		},
		{
			MethodName: "VerifyEmail",
			Handler:    _EenergyService_VerifyEmail_Handler,
		},
		{
			MethodName: "TransferEnergy",
			Handler:    _EenergyService_TransferEnergy_Handler,
		},
		{
			MethodName: "ListUserAccounts",
			Handler:    _EenergyService_ListUserAccounts_Handler,
		},
		{
			MethodName: "ListAccountEntries",
			Handler:    _EenergyService_ListAccountEntries_Handler,
		},
		{
			MethodName: "CreateAccount",
			Handler:    _EenergyService_CreateAccount_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "service_eenergy.proto",
}

EenergyService_ServiceDesc is the grpc.ServiceDesc for EenergyService 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_proto protoreflect.FileDescriptor
View Source
var File_rpc_create_account_proto protoreflect.FileDescriptor
View Source
var File_rpc_create_user_proto protoreflect.FileDescriptor
View Source
var File_rpc_list_account_entries_proto protoreflect.FileDescriptor
View Source
var File_rpc_list_user_accounts_proto protoreflect.FileDescriptor
View Source
var File_rpc_login_user_proto protoreflect.FileDescriptor
View Source
var File_rpc_transfer_energy_proto protoreflect.FileDescriptor
View Source
var File_rpc_update_user_proto protoreflect.FileDescriptor
View Source
var File_rpc_verify_email_proto protoreflect.FileDescriptor
View Source
var File_service_eenergy_proto protoreflect.FileDescriptor

Functions

func RegisterEenergyServiceHandler

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

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

func RegisterEenergyServiceHandlerClient

func RegisterEenergyServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client EenergyServiceClient) error

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

func RegisterEenergyServiceHandlerFromEndpoint

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

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

func RegisterEenergyServiceHandlerServer

func RegisterEenergyServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server EenergyServiceServer) error

RegisterEenergyServiceHandlerServer registers the http handlers for service EenergyService to "mux". UnaryRPC :call EenergyServiceServer 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 RegisterEenergyServiceHandlerFromEndpoint instead.

func RegisterEenergyServiceServer

func RegisterEenergyServiceServer(s grpc.ServiceRegistrar, srv EenergyServiceServer)

Types

type Account

type Account struct {
	Id        int64                  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Owner     string                 `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"`
	Balance   int64                  `protobuf:"varint,3,opt,name=balance,proto3" json:"balance,omitempty"`
	Unit      string                 `protobuf:"bytes,4,opt,name=unit,proto3" json:"unit,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) GetBalance

func (x *Account) GetBalance() int64

func (*Account) GetCreatedAt

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

func (*Account) GetId

func (x *Account) GetId() int64

func (*Account) GetOwner

func (x *Account) GetOwner() string

func (*Account) GetUnit

func (x *Account) GetUnit() 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 CreateAccountRequest

type CreateAccountRequest struct {
	Username *string `protobuf:"bytes,1,opt,name=username,proto3,oneof" json:"username,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateAccountRequest) Descriptor deprecated

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

Deprecated: Use CreateAccountRequest.ProtoReflect.Descriptor instead.

func (*CreateAccountRequest) GetUsername

func (x *CreateAccountRequest) GetUsername() string

func (*CreateAccountRequest) ProtoMessage

func (*CreateAccountRequest) ProtoMessage()

func (*CreateAccountRequest) ProtoReflect

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

func (*CreateAccountRequest) Reset

func (x *CreateAccountRequest) Reset()

func (*CreateAccountRequest) String

func (x *CreateAccountRequest) String() string

type CreateAccountResponse

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

func (*CreateAccountResponse) Descriptor deprecated

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

Deprecated: Use CreateAccountResponse.ProtoReflect.Descriptor instead.

func (*CreateAccountResponse) GetAccount

func (x *CreateAccountResponse) GetAccount() *Account

func (*CreateAccountResponse) ProtoMessage

func (*CreateAccountResponse) ProtoMessage()

func (*CreateAccountResponse) ProtoReflect

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

func (*CreateAccountResponse) Reset

func (x *CreateAccountResponse) Reset()

func (*CreateAccountResponse) String

func (x *CreateAccountResponse) String() string

type CreateUserRequest

type CreateUserRequest struct {
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	FullName string `protobuf:"bytes,2,opt,name=full_name,json=fullName,proto3" json:"full_name,omitempty"`
	Email    string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
	Password string `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateUserRequest) Descriptor deprecated

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

Deprecated: Use CreateUserRequest.ProtoReflect.Descriptor instead.

func (*CreateUserRequest) GetEmail

func (x *CreateUserRequest) GetEmail() string

func (*CreateUserRequest) GetFullName

func (x *CreateUserRequest) GetFullName() string

func (*CreateUserRequest) GetPassword

func (x *CreateUserRequest) GetPassword() string

func (*CreateUserRequest) GetUsername

func (x *CreateUserRequest) GetUsername() string

func (*CreateUserRequest) ProtoMessage

func (*CreateUserRequest) ProtoMessage()

func (*CreateUserRequest) ProtoReflect

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

func (*CreateUserRequest) Reset

func (x *CreateUserRequest) Reset()

func (*CreateUserRequest) String

func (x *CreateUserRequest) String() string

type CreateUserResponse

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

func (*CreateUserResponse) Descriptor deprecated

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

Deprecated: Use CreateUserResponse.ProtoReflect.Descriptor instead.

func (*CreateUserResponse) GetUser

func (x *CreateUserResponse) GetUser() *User

func (*CreateUserResponse) ProtoMessage

func (*CreateUserResponse) ProtoMessage()

func (*CreateUserResponse) ProtoReflect

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

func (*CreateUserResponse) Reset

func (x *CreateUserResponse) Reset()

func (*CreateUserResponse) String

func (x *CreateUserResponse) String() string

type EenergyServiceClient

EenergyServiceClient is the client API for EenergyService 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 EenergyServiceServer

EenergyServiceServer is the server API for EenergyService service. All implementations must embed UnimplementedEenergyServiceServer for forward compatibility

type Entry

type Entry struct {
	Id        int64                  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	AccountId int64                  `protobuf:"varint,2,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
	Amount    int64                  `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"`
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// contains filtered or unexported fields
}

func (*Entry) Descriptor deprecated

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

Deprecated: Use Entry.ProtoReflect.Descriptor instead.

func (*Entry) GetAccountId

func (x *Entry) GetAccountId() int64

func (*Entry) GetAmount

func (x *Entry) GetAmount() int64

func (*Entry) GetCreatedAt

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

func (*Entry) GetId

func (x *Entry) GetId() int64

func (*Entry) ProtoMessage

func (*Entry) ProtoMessage()

func (*Entry) ProtoReflect

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

func (*Entry) Reset

func (x *Entry) Reset()

func (*Entry) String

func (x *Entry) String() string

type ListAccountEntriesRequest

type ListAccountEntriesRequest struct {
	AccountId int64 `protobuf:"varint,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
	Limit     int32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
	Offset    int32 `protobuf:"varint,3,opt,name=offset,proto3" json:"offset,omitempty"`
	// contains filtered or unexported fields
}

func (*ListAccountEntriesRequest) Descriptor deprecated

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

Deprecated: Use ListAccountEntriesRequest.ProtoReflect.Descriptor instead.

func (*ListAccountEntriesRequest) GetAccountId

func (x *ListAccountEntriesRequest) GetAccountId() int64

func (*ListAccountEntriesRequest) GetLimit

func (x *ListAccountEntriesRequest) GetLimit() int32

func (*ListAccountEntriesRequest) GetOffset

func (x *ListAccountEntriesRequest) GetOffset() int32

func (*ListAccountEntriesRequest) ProtoMessage

func (*ListAccountEntriesRequest) ProtoMessage()

func (*ListAccountEntriesRequest) ProtoReflect

func (*ListAccountEntriesRequest) Reset

func (x *ListAccountEntriesRequest) Reset()

func (*ListAccountEntriesRequest) String

func (x *ListAccountEntriesRequest) String() string

type ListAccountEntriesResponse

type ListAccountEntriesResponse struct {
	Entries []*Entry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"`
	// contains filtered or unexported fields
}

func (*ListAccountEntriesResponse) Descriptor deprecated

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

Deprecated: Use ListAccountEntriesResponse.ProtoReflect.Descriptor instead.

func (*ListAccountEntriesResponse) GetEntries

func (x *ListAccountEntriesResponse) GetEntries() []*Entry

func (*ListAccountEntriesResponse) ProtoMessage

func (*ListAccountEntriesResponse) ProtoMessage()

func (*ListAccountEntriesResponse) ProtoReflect

func (*ListAccountEntriesResponse) Reset

func (x *ListAccountEntriesResponse) Reset()

func (*ListAccountEntriesResponse) String

func (x *ListAccountEntriesResponse) String() string

type ListUserAccountsRequest

type ListUserAccountsRequest struct {
	Username *string `protobuf:"bytes,1,opt,name=username,proto3,oneof" json:"username,omitempty"`
	Limit    int32   `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
	Offset   int32   `protobuf:"varint,3,opt,name=offset,proto3" json:"offset,omitempty"`
	// contains filtered or unexported fields
}

func (*ListUserAccountsRequest) Descriptor deprecated

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

Deprecated: Use ListUserAccountsRequest.ProtoReflect.Descriptor instead.

func (*ListUserAccountsRequest) GetLimit

func (x *ListUserAccountsRequest) GetLimit() int32

func (*ListUserAccountsRequest) GetOffset

func (x *ListUserAccountsRequest) GetOffset() int32

func (*ListUserAccountsRequest) GetUsername

func (x *ListUserAccountsRequest) GetUsername() string

func (*ListUserAccountsRequest) ProtoMessage

func (*ListUserAccountsRequest) ProtoMessage()

func (*ListUserAccountsRequest) ProtoReflect

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

func (*ListUserAccountsRequest) Reset

func (x *ListUserAccountsRequest) Reset()

func (*ListUserAccountsRequest) String

func (x *ListUserAccountsRequest) String() string

type ListUserAccountsResponse

type ListUserAccountsResponse struct {
	Accounts []*Account `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts,omitempty"`
	// contains filtered or unexported fields
}

func (*ListUserAccountsResponse) Descriptor deprecated

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

Deprecated: Use ListUserAccountsResponse.ProtoReflect.Descriptor instead.

func (*ListUserAccountsResponse) GetAccounts

func (x *ListUserAccountsResponse) GetAccounts() []*Account

func (*ListUserAccountsResponse) ProtoMessage

func (*ListUserAccountsResponse) ProtoMessage()

func (*ListUserAccountsResponse) ProtoReflect

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

func (*ListUserAccountsResponse) Reset

func (x *ListUserAccountsResponse) Reset()

func (*ListUserAccountsResponse) String

func (x *ListUserAccountsResponse) String() string

type LoginUserRequest

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

func (*LoginUserRequest) Descriptor deprecated

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

Deprecated: Use LoginUserRequest.ProtoReflect.Descriptor instead.

func (*LoginUserRequest) GetPassword

func (x *LoginUserRequest) GetPassword() string

func (*LoginUserRequest) GetUsername

func (x *LoginUserRequest) GetUsername() string

func (*LoginUserRequest) ProtoMessage

func (*LoginUserRequest) ProtoMessage()

func (*LoginUserRequest) ProtoReflect

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

func (*LoginUserRequest) Reset

func (x *LoginUserRequest) Reset()

func (*LoginUserRequest) String

func (x *LoginUserRequest) String() string

type LoginUserResponse

type LoginUserResponse struct {
	User                  *User                  `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	SessionId             string                 `protobuf:"bytes,2,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	AccessToken           string                 `protobuf:"bytes,3,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
	AccessTokenExpiresAt  *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=access_token_expires_at,json=accessTokenExpiresAt,proto3" json:"access_token_expires_at,omitempty"`
	RefreshToken          string                 `protobuf:"bytes,5,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"`
	RefreshTokenExpiresAt *timestamppb.Timestamp `` /* 128-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*LoginUserResponse) Descriptor deprecated

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

Deprecated: Use LoginUserResponse.ProtoReflect.Descriptor instead.

func (*LoginUserResponse) GetAccessToken

func (x *LoginUserResponse) GetAccessToken() string

func (*LoginUserResponse) GetAccessTokenExpiresAt

func (x *LoginUserResponse) GetAccessTokenExpiresAt() *timestamppb.Timestamp

func (*LoginUserResponse) GetRefreshToken

func (x *LoginUserResponse) GetRefreshToken() string

func (*LoginUserResponse) GetRefreshTokenExpiresAt

func (x *LoginUserResponse) GetRefreshTokenExpiresAt() *timestamppb.Timestamp

func (*LoginUserResponse) GetSessionId

func (x *LoginUserResponse) GetSessionId() string

func (*LoginUserResponse) GetUser

func (x *LoginUserResponse) GetUser() *User

func (*LoginUserResponse) ProtoMessage

func (*LoginUserResponse) ProtoMessage()

func (*LoginUserResponse) ProtoReflect

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

func (*LoginUserResponse) Reset

func (x *LoginUserResponse) Reset()

func (*LoginUserResponse) String

func (x *LoginUserResponse) String() string

type Transfer

type Transfer struct {
	Id            int64                  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	FromAccountId int64                  `protobuf:"varint,2,opt,name=from_account_id,json=fromAccountId,proto3" json:"from_account_id,omitempty"`
	ToAccountId   int64                  `protobuf:"varint,3,opt,name=to_account_id,json=toAccountId,proto3" json:"to_account_id,omitempty"`
	Amount        int64                  `protobuf:"varint,4,opt,name=amount,proto3" json:"amount,omitempty"`
	CreatedAt     *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// contains filtered or unexported fields
}

func (*Transfer) Descriptor deprecated

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

Deprecated: Use Transfer.ProtoReflect.Descriptor instead.

func (*Transfer) GetAmount

func (x *Transfer) GetAmount() int64

func (*Transfer) GetCreatedAt

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

func (*Transfer) GetFromAccountId

func (x *Transfer) GetFromAccountId() int64

func (*Transfer) GetId

func (x *Transfer) GetId() int64

func (*Transfer) GetToAccountId

func (x *Transfer) GetToAccountId() int64

func (*Transfer) ProtoMessage

func (*Transfer) ProtoMessage()

func (*Transfer) ProtoReflect

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

func (*Transfer) Reset

func (x *Transfer) Reset()

func (*Transfer) String

func (x *Transfer) String() string

type TransferEnergyRequest

type TransferEnergyRequest struct {
	FromAccountId int64 `protobuf:"varint,1,opt,name=from_account_id,json=fromAccountId,proto3" json:"from_account_id,omitempty"`
	ToAccountId   int64 `protobuf:"varint,2,opt,name=to_account_id,json=toAccountId,proto3" json:"to_account_id,omitempty"`
	Amount        int64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

func (*TransferEnergyRequest) Descriptor deprecated

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

Deprecated: Use TransferEnergyRequest.ProtoReflect.Descriptor instead.

func (*TransferEnergyRequest) GetAmount

func (x *TransferEnergyRequest) GetAmount() int64

func (*TransferEnergyRequest) GetFromAccountId

func (x *TransferEnergyRequest) GetFromAccountId() int64

func (*TransferEnergyRequest) GetToAccountId

func (x *TransferEnergyRequest) GetToAccountId() int64

func (*TransferEnergyRequest) ProtoMessage

func (*TransferEnergyRequest) ProtoMessage()

func (*TransferEnergyRequest) ProtoReflect

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

func (*TransferEnergyRequest) Reset

func (x *TransferEnergyRequest) Reset()

func (*TransferEnergyRequest) String

func (x *TransferEnergyRequest) String() string

type TransferEnergyResponse

type TransferEnergyResponse struct {
	Transfer    *Transfer `protobuf:"bytes,1,opt,name=transfer,proto3" json:"transfer,omitempty"`
	FromAccount *Account  `protobuf:"bytes,2,opt,name=from_account,json=fromAccount,proto3" json:"from_account,omitempty"`
	// Account to_account = 3; // don't expose other user account to the sender
	FromEntry *Entry `protobuf:"bytes,4,opt,name=from_entry,json=fromEntry,proto3" json:"from_entry,omitempty"` // Entry to_entry = 5; // don't expose other user account to the sender
	// contains filtered or unexported fields
}

func (*TransferEnergyResponse) Descriptor deprecated

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

Deprecated: Use TransferEnergyResponse.ProtoReflect.Descriptor instead.

func (*TransferEnergyResponse) GetFromAccount

func (x *TransferEnergyResponse) GetFromAccount() *Account

func (*TransferEnergyResponse) GetFromEntry

func (x *TransferEnergyResponse) GetFromEntry() *Entry

func (*TransferEnergyResponse) GetTransfer

func (x *TransferEnergyResponse) GetTransfer() *Transfer

func (*TransferEnergyResponse) ProtoMessage

func (*TransferEnergyResponse) ProtoMessage()

func (*TransferEnergyResponse) ProtoReflect

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

func (*TransferEnergyResponse) Reset

func (x *TransferEnergyResponse) Reset()

func (*TransferEnergyResponse) String

func (x *TransferEnergyResponse) String() string

type UnimplementedEenergyServiceServer

type UnimplementedEenergyServiceServer struct {
}

UnimplementedEenergyServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedEenergyServiceServer) CreateAccount

func (UnimplementedEenergyServiceServer) CreateUser

func (UnimplementedEenergyServiceServer) ListAccountEntries

func (UnimplementedEenergyServiceServer) ListUserAccounts

func (UnimplementedEenergyServiceServer) LoginUser

func (UnimplementedEenergyServiceServer) TransferEnergy

func (UnimplementedEenergyServiceServer) UpdateUser

func (UnimplementedEenergyServiceServer) VerifyEmail

type UnsafeEenergyServiceServer

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

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

type UpdateUserRequest

type UpdateUserRequest struct {
	Username string  `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	FullName *string `protobuf:"bytes,2,opt,name=full_name,json=fullName,proto3,oneof" json:"full_name,omitempty"`
	Email    *string `protobuf:"bytes,3,opt,name=email,proto3,oneof" json:"email,omitempty"`
	Password *string `protobuf:"bytes,4,opt,name=password,proto3,oneof" json:"password,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateUserRequest) Descriptor deprecated

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

Deprecated: Use UpdateUserRequest.ProtoReflect.Descriptor instead.

func (*UpdateUserRequest) GetEmail

func (x *UpdateUserRequest) GetEmail() string

func (*UpdateUserRequest) GetFullName

func (x *UpdateUserRequest) GetFullName() string

func (*UpdateUserRequest) GetPassword

func (x *UpdateUserRequest) GetPassword() string

func (*UpdateUserRequest) GetUsername

func (x *UpdateUserRequest) GetUsername() string

func (*UpdateUserRequest) ProtoMessage

func (*UpdateUserRequest) ProtoMessage()

func (*UpdateUserRequest) ProtoReflect

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

func (*UpdateUserRequest) Reset

func (x *UpdateUserRequest) Reset()

func (*UpdateUserRequest) String

func (x *UpdateUserRequest) String() string

type UpdateUserResponse

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

func (*UpdateUserResponse) Descriptor deprecated

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

Deprecated: Use UpdateUserResponse.ProtoReflect.Descriptor instead.

func (*UpdateUserResponse) GetUser

func (x *UpdateUserResponse) GetUser() *User

func (*UpdateUserResponse) ProtoMessage

func (*UpdateUserResponse) ProtoMessage()

func (*UpdateUserResponse) ProtoReflect

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

func (*UpdateUserResponse) Reset

func (x *UpdateUserResponse) Reset()

func (*UpdateUserResponse) String

func (x *UpdateUserResponse) String() string

type User

type User struct {
	Username          string                 `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	FullName          string                 `protobuf:"bytes,2,opt,name=full_name,json=fullName,proto3" json:"full_name,omitempty"`
	Email             string                 `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
	PasswordChangedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=password_changed_at,json=passwordChangedAt,proto3" json:"password_changed_at,omitempty"`
	CreatedAt         *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// contains filtered or unexported fields
}

func (*User) Descriptor deprecated

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

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetCreatedAt

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

func (*User) GetEmail

func (x *User) GetEmail() string

func (*User) GetFullName

func (x *User) GetFullName() string

func (*User) GetPasswordChangedAt

func (x *User) GetPasswordChangedAt() *timestamppb.Timestamp

func (*User) GetUsername

func (x *User) GetUsername() string

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

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

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

type VerifyEmailRequest

type VerifyEmailRequest struct {
	EmailId    int64  `protobuf:"varint,1,opt,name=email_id,json=emailId,proto3" json:"email_id,omitempty"`
	SecretCode string `protobuf:"bytes,2,opt,name=secret_code,json=secretCode,proto3" json:"secret_code,omitempty"`
	// contains filtered or unexported fields
}

func (*VerifyEmailRequest) Descriptor deprecated

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

Deprecated: Use VerifyEmailRequest.ProtoReflect.Descriptor instead.

func (*VerifyEmailRequest) GetEmailId

func (x *VerifyEmailRequest) GetEmailId() int64

func (*VerifyEmailRequest) GetSecretCode

func (x *VerifyEmailRequest) GetSecretCode() string

func (*VerifyEmailRequest) ProtoMessage

func (*VerifyEmailRequest) ProtoMessage()

func (*VerifyEmailRequest) ProtoReflect

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

func (*VerifyEmailRequest) Reset

func (x *VerifyEmailRequest) Reset()

func (*VerifyEmailRequest) String

func (x *VerifyEmailRequest) String() string

type VerifyEmailResponse

type VerifyEmailResponse struct {
	IsVerified bool `protobuf:"varint,1,opt,name=is_verified,json=isVerified,proto3" json:"is_verified,omitempty"`
	// contains filtered or unexported fields
}

func (*VerifyEmailResponse) Descriptor deprecated

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

Deprecated: Use VerifyEmailResponse.ProtoReflect.Descriptor instead.

func (*VerifyEmailResponse) GetIsVerified

func (x *VerifyEmailResponse) GetIsVerified() bool

func (*VerifyEmailResponse) ProtoMessage

func (*VerifyEmailResponse) ProtoMessage()

func (*VerifyEmailResponse) ProtoReflect

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

func (*VerifyEmailResponse) Reset

func (x *VerifyEmailResponse) Reset()

func (*VerifyEmailResponse) String

func (x *VerifyEmailResponse) String() string

Jump to

Keyboard shortcuts

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