generated

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	HealthCheckResponse_ServingStatus_name = map[int32]string{
		0: "UNKNOWN",
		1: "SERVING",
		2: "NOT_SERVING",
	}
	HealthCheckResponse_ServingStatus_value = map[string]int32{
		"UNKNOWN":     0,
		"SERVING":     1,
		"NOT_SERVING": 2,
	}
)

Enum value maps for HealthCheckResponse_ServingStatus.

View Source
var File_proto_auth_proto protoreflect.FileDescriptor
View Source
var File_proto_health_proto protoreflect.FileDescriptor
View Source
var File_proto_user_proto protoreflect.FileDescriptor

Functions

func DRPCRegisterAuthService

func DRPCRegisterAuthService(mux drpc.Mux, impl DRPCAuthServiceServer) error

func DRPCRegisterHealth

func DRPCRegisterHealth(mux drpc.Mux, impl DRPCHealthServer) error

func DRPCRegisterUserService

func DRPCRegisterUserService(mux drpc.Mux, impl DRPCUserServiceServer) error

Types

type AuthReq

type AuthReq 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 (*AuthReq) Descriptor deprecated

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

Deprecated: Use AuthReq.ProtoReflect.Descriptor instead.

func (*AuthReq) GetPassword

func (x *AuthReq) GetPassword() string

func (*AuthReq) GetUsername

func (x *AuthReq) GetUsername() string

func (*AuthReq) ProtoMessage

func (*AuthReq) ProtoMessage()

func (*AuthReq) ProtoReflect

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

func (*AuthReq) Reset

func (x *AuthReq) Reset()

func (*AuthReq) String

func (x *AuthReq) String() string

type AuthRes

