proto

package
v0.0.0-...-5b3434c Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	UserRegisterStatus_name = map[int32]string{
		0: "UNKNOWN",
		1: "SUCCESS",
		2: "ERROR",
	}
	UserRegisterStatus_value = map[string]int32{
		"UNKNOWN": 0,
		"SUCCESS": 1,
		"ERROR":   2,
	}
)

Enum value maps for UserRegisterStatus.

View Source
var File_grpc_proto_attendance_group_proto protoreflect.FileDescriptor
View Source
var File_grpc_proto_check_proto protoreflect.FileDescriptor
View Source
var File_grpc_proto_user_proto protoreflect.FileDescriptor

Functions

func RegisterAttendanceGroupServer

func RegisterAttendanceGroupServer(s *grpc.Server, srv AttendanceGroupServer)

func RegisterCheckServer

func RegisterCheckServer(s *grpc.Server, srv CheckServer)

func RegisterUserServer

func RegisterUserServer(s *grpc.Server, srv UserServer)

Types

type AttendanceGroupClient

type AttendanceGroupClient interface {
	Create(ctx context.Context, in *AttendanceGroupRequesut, opts ...grpc.CallOption) (*AttendanceGroupResponse, error)
}

AttendanceGroupClient is the client API for AttendanceGroup service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type AttendanceGroupRequesut

type AttendanceGroupRequesut struct {
	GroupName string `protobuf:"bytes,1,opt,name=group_name,json=groupName,proto3" json:"group_name,omitempty"`
	LoginId   string `protobuf:"bytes,2,opt,name=login_id,json=loginId,proto3" json:"login_id,omitempty"`
	Password  string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
	UserName  string `protobuf:"bytes,4,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"`
	// contains filtered or unexported fields
}

func (*AttendanceGroupRequesut) Descriptor deprecated

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

Deprecated: Use AttendanceGroupRequesut.ProtoReflect.Descriptor instead.

func (*AttendanceGroupRequesut) GetGroupName

func (x *AttendanceGroupRequesut) GetGroupName() string

func (*AttendanceGroupRequesut) GetLoginId

func (x *AttendanceGroupRequesut) GetLoginId() string

func (*AttendanceGroupRequesut) GetPassword

func (x *AttendanceGroupRequesut) GetPassword() string

func (*AttendanceGroupRequesut) GetUserName

func (x *AttendanceGroupRequesut) GetUserName() string

func (*AttendanceGroupRequesut) ProtoMessage

func (*AttendanceGroupRequesut) ProtoMessage()

func (*AttendanceGroupRequesut) ProtoReflect

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

func (*AttendanceGroupRequesut) Reset

func (x *AttendanceGroupRequesut) Reset()

func (*AttendanceGroupRequesut) String

func (x *AttendanceGroupRequesut) String() string

type AttendanceGroupResponse

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

func (*AttendanceGroupResponse) Descriptor deprecated

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

Deprecated: Use AttendanceGroupResponse.ProtoReflect.Descriptor instead.

func (*AttendanceGroupResponse) ProtoMessage

func (*AttendanceGroupResponse) ProtoMessage()

func (*AttendanceGroupResponse) ProtoReflect

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

func (*AttendanceGroupResponse) Reset

func (x *AttendanceGroupResponse) Reset()

func (*AttendanceGroupResponse) String

func (x *AttendanceGroupResponse) String() string

type AttendanceGroupServer

type AttendanceGroupServer interface {
	Create(context.Context, *AttendanceGroupRequesut) (*AttendanceGroupResponse, error)
}

AttendanceGroupServer is the server API for AttendanceGroup service.

type CheckClient

type CheckClient interface {
	HealthCheck(ctx context.Context, in *HealthRequest, opts ...grpc.CallOption) (*HealthResponse, error)
}

CheckClient is the client API for Check service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewCheckClient

func NewCheckClient(cc grpc.ClientConnInterface) CheckClient

type CheckServer

type CheckServer interface {
	HealthCheck(context.Context, *HealthRequest) (*HealthResponse, error)
}

CheckServer is the server API for Check service.

type HealthRequest

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

func (*HealthRequest) Descriptor deprecated

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

Deprecated: Use HealthRequest.ProtoReflect.Descriptor instead.

func (*HealthRequest) ProtoMessage

func (*HealthRequest) ProtoMessage()

func (*HealthRequest) ProtoReflect

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

func (*HealthRequest) Reset

func (x *HealthRequest) Reset()

func (*HealthRequest) String

func (x *HealthRequest) String() string

type HealthResponse

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

func (*HealthResponse) Descriptor deprecated

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

Deprecated: Use HealthResponse.ProtoReflect.Descriptor instead.

func (*HealthResponse) GetStatus

func (x *HealthResponse) GetStatus() string

func (*HealthResponse) ProtoMessage

func (*HealthResponse) ProtoMessage()

func (*HealthResponse) ProtoReflect

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

func (*HealthResponse) Reset

func (x *HealthResponse) Reset()

func (*HealthResponse) String

func (x *HealthResponse) String() string

type UnimplementedAttendanceGroupServer

type UnimplementedAttendanceGroupServer struct {
}

UnimplementedAttendanceGroupServer can be embedded to have forward compatible implementations.

func (*UnimplementedAttendanceGroupServer) Create

type UnimplementedCheckServer

type UnimplementedCheckServer struct {
}

UnimplementedCheckServer can be embedded to have forward compatible implementations.

func (*UnimplementedCheckServer) HealthCheck

type UnimplementedUserServer

type UnimplementedUserServer struct {
}

UnimplementedUserServer can be embedded to have forward compatible implementations.

