Documentation ¶
Index ¶
- Variables
- func RegisterAccountingServer(s grpc.ServiceRegistrar, srv AccountingServer)
- type AccountingClient
- type AccountingServer
- type ClientPublicInfo
- func (*ClientPublicInfo) Descriptor() ([]byte, []int)deprecated
- func (x *ClientPublicInfo) GetCreated() *timestamppb.Timestamp
- func (x *ClientPublicInfo) GetEmail() string
- func (x *ClientPublicInfo) GetName() string
- func (x *ClientPublicInfo) GetPasswordUpdated() *timestamppb.Timestamp
- func (x *ClientPublicInfo) GetSurname() string
- func (x *ClientPublicInfo) GetUpdated() *timestamppb.Timestamp
- func (*ClientPublicInfo) ProtoMessage()
- func (x *ClientPublicInfo) ProtoReflect() protoreflect.Message
- func (x *ClientPublicInfo) Reset()
- func (x *ClientPublicInfo) String() string
- type CreateClientProfileRequest
- func (*CreateClientProfileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateClientProfileRequest) GetEmail() string
- func (x *CreateClientProfileRequest) GetName() string
- func (x *CreateClientProfileRequest) GetPassword() string
- func (x *CreateClientProfileRequest) GetSurname() string
- func (*CreateClientProfileRequest) ProtoMessage()
- func (x *CreateClientProfileRequest) ProtoReflect() protoreflect.Message
- func (x *CreateClientProfileRequest) Reset()
- func (x *CreateClientProfileRequest) String() string
- type CreateClientProfileResponse
- func (*CreateClientProfileResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateClientProfileResponse) GetId() string
- func (*CreateClientProfileResponse) ProtoMessage()
- func (x *CreateClientProfileResponse) ProtoReflect() protoreflect.Message
- func (x *CreateClientProfileResponse) Reset()
- func (x *CreateClientProfileResponse) String() string
- type CreateClientTokenRequest
- func (*CreateClientTokenRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateClientTokenRequest) GetEmail() string
- func (x *CreateClientTokenRequest) GetPassword() string
- func (*CreateClientTokenRequest) ProtoMessage()
- func (x *CreateClientTokenRequest) ProtoReflect() protoreflect.Message
- func (x *CreateClientTokenRequest) Reset()
- func (x *CreateClientTokenRequest) String() string
- type CreateClientTokenResponse
- func (*CreateClientTokenResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateClientTokenResponse) GetAccessToken() string
- func (x *CreateClientTokenResponse) GetAccessTokenExpired() *timestamppb.Timestamp
- func (x *CreateClientTokenResponse) GetClientInfo() *ClientPublicInfo
- func (x *CreateClientTokenResponse) GetRefreshToken() string
- func (x *CreateClientTokenResponse) GetRefreshTokenExpired() *timestamppb.Timestamp
- func (x *CreateClientTokenResponse) GetSessionId() string
- func (*CreateClientTokenResponse) ProtoMessage()
- func (x *CreateClientTokenResponse) ProtoReflect() protoreflect.Message
- func (x *CreateClientTokenResponse) Reset()
- func (x *CreateClientTokenResponse) String() string
- type UnimplementedAccountingServer
- type UnsafeAccountingServer
Constants ¶
This section is empty.
Variables ¶
var Accounting_ServiceDesc = grpc.ServiceDesc{ ServiceName: "pb.Accounting", HandlerType: (*AccountingServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateClientProfile", Handler: _Accounting_CreateClientProfile_Handler, }, { MethodName: "CreateClientToken", Handler: _Accounting_CreateClientToken_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "service_accounting_service.proto", }
Accounting_ServiceDesc is the grpc.ServiceDesc for Accounting service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_client_public_info_proto protoreflect.FileDescriptor
var File_rpc_create_client_profile_proto protoreflect.FileDescriptor
var File_rpc_create_client_token_proto protoreflect.FileDescriptor
var File_service_accounting_service_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAccountingServer ¶
func RegisterAccountingServer(s grpc.ServiceRegistrar, srv AccountingServer)
Types ¶
type AccountingClient ¶
type AccountingClient interface { CreateClientProfile(ctx context.Context, in *CreateClientProfileRequest, opts ...grpc.CallOption) (*CreateClientProfileResponse, error) CreateClientToken(ctx context.Context, in *CreateClientTokenRequest, opts ...grpc.CallOption) (*CreateClientTokenResponse, error) }
AccountingClient is the client API for Accounting 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 NewAccountingClient ¶
func NewAccountingClient(cc grpc.ClientConnInterface) AccountingClient
type AccountingServer ¶
type AccountingServer interface { CreateClientProfile(context.Context, *CreateClientProfileRequest) (*CreateClientProfileResponse, error) CreateClientToken(context.Context, *CreateClientTokenRequest) (*CreateClientTokenResponse, error) // contains filtered or unexported methods }
AccountingServer is the server API for Accounting service. All implementations must embed UnimplementedAccountingServer for forward compatibility
type ClientPublicInfo ¶
type ClientPublicInfo struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Surname string `protobuf:"bytes,2,opt,name=surname,proto3" json:"surname,omitempty"` Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` PasswordUpdated *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=password_updated,json=passwordUpdated,proto3" json:"password_updated,omitempty"` Created *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=created,proto3" json:"created,omitempty"` Updated *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=updated,proto3" json:"updated,omitempty"` // contains filtered or unexported fields }
func (*ClientPublicInfo) Descriptor
deprecated
func (*ClientPublicInfo) Descriptor() ([]byte, []int)
Deprecated: Use ClientPublicInfo.ProtoReflect.Descriptor instead.
func (*ClientPublicInfo) GetCreated ¶
func (x *ClientPublicInfo) GetCreated() *timestamppb.Timestamp
func (*ClientPublicInfo) GetEmail ¶
func (x *ClientPublicInfo) GetEmail() string
func (*ClientPublicInfo) GetName ¶
func (x *ClientPublicInfo) GetName() string
func (*ClientPublicInfo) GetPasswordUpdated ¶
func (x *ClientPublicInfo) GetPasswordUpdated() *timestamppb.Timestamp
func (*ClientPublicInfo) GetSurname ¶
func (x *ClientPublicInfo) GetSurname() string
func (*ClientPublicInfo) GetUpdated ¶
func (x *ClientPublicInfo) GetUpdated() *timestamppb.Timestamp
func (*ClientPublicInfo) ProtoMessage ¶
func (*ClientPublicInfo) ProtoMessage()
func (*ClientPublicInfo) ProtoReflect ¶
func (x *ClientPublicInfo) ProtoReflect() protoreflect.Message
func (*ClientPublicInfo) Reset ¶
func (x *ClientPublicInfo) Reset()
func (*ClientPublicInfo) String ¶
func (x *ClientPublicInfo) String() string
type CreateClientProfileRequest ¶
type CreateClientProfileRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Surname string `protobuf:"bytes,2,opt,name=surname,proto3" json:"surname,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 (*CreateClientProfileRequest) Descriptor
deprecated
func (*CreateClientProfileRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateClientProfileRequest.ProtoReflect.Descriptor instead.
func (*CreateClientProfileRequest) GetEmail ¶
func (x *CreateClientProfileRequest) GetEmail() string
func (*CreateClientProfileRequest) GetName ¶
func (x *CreateClientProfileRequest) GetName() string
func (*CreateClientProfileRequest) GetPassword ¶
func (x *CreateClientProfileRequest) GetPassword() string
func (*CreateClientProfileRequest) GetSurname ¶
func (x *CreateClientProfileRequest) GetSurname() string
func (*CreateClientProfileRequest) ProtoMessage ¶
func (*CreateClientProfileRequest) ProtoMessage()
func (*CreateClientProfileRequest) ProtoReflect ¶
func (x *CreateClientProfileRequest) ProtoReflect() protoreflect.Message
func (*CreateClientProfileRequest) Reset ¶
func (x *CreateClientProfileRequest) Reset()
func (*CreateClientProfileRequest) String ¶
func (x *CreateClientProfileRequest) String() string
type CreateClientProfileResponse ¶
type CreateClientProfileResponse struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*CreateClientProfileResponse) Descriptor
deprecated
func (*CreateClientProfileResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateClientProfileResponse.ProtoReflect.Descriptor instead.
func (*CreateClientProfileResponse) GetId ¶
func (x *CreateClientProfileResponse) GetId() string
func (*CreateClientProfileResponse) ProtoMessage ¶
func (*CreateClientProfileResponse) ProtoMessage()
func (*CreateClientProfileResponse) ProtoReflect ¶
func (x *CreateClientProfileResponse) ProtoReflect() protoreflect.Message
func (*CreateClientProfileResponse) Reset ¶
func (x *CreateClientProfileResponse) Reset()
func (*CreateClientProfileResponse) String ¶
func (x *CreateClientProfileResponse) String() string
type CreateClientTokenRequest ¶
type CreateClientTokenRequest 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 (*CreateClientTokenRequest) Descriptor
deprecated
func (*CreateClientTokenRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateClientTokenRequest.ProtoReflect.Descriptor instead.
func (*CreateClientTokenRequest) GetEmail ¶
func (x *CreateClientTokenRequest) GetEmail() string
func (*CreateClientTokenRequest) GetPassword ¶
func (x *CreateClientTokenRequest) GetPassword() string
func (*CreateClientTokenRequest) ProtoMessage ¶
func (*CreateClientTokenRequest) ProtoMessage()
func (*CreateClientTokenRequest) ProtoReflect ¶
func (x *CreateClientTokenRequest) ProtoReflect() protoreflect.Message
func (*CreateClientTokenRequest) Reset ¶
func (x *CreateClientTokenRequest) Reset()
func (*CreateClientTokenRequest) String ¶
func (x *CreateClientTokenRequest) String() string
type CreateClientTokenResponse ¶
type CreateClientTokenResponse struct { SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` AccessToken string `protobuf:"bytes,2,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` RefreshToken string `protobuf:"bytes,3,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"` ClientInfo *ClientPublicInfo `protobuf:"bytes,4,opt,name=client_info,json=clientInfo,proto3" json:"client_info,omitempty"` RefreshTokenExpired *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=refresh_token_expired,json=refreshTokenExpired,proto3" json:"refresh_token_expired,omitempty"` AccessTokenExpired *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=access_token_expired,json=accessTokenExpired,proto3" json:"access_token_expired,omitempty"` // contains filtered or unexported fields }
func (*CreateClientTokenResponse) Descriptor
deprecated
func (*CreateClientTokenResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateClientTokenResponse.ProtoReflect.Descriptor instead.
func (*CreateClientTokenResponse) GetAccessToken ¶
func (x *CreateClientTokenResponse) GetAccessToken() string
func (*CreateClientTokenResponse) GetAccessTokenExpired ¶
func (x *CreateClientTokenResponse) GetAccessTokenExpired() *timestamppb.Timestamp
func (*CreateClientTokenResponse) GetClientInfo ¶
func (x *CreateClientTokenResponse) GetClientInfo() *ClientPublicInfo
func (*CreateClientTokenResponse) GetRefreshToken ¶
func (x *CreateClientTokenResponse) GetRefreshToken() string
func (*CreateClientTokenResponse) GetRefreshTokenExpired ¶
func (x *CreateClientTokenResponse) GetRefreshTokenExpired() *timestamppb.Timestamp
func (*CreateClientTokenResponse) GetSessionId ¶
func (x *CreateClientTokenResponse) GetSessionId() string
func (*CreateClientTokenResponse) ProtoMessage ¶
func (*CreateClientTokenResponse) ProtoMessage()
func (*CreateClientTokenResponse) ProtoReflect ¶
func (x *CreateClientTokenResponse) ProtoReflect() protoreflect.Message
func (*CreateClientTokenResponse) Reset ¶
func (x *CreateClientTokenResponse) Reset()
func (*CreateClientTokenResponse) String ¶
func (x *CreateClientTokenResponse) String() string
type UnimplementedAccountingServer ¶
type UnimplementedAccountingServer struct { }
UnimplementedAccountingServer must be embedded to have forward compatible implementations.
func (UnimplementedAccountingServer) CreateClientProfile ¶
func (UnimplementedAccountingServer) CreateClientProfile(context.Context, *CreateClientProfileRequest) (*CreateClientProfileResponse, error)
func (UnimplementedAccountingServer) CreateClientToken ¶
func (UnimplementedAccountingServer) CreateClientToken(context.Context, *CreateClientTokenRequest) (*CreateClientTokenResponse, error)
type UnsafeAccountingServer ¶
type UnsafeAccountingServer interface {
// contains filtered or unexported methods
}
UnsafeAccountingServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AccountingServer will result in compilation errors.