type AuthRes struct {
	Message string  `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	Token   *string `protobuf:"bytes,2,opt,name=token,proto3,oneof" json:"token,omitempty"`
	// contains filtered or unexported fields
}

func (*AuthRes) Descriptor deprecated

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

Deprecated: Use AuthRes.ProtoReflect.Descriptor instead.

func (*AuthRes) GetMessage

func (x *AuthRes) GetMessage() string

func (*AuthRes) GetToken

func (x *AuthRes) GetToken() string

func (*AuthRes) ProtoMessage

func (*AuthRes) ProtoMessage()

func (*AuthRes) ProtoReflect

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

func (*AuthRes) Reset

func (x *AuthRes) Reset()

func (*AuthRes) String

func (x *AuthRes) String() string

type CreateUserReq

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

Create user

func (*CreateUserReq) Descriptor deprecated

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

Deprecated: Use CreateUserReq.ProtoReflect.Descriptor instead.

func (*CreateUserReq) GetUser

func (x *CreateUserReq) GetUser() *User

func (*CreateUserReq) ProtoMessage

func (*CreateUserReq) ProtoMessage()

func (*CreateUserReq) ProtoReflect

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

func (*CreateUserReq) Reset

func (x *CreateUserReq) Reset()

func (*CreateUserReq) String

func (x *CreateUserReq) String() string

type CreateUserRes

type CreateUserRes struct {
	StatusMessage string `protobuf:"bytes,1,opt,name=status_message,json=statusMessage,proto3" json:"status_message,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateUserRes) Descriptor deprecated

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

Deprecated: Use CreateUserRes.ProtoReflect.Descriptor instead.

func (*CreateUserRes) GetStatusMessage added in v1.0.1

func (x *CreateUserRes) GetStatusMessage() string

func (*CreateUserRes) ProtoMessage

func (*CreateUserRes) ProtoMessage()

func (*CreateUserRes) ProtoReflect

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

func (*CreateUserRes) Reset

func (x *CreateUserRes) Reset()

func (*CreateUserRes) String

func (x *CreateUserRes) String() string

type DRPCAuthServiceClient

type DRPCAuthServiceClient interface {
	DRPCConn() drpc.Conn

	SignIn(ctx context.Context, in *AuthReq) (*AuthRes, error)
	SignUp(ctx context.Context, in *AuthReq) (*AuthRes, error)
}

func NewDRPCAuthServiceClient

func NewDRPCAuthServiceClient(cc drpc.Conn) DRPCAuthServiceClient

type DRPCAuthServiceDescription

type DRPCAuthServiceDescription struct{}

func (DRPCAuthServiceDescription) Method

func (DRPCAuthServiceDescription) Method(n int) (string, drpc.Encoding, drpc.Receiver, interface{}, bool)

func (DRPCAuthServiceDescription) NumMethods

func (DRPCAuthServiceDescription) NumMethods() int

type DRPCAuthServiceServer

type DRPCAuthServiceServer interface {
	SignIn(context.Context, *AuthReq) (*AuthRes, error)
	SignUp(context.Context, *AuthReq) (*AuthRes, error)
}

type DRPCAuthServiceUnimplementedServer

type DRPCAuthServiceUnimplementedServer struct{}

func (*DRPCAuthServiceUnimplementedServer) SignIn

func (*DRPCAuthServiceUnimplementedServer) SignUp

type DRPCAuthService_SignInStream

type DRPCAuthService_SignInStream interface {
	drpc.Stream
	SendAndClose(*AuthRes) error
}

type DRPCAuthService_SignUpStream

type DRPCAuthService_SignUpStream interface {
	drpc.Stream
	SendAndClose(*AuthRes) error
}

type DRPCHealthClient

type DRPCHealthClient interface {
	DRPCConn() drpc.Conn

	Check(ctx context.Context, in *HealthCheckRequest) (*HealthCheckResponse, error)
}

func NewDRPCHealthClient

func NewDRPCHealthClient(cc drpc.Conn) DRPCHealthClient

type DRPCHealthDescription

type DRPCHealthDescription struct{}

func (DRPCHealthDescription) Method

func (DRPCHealthDescription) Method(n int) (string, drpc.Encoding, drpc.Receiver, interface{}, bool)

func (DRPCHealthDescription) NumMethods

func (DRPCHealthDescription) NumMethods() int

type DRPCHealthServer

type DRPCHealthServer interface {
	Check(context.Context, *HealthCheckRequest) (*HealthCheckResponse, error)
}

type DRPCHealthUnimplementedServer

type DRPCHealthUnimplementedServer struct{}

func (*DRPCHealthUnimplementedServer) Check

type DRPCHealth_CheckStream

type DRPCHealth_CheckStream interface {
	drpc.Stream
	SendAndClose(*HealthCheckResponse) error
}

type DRPCUserServiceClient

type DRPCUserServiceClient interface {
	DRPCConn() drpc.Conn

	GetUsers(ctx context.Context, in *GetUsersReq) (*GetUsersRes, error)
	GetUser(ctx context.Context, in *GetUserReq) (*GetUserRes, error)
	CreateUser(ctx context.Context, in *CreateUserReq) (*CreateUserRes, error)
	DeleteUser(ctx context.Context, in *DeleteUserReq) (*DeleteUserRes, error)
	UpdateUser(ctx context.Context, in *UpdateUserReq) (*UpdateUserRes, error)
}

func NewDRPCUserServiceClient

func NewDRPCUserServiceClient(cc drpc.Conn) DRPCUserServiceClient

type DRPCUserServiceDescription

type DRPCUserServiceDescription struct{}

func (DRPCUserServiceDescription) Method

func (DRPCUserServiceDescription) Method(n int) (string, drpc.Encoding, drpc.Receiver, interface{}, bool)

func (DRPCUserServiceDescription) NumMethods

func (DRPCUserServiceDescription) NumMethods() int

type DRPCUserServiceServer

type DRPCUserServiceServer interface {
	GetUsers(context.Context, *GetUsersReq) (*GetUsersRes, error)
	GetUser(context.Context, *GetUserReq) (*GetUserRes, error)
	CreateUser(context.Context, *CreateUserReq) (*CreateUserRes, error)
	DeleteUser(context.Context, *DeleteUserReq) (*DeleteUserRes, error)
	UpdateUser(context.Context, *UpdateUserReq) (*UpdateUserRes, error)
}

type DRPCUserServiceUnimplementedServer

type DRPCUserServiceUnimplementedServer struct{}

func (*DRPCUserServiceUnimplementedServer) CreateUser

func (*DRPCUserServiceUnimplementedServer) DeleteUser

func (*DRPCUserServiceUnimplementedServer) GetUser

func (*DRPCUserServiceUnimplementedServer) GetUsers added in v1.0.1

func (*DRPCUserServiceUnimplementedServer) UpdateUser

type DRPCUserService_CreateUserStream

type DRPCUserService_CreateUserStream interface {
	drpc.Stream
	SendAndClose(*CreateUserRes) error
}

type DRPCUserService_DeleteUserStream

type DRPCUserService_DeleteUserStream interface {
	drpc.Stream
	SendAndClose(*DeleteUserRes) error
}

type DRPCUserService_GetUserStream

type DRPCUserService_GetUserStream interface {
	drpc.Stream
	SendAndClose(*GetUserRes) error
}

type DRPCUserService_GetUsersStream added in v1.0.1

type DRPCUserService_GetUsersStream interface {
	drpc.Stream
	SendAndClose(*GetUsersRes) error
}

type DRPCUserService_UpdateUserStream

type DRPCUserService_UpdateUserStream interface {
	drpc.Stream
	SendAndClose(*UpdateUserRes) error
}

type DeleteUserReq

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

Delete user

func (*DeleteUserReq) Descriptor deprecated

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

Deprecated: Use DeleteUserReq.ProtoReflect.Descriptor instead.

func (*DeleteUserReq) GetUuid

func (x *DeleteUserReq) GetUuid() string

func (*DeleteUserReq) ProtoMessage

func (*DeleteUserReq) ProtoMessage()

func (*DeleteUserReq) ProtoReflect

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

func (*DeleteUserReq) Reset

func (x *DeleteUserReq) Reset()

func (*DeleteUserReq) String

func (x *DeleteUserReq) String() string

type DeleteUserRes

type DeleteUserRes struct {
	StatusMessage string `protobuf:"bytes,1,opt,name=status_message,json=statusMessage,proto3" json:"status_message,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteUserRes) Descriptor deprecated

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

Deprecated: Use DeleteUserRes.ProtoReflect.Descriptor instead.

func (*DeleteUserRes) GetStatusMessage added in v1.0.1

func (x *DeleteUserRes) GetStatusMessage() string

func (*DeleteUserRes) ProtoMessage

func (*DeleteUserRes) ProtoMessage()

func (*DeleteUserRes) ProtoReflect

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

func (*DeleteUserRes) Reset

func (x *DeleteUserRes) Reset()

func (*DeleteUserRes) String

func (x *DeleteUserRes) String() string

type GetUserReq

type GetUserReq struct {

	// Types that are assignable to Identifier:
	//
	//	*GetUserReq_Uuid
	//	*GetUserReq_Username
	Identifier isGetUserReq_Identifier `protobuf_oneof:"identifier"`
	// contains filtered or unexported fields
}

Get user

func (*GetUserReq) Descriptor deprecated

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

Deprecated: Use GetUserReq.ProtoReflect.Descriptor instead.

func (*GetUserReq) GetIdentifier

func (m *GetUserReq) GetIdentifier() isGetUserReq_Identifier

func (*GetUserReq) GetUsername

func (x *GetUserReq) GetUsername() string

func (*GetUserReq) GetUuid

func (x *GetUserReq) GetUuid() string

func (*GetUserReq) ProtoMessage

func (*GetUserReq) ProtoMessage()

func (*GetUserReq) ProtoReflect

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

func (*GetUserReq) Reset

func (x *GetUserReq) Reset()

func (*GetUserReq) String

func (x *GetUserReq) String() string

type GetUserReq_Username

type GetUserReq_Username struct {
	Username string `protobuf:"bytes,2,opt,name=username,proto3,oneof"`
}

type GetUserReq_Uuid

type GetUserReq_Uuid struct {
	Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3,oneof"`
}

type GetUserRes

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

func (*GetUserRes) Descriptor deprecated

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

Deprecated: Use GetUserRes.ProtoReflect.Descriptor instead.

func (*GetUserRes) GetUser

func (x *GetUserRes) GetUser() *User

func (*GetUserRes) ProtoMessage

func (*GetUserRes) ProtoMessage()

func (*GetUserRes) ProtoReflect

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

func (*GetUserRes) Reset

func (x *GetUserRes) Reset()

func (*GetUserRes) String

func (x *GetUserRes) String() string

type GetUsersReq added in v1.0.1

type GetUsersReq struct {
	Limit int32 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"`
	// contains filtered or unexported fields
}

Get all users

func (*GetUsersReq) Descriptor deprecated added in v1.0.1

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

Deprecated: Use GetUsersReq.ProtoReflect.Descriptor instead.

func (*GetUsersReq) GetLimit added in v1.0.1

func (x *GetUsersReq) GetLimit() int32

func (*GetUsersReq) ProtoMessage added in v1.0.1

func (*GetUsersReq) ProtoMessage()

func (*GetUsersReq) ProtoReflect added in v1.0.1

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

func (*GetUsersReq) Reset added in v1.0.1

func (x *GetUsersReq) Reset()

func (*GetUsersReq) String added in v1.0.1

func (x *GetUsersReq) String() string

type GetUsersRes added in v1.0.1

type GetUsersRes struct {
	Users []*User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUsersRes) Descriptor deprecated added in v1.0.1

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

Deprecated: Use GetUsersRes.ProtoReflect.Descriptor instead.

func (*GetUsersRes) GetUsers added in v1.0.1

func (x *GetUsersRes) GetUsers() []*User

func (*GetUsersRes) ProtoMessage added in v1.0.1

func (*GetUsersRes) ProtoMessage()

func (*GetUsersRes) ProtoReflect added in v1.0.1

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

func (*GetUsersRes) Reset added in v1.0.1

func (x *GetUsersRes) Reset()

func (*GetUsersRes) String added in v1.0.1

func (x *GetUsersRes) String() string

type HealthCheckRequest

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

func (*HealthCheckRequest) Descriptor deprecated

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

Deprecated: Use HealthCheckRequest.ProtoReflect.Descriptor instead.

func (*HealthCheckRequest) GetService

func (x *HealthCheckRequest) GetService() string

func (*HealthCheckRequest) ProtoMessage

func (*HealthCheckRequest) ProtoMessage()

func (*HealthCheckRequest) ProtoReflect

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

func (*HealthCheckRequest) Reset

func (x *HealthCheckRequest) Reset()

func (*HealthCheckRequest) String

func (x *HealthCheckRequest) String() string

type HealthCheckResponse

type HealthCheckResponse struct {
	Status HealthCheckResponse_ServingStatus `protobuf:"varint,1,opt,name=status,proto3,enum=health.HealthCheckResponse_ServingStatus" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*HealthCheckResponse) Descriptor deprecated

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

Deprecated: Use HealthCheckResponse.ProtoReflect.Descriptor instead.

func (*HealthCheckResponse) GetStatus

func (*HealthCheckResponse) ProtoMessage

func (*HealthCheckResponse) ProtoMessage()

func (*HealthCheckResponse) ProtoReflect

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

func (*HealthCheckResponse) Reset

func (x *HealthCheckResponse) Reset()

func (*HealthCheckResponse) String

func (x *HealthCheckResponse) String() string

type HealthCheckResponse_ServingStatus

type HealthCheckResponse_ServingStatus int32
const (
	HealthCheckResponse_UNKNOWN     HealthCheckResponse_ServingStatus = 0
	HealthCheckResponse_SERVING     HealthCheckResponse_ServingStatus = 1
	HealthCheckResponse_NOT_SERVING HealthCheckResponse_ServingStatus = 2
)

func (HealthCheckResponse_ServingStatus) Descriptor

func (HealthCheckResponse_ServingStatus) Enum

func (HealthCheckResponse_ServingStatus) EnumDescriptor deprecated

func (HealthCheckResponse_ServingStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use HealthCheckResponse_ServingStatus.Descriptor instead.

func (HealthCheckResponse_ServingStatus) Number

func (HealthCheckResponse_ServingStatus) String

func (HealthCheckResponse_ServingStatus) Type

type UpdateUserReq

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

Update user

func (*UpdateUserReq) Descriptor deprecated

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

Deprecated: Use UpdateUserReq.ProtoReflect.Descriptor instead.

func (*UpdateUserReq) GetUser

func (x *UpdateUserReq) GetUser() *User

func (*UpdateUserReq) GetUuid

func (x *UpdateUserReq) GetUuid() string

func (*UpdateUserReq) ProtoMessage

func (*UpdateUserReq) ProtoMessage()

func (*UpdateUserReq) ProtoReflect

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

func (*UpdateUserReq) Reset

func (x *UpdateUserReq) Reset()

func (*UpdateUserReq) String

func (x *UpdateUserReq) String() string

type UpdateUserRes

type UpdateUserRes struct {
	StatusMessage string `protobuf:"bytes,1,opt,name=status_message,json=statusMessage,proto3" json:"status_message,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateUserRes) Descriptor deprecated

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

Deprecated: Use UpdateUserRes.ProtoReflect.Descriptor instead.

func (*UpdateUserRes) GetStatusMessage added in v1.0.1

func (x *UpdateUserRes) GetStatusMessage() string

func (*UpdateUserRes) ProtoMessage

func (*UpdateUserRes) ProtoMessage()

func (*UpdateUserRes) ProtoReflect

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

func (*UpdateUserRes) Reset

func (x *UpdateUserRes) Reset()

func (*UpdateUserRes) String

func (x *UpdateUserRes) String() string

type User

type User struct {
	Uuid      string                 `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
	Username  string                 `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	Password  string                 `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=updated_at,json=updatedAt,proto3" json:"updated_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) GetPassword added in v1.0.1

func (x *User) GetPassword() string

func (*User) GetUpdatedAt

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

func (*User) GetUsername

func (x *User) GetUsername() string

func (*User) GetUuid

func (x *User) GetUuid() 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

Jump to

Keyboard shortcuts

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