func (*UnimplementedUserServer) Register

func (*UnimplementedUserServer) SignIn

type UserClient

type UserClient interface {
	Register(ctx context.Context, in *UserRegisterRequesut, opts ...grpc.CallOption) (*UserRegisterResponse, error)
	SignIn(ctx context.Context, in *UserSignInRequest, opts ...grpc.CallOption) (*UserSignInResponse, error)
}

UserClient is the client API for User service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewUserClient

func NewUserClient(cc grpc.ClientConnInterface) UserClient

type UserRegisterRequesut

type UserRegisterRequesut struct {
	AttendanceGroupId string `protobuf:"bytes,1,opt,name=attendance_group_id,json=attendanceGroupId,proto3" json:"attendance_group_id,omitempty"`
	LoginId           string `protobuf:"bytes,2,opt,name=login_id,json=loginId,proto3" json:"login_id,omitempty"`
	Password          string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
	Name              string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*UserRegisterRequesut) Descriptor deprecated

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

Deprecated: Use UserRegisterRequesut.ProtoReflect.Descriptor instead.

func (*UserRegisterRequesut) GetAttendanceGroupId

func (x *UserRegisterRequesut) GetAttendanceGroupId() string

func (*UserRegisterRequesut) GetLoginId

func (x *UserRegisterRequesut) GetLoginId() string

func (*UserRegisterRequesut) GetName

func (x *UserRegisterRequesut) GetName() string

func (*UserRegisterRequesut) GetPassword

func (x *UserRegisterRequesut) GetPassword() string

func (*UserRegisterRequesut) ProtoMessage

func (*UserRegisterRequesut) ProtoMessage()

func (*UserRegisterRequesut) ProtoReflect

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

func (*UserRegisterRequesut) Reset

func (x *UserRegisterRequesut) Reset()

func (*UserRegisterRequesut) String

func (x *UserRegisterRequesut) String() string

type UserRegisterResponse

type UserRegisterResponse struct {
	Status  UserRegisterStatus `protobuf:"varint,1,opt,name=status,proto3,enum=proto.UserRegisterStatus" json:"status,omitempty"`
	Message string             `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*UserRegisterResponse) Descriptor deprecated

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

Deprecated: Use UserRegisterResponse.ProtoReflect.Descriptor instead.

func (*UserRegisterResponse) GetMessage

func (x *UserRegisterResponse) GetMessage() string

func (*UserRegisterResponse) GetStatus

func (*UserRegisterResponse) ProtoMessage

func (*UserRegisterResponse) ProtoMessage()

func (*UserRegisterResponse) ProtoReflect

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

func (*UserRegisterResponse) Reset

func (x *UserRegisterResponse) Reset()

func (*UserRegisterResponse) String

func (x *UserRegisterResponse) String() string

type UserRegisterStatus

type UserRegisterStatus int32
const (
	UserRegisterStatus_UNKNOWN UserRegisterStatus = 0
	UserRegisterStatus_SUCCESS UserRegisterStatus = 1
	UserRegisterStatus_ERROR   UserRegisterStatus = 2
)

func (UserRegisterStatus) Descriptor

func (UserRegisterStatus) Enum

func (UserRegisterStatus) EnumDescriptor deprecated

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

Deprecated: Use UserRegisterStatus.Descriptor instead.

func (UserRegisterStatus) Number

func (UserRegisterStatus) String

func (x UserRegisterStatus) String() string

func (UserRegisterStatus) Type

type UserServer

UserServer is the server API for User service.

type UserSignInRequest

type UserSignInRequest struct {
	GroupName string `protobuf:"bytes,1,opt,name=group_name,json=groupName,proto3" json:"group_name,omitempty"`
	LoginId   string `protobuf:"bytes,2,opt,name=login_id,json=loginId,proto3" json:"login_id,omitempty"`
	Password  string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

func (*UserSignInRequest) Descriptor deprecated

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

Deprecated: Use UserSignInRequest.ProtoReflect.Descriptor instead.

func (*UserSignInRequest) GetGroupName

func (x *UserSignInRequest) GetGroupName() string

func (*UserSignInRequest) GetLoginId

func (x *UserSignInRequest) GetLoginId() string

func (*UserSignInRequest) GetPassword

func (x *UserSignInRequest) GetPassword() string

func (*UserSignInRequest) ProtoMessage

func (*UserSignInRequest) ProtoMessage()

func (*UserSignInRequest) ProtoReflect

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

func (*UserSignInRequest) Reset

func (x *UserSignInRequest) Reset()

func (*UserSignInRequest) String

func (x *UserSignInRequest) String() string

type UserSignInResponse

type UserSignInResponse struct {
	GroupName string `protobuf:"bytes,1,opt,name=group_name,json=groupName,proto3" json:"group_name,omitempty"`
	UserName  string `protobuf:"bytes,2,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"`
	// contains filtered or unexported fields
}

func (*UserSignInResponse) Descriptor deprecated

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

Deprecated: Use UserSignInResponse.ProtoReflect.Descriptor instead.

func (*UserSignInResponse) GetGroupName

func (x *UserSignInResponse) GetGroupName() string

func (*UserSignInResponse) GetUserName

func (x *UserSignInResponse) GetUserName() string

func (*UserSignInResponse) ProtoMessage

func (*UserSignInResponse) ProtoMessage()

func (*UserSignInResponse) ProtoReflect

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

func (*UserSignInResponse) Reset

func (x *UserSignInResponse) Reset()

func (*UserSignInResponse) String

func (x *UserSignInResponse) String() string

Jump to

Keyboard shortcuts

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