pb

package
v0.0.0-...-718b68f Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package pb is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package pb is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var AuthRequest_Entity_name = map[int32]string{
	0: "SYSTEM",
	1: "EMPLOYEE",
}
View Source
var AuthRequest_Entity_value = map[string]int32{
	"SYSTEM":   0,
	"EMPLOYEE": 1,
}

Functions

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.

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 RegisterAuthServiceServer

func RegisterAuthServiceServer(s *grpc.Server, srv AuthServiceServer)

func RegisterEmployeeServiceHandler

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

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

func RegisterEmployeeServiceHandlerClient

func RegisterEmployeeServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client EmployeeServiceClient) error

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

func RegisterEmployeeServiceHandlerFromEndpoint

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

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

func RegisterEmployeeServiceServer

func RegisterEmployeeServiceServer(s *grpc.Server, srv EmployeeServiceServer)

func RegisterRoleServiceServer

func RegisterRoleServiceServer(s *grpc.Server, srv RoleServiceServer)

Types

type AuthRequest

type AuthRequest struct {
	Entity               AuthRequest_Entity `protobuf:"varint,1,opt,name=entity,proto3,enum=pb.AuthRequest_Entity" json:"entity,omitempty"`
	Login                string             `protobuf:"bytes,2,opt,name=login,proto3" json:"login,omitempty"`
	Password             string             `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
	Key                  string             `protobuf:"bytes,4,opt,name=key,proto3" json:"key,omitempty"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_unrecognized     []byte             `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

func (*AuthRequest) Descriptor

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

func (*AuthRequest) GetEntity

func (m *AuthRequest) GetEntity() AuthRequest_Entity

func (*AuthRequest) GetKey

func (m *AuthRequest) GetKey() string

func (*AuthRequest) GetLogin

func (m *AuthRequest) GetLogin() string

func (*AuthRequest) GetPassword

func (m *AuthRequest) GetPassword() string

func (*AuthRequest) ProtoMessage

func (*AuthRequest) ProtoMessage()

func (*AuthRequest) Reset

func (m *AuthRequest) Reset()

func (*AuthRequest) String

func (m *AuthRequest) String() string

func (*AuthRequest) XXX_DiscardUnknown

func (m *AuthRequest) XXX_DiscardUnknown()

func (*AuthRequest) XXX_Marshal

func (m *AuthRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AuthRequest) XXX_Merge

func (m *AuthRequest) XXX_Merge(src proto.Message)

func (*AuthRequest) XXX_Size

func (m *AuthRequest) XXX_Size() int

func (*AuthRequest) XXX_Unmarshal

func (m *AuthRequest) XXX_Unmarshal(b []byte) error

type AuthRequest_Entity

type AuthRequest_Entity int32
const (
	AuthRequest_SYSTEM   AuthRequest_Entity = 0
	AuthRequest_EMPLOYEE AuthRequest_Entity = 1
)

func (AuthRequest_Entity) EnumDescriptor

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

func (AuthRequest_Entity) String

func (x AuthRequest_Entity) String() string

type AuthResponse

type AuthResponse struct {
	Token                string   `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AuthResponse) Descriptor

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

func (*AuthResponse) GetToken

func (m *AuthResponse) GetToken() string

func (*AuthResponse) ProtoMessage

func (*AuthResponse) ProtoMessage()

func (*AuthResponse) Reset

func (m *AuthResponse) Reset()

func (*AuthResponse) String

func (m *AuthResponse) String() string

func (*AuthResponse) XXX_DiscardUnknown

func (m *AuthResponse) XXX_DiscardUnknown()

func (*AuthResponse) XXX_Marshal

func (m *AuthResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AuthResponse) XXX_Merge

func (m *AuthResponse) XXX_Merge(src proto.Message)

func (*AuthResponse) XXX_Size

func (m *AuthResponse) XXX_Size() int

func (*AuthResponse) XXX_Unmarshal

func (m *AuthResponse) XXX_Unmarshal(b []byte) error

type AuthServiceClient

type AuthServiceClient interface {
	Authenticate(ctx context.Context, in *AuthRequest, opts ...grpc.CallOption) (*AuthResponse, error)
	Validate(ctx context.Context, in *ValidateRequest, opts ...grpc.CallOption) (*AuthResponse, error)
}

AuthServiceClient is the client API for AuthService service.

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

func NewAuthServiceClient

func NewAuthServiceClient(cc *grpc.ClientConn) AuthServiceClient

type AuthServiceServer

type AuthServiceServer interface {
	Authenticate(context.Context, *AuthRequest) (*AuthResponse, error)
	Validate(context.Context, *ValidateRequest) (*AuthResponse, error)
}

AuthServiceServer is the server API for AuthService service.

type Employee

type Employee struct {
	Id                   string               `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Email                string               `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
	Name                 string               `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	Password             string               `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"`
	Phone                string               `protobuf:"bytes,5,opt,name=phone,proto3" json:"phone,omitempty"`
	Roles                []*Role              `protobuf:"bytes,6,rep,name=roles,proto3" json:"roles,omitempty"`
	CreatedAt            *timestamp.Timestamp `protobuf:"bytes,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt            *timestamp.Timestamp `protobuf:"bytes,8,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

func (*Employee) Descriptor

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

func (*Employee) GetCreatedAt

func (m *Employee) GetCreatedAt() *timestamp.Timestamp

func (*Employee) GetEmail

func (m *Employee) GetEmail() string

func (*Employee) GetId

func (m *Employee) GetId() string

func (*Employee) GetName

func (m *Employee) GetName() string

func (*Employee) GetPassword

func (m *Employee) GetPassword() string

func (*Employee) GetPhone

func (m *Employee) GetPhone() string

func (*Employee) GetRoles

func (m *Employee) GetRoles() []*Role

func (*Employee) GetUpdatedAt

func (m *Employee) GetUpdatedAt() *timestamp.Timestamp

func (*Employee) ProtoMessage

func (*Employee) ProtoMessage()

func (*Employee) Reset

func (m *Employee) Reset()

func (*Employee) String

func (m *Employee) String() string

func (*Employee) XXX_DiscardUnknown

func (m *Employee) XXX_DiscardUnknown()

func (*Employee) XXX_Marshal

func (m *Employee) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Employee) XXX_Merge

func (m *Employee) XXX_Merge(src proto.Message)

func (*Employee) XXX_Size

func (m *Employee) XXX_Size() int

func (*Employee) XXX_Unmarshal

func (m *Employee) XXX_Unmarshal(b []byte) error

type EmployeeFilter

type EmployeeFilter struct {
	Id                   string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Email                string   `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*EmployeeFilter) Descriptor

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

func (*EmployeeFilter) GetEmail

func (m *EmployeeFilter) GetEmail() string

func (*EmployeeFilter) GetId

func (m *EmployeeFilter) GetId() string

func (*EmployeeFilter) ProtoMessage

func (*EmployeeFilter) ProtoMessage()

func (*EmployeeFilter) Reset

func (m *EmployeeFilter) Reset()

func (*EmployeeFilter) String

func (m *EmployeeFilter) String() string

func (*EmployeeFilter) XXX_DiscardUnknown

func (m *EmployeeFilter) XXX_DiscardUnknown()

func (*EmployeeFilter) XXX_Marshal

func (m *EmployeeFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EmployeeFilter) XXX_Merge

func (m *EmployeeFilter) XXX_Merge(src proto.Message)

func (*EmployeeFilter) XXX_Size

func (m *EmployeeFilter) XXX_Size() int

func (*EmployeeFilter) XXX_Unmarshal

func (m *EmployeeFilter) XXX_Unmarshal(b []byte) error

type EmployeeServiceClient

type EmployeeServiceClient interface {
	GetEmployee(ctx context.Context, in *EmployeeFilter, opts ...grpc.CallOption) (*Employee, error)
	NewEmployee(ctx context.Context, in *NewEmployeeRequest, opts ...grpc.CallOption) (*Employee, error)
	UpdateEmployee(ctx context.Context, in *UpdateEmployeeRequest, opts ...grpc.CallOption) (*Employee, error)
	DeleteEmployee(ctx context.Context, in *EmployeeFilter, opts ...grpc.CallOption) (*empty.Empty, error)
}

EmployeeServiceClient is the client API for EmployeeService service.

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

func NewEmployeeServiceClient

func NewEmployeeServiceClient(cc *grpc.ClientConn) EmployeeServiceClient

type EmployeeServiceServer

type EmployeeServiceServer interface {
	GetEmployee(context.Context, *EmployeeFilter) (*Employee, error)
	NewEmployee(context.Context, *NewEmployeeRequest) (*Employee, error)
	UpdateEmployee(context.Context, *UpdateEmployeeRequest) (*Employee, error)
	DeleteEmployee(context.Context, *EmployeeFilter) (*empty.Empty, error)
}

EmployeeServiceServer is the server API for EmployeeService service.

type Event

type Event struct {
	EventId       string `protobuf:"bytes,1,opt,name=event_id,json=eventId,proto3" json:"event_id,omitempty"`
	Channel       string `protobuf:"bytes,2,opt,name=channel,proto3" json:"channel,omitempty"`
	Type          string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
	AggregateId   string `protobuf:"bytes,4,opt,name=aggregate_id,json=aggregateId,proto3" json:"aggregate_id,omitempty"`
	AggregateType string `protobuf:"bytes,5,opt,name=aggregate_type,json=aggregateType,proto3" json:"aggregate_type,omitempty"`
	// Types that are valid to be assigned to Data:
	//	*Event_Employee
	//	*Event_UpdateRequest
	//	*Event_EmployeeFilter
	Data                 isEvent_Data         `protobuf_oneof:"data"`
	Originator           *Event_Claims        `protobuf:"bytes,9,opt,name=originator,proto3" json:"originator,omitempty"`
	CreatedAt            *timestamp.Timestamp `protobuf:"bytes,10,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

func (*Event) Descriptor

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

func (*Event) GetAggregateId

func (m *Event) GetAggregateId() string

func (*Event) GetAggregateType

func (m *Event) GetAggregateType() string

func (*Event) GetChannel

func (m *Event) GetChannel() string

func (*Event) GetCreatedAt

func (m *Event) GetCreatedAt() *timestamp.Timestamp

func (*Event) GetData

func (m *Event) GetData() isEvent_Data

func (*Event) GetEmployee

func (m *Event) GetEmployee() *Employee

func (*Event) GetEmployeeFilter

func (m *Event) GetEmployeeFilter() *EmployeeFilter

func (*Event) GetEventId

func (m *Event) GetEventId() string

func (*Event) GetOriginator

func (m *Event) GetOriginator() *Event_Claims

func (*Event) GetType

func (m *Event) GetType() string

func (*Event) GetUpdateRequest

func (m *Event) GetUpdateRequest() *UpdateEmployeeRequest

func (*Event) ProtoMessage

func (*Event) ProtoMessage()

func (*Event) Reset

func (m *Event) Reset()

func (*Event) String

func (m *Event) String() string

func (*Event) XXX_DiscardUnknown

func (m *Event) XXX_DiscardUnknown()

func (*Event) XXX_Marshal

func (m *Event) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Event) XXX_Merge

func (m *Event) XXX_Merge(src proto.Message)

func (*Event) XXX_OneofWrappers

func (*Event) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*Event) XXX_Size

func (m *Event) XXX_Size() int

func (*Event) XXX_Unmarshal

func (m *Event) XXX_Unmarshal(b []byte) error

type Event_Claims

type Event_Claims struct {
	EntityId             string   `protobuf:"bytes,1,opt,name=entity_id,json=entityId,proto3" json:"entity_id,omitempty"`
	Entity               string   `protobuf:"bytes,2,opt,name=entity,proto3" json:"entity,omitempty"`
	Login                string   `protobuf:"bytes,3,opt,name=login,proto3" json:"login,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Event_Claims) Descriptor

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

func (*Event_Claims) GetEntity

func (m *Event_Claims) GetEntity() string

func (*Event_Claims) GetEntityId

func (m *Event_Claims) GetEntityId() string

func (*Event_Claims) GetLogin

func (m *Event_Claims) GetLogin() string

func (*Event_Claims) ProtoMessage

func (*Event_Claims) ProtoMessage()

func (*Event_Claims) Reset

func (m *Event_Claims) Reset()

func (*Event_Claims) String

func (m *Event_Claims) String() string

func (*Event_Claims) XXX_DiscardUnknown

func (m *Event_Claims) XXX_DiscardUnknown()

func (*Event_Claims) XXX_Marshal

func (m *Event_Claims) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Event_Claims) XXX_Merge

func (m *Event_Claims) XXX_Merge(src proto.Message)

func (*Event_Claims) XXX_Size

func (m *Event_Claims) XXX_Size() int

func (*Event_Claims) XXX_Unmarshal

func (m *Event_Claims) XXX_Unmarshal(b []byte) error

type Event_Employee

type Event_Employee struct {
	Employee *Employee `protobuf:"bytes,6,opt,name=employee,proto3,oneof"`
}

type Event_EmployeeFilter

type Event_EmployeeFilter struct {
	EmployeeFilter *EmployeeFilter `protobuf:"bytes,8,opt,name=employee_filter,json=employeeFilter,proto3,oneof"`
}

type Event_UpdateRequest

type Event_UpdateRequest struct {
	UpdateRequest *UpdateEmployeeRequest `protobuf:"bytes,7,opt,name=update_request,json=updateRequest,proto3,oneof"`
}

type NewEmployeeRequest

type NewEmployeeRequest struct {
	Email                string   `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
	Name                 string   `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Password             string   `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
	Phone                string   `protobuf:"bytes,4,opt,name=phone,proto3" json:"phone,omitempty"`
	Roles                []*Role  `protobuf:"bytes,5,rep,name=roles,proto3" json:"roles,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*NewEmployeeRequest) Descriptor

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

func (*NewEmployeeRequest) GetEmail

func (m *NewEmployeeRequest) GetEmail() string

func (*NewEmployeeRequest) GetName

func (m *NewEmployeeRequest) GetName() string

func (*NewEmployeeRequest) GetPassword

func (m *NewEmployeeRequest) GetPassword() string

func (*NewEmployeeRequest) GetPhone

func (m *NewEmployeeRequest) GetPhone() string

func (*NewEmployeeRequest) GetRoles

func (m *NewEmployeeRequest) GetRoles() []*Role

func (*NewEmployeeRequest) ProtoMessage

func (*NewEmployeeRequest) ProtoMessage()

func (*NewEmployeeRequest) Reset

func (m *NewEmployeeRequest) Reset()

func (*NewEmployeeRequest) String

func (m *NewEmployeeRequest) String() string

func (*NewEmployeeRequest) XXX_DiscardUnknown

func (m *NewEmployeeRequest) XXX_DiscardUnknown()

func (*NewEmployeeRequest) XXX_Marshal

func (m *NewEmployeeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NewEmployeeRequest) XXX_Merge

func (m *NewEmployeeRequest) XXX_Merge(src proto.Message)

func (*NewEmployeeRequest) XXX_Size

func (m *NewEmployeeRequest) XXX_Size() int

func (*NewEmployeeRequest) XXX_Unmarshal

func (m *NewEmployeeRequest) XXX_Unmarshal(b []byte) error

type Role

type Role struct {
	Id                   string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name                 string   `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Role) Descriptor

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

func (*Role) GetId

func (m *Role) GetId() string

func (*Role) GetName

func (m *Role) GetName() string

func (*Role) ProtoMessage

func (*Role) ProtoMessage()

func (*Role) Reset

func (m *Role) Reset()

func (*Role) String

func (m *Role) String() string

func (*Role) XXX_DiscardUnknown

func (m *Role) XXX_DiscardUnknown()

func (*Role) XXX_Marshal

func (m *Role) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Role) XXX_Merge

func (m *Role) XXX_Merge(src proto.Message)

func (*Role) XXX_Size

func (m *Role) XXX_Size() int

func (*Role) XXX_Unmarshal

func (m *Role) XXX_Unmarshal(b []byte) error

type RoleFilter

type RoleFilter struct {
	Id                   string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name                 string   `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*RoleFilter) Descriptor

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

func (*RoleFilter) GetId

func (m *RoleFilter) GetId() string

func (*RoleFilter) GetName

func (m *RoleFilter) GetName() string

func (*RoleFilter) ProtoMessage

func (*RoleFilter) ProtoMessage()

func (*RoleFilter) Reset

func (m *RoleFilter) Reset()

func (*RoleFilter) String

func (m *RoleFilter) String() string

func (*RoleFilter) XXX_DiscardUnknown

func (m *RoleFilter) XXX_DiscardUnknown()

func (*RoleFilter) XXX_Marshal

func (m *RoleFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RoleFilter) XXX_Merge

func (m *RoleFilter) XXX_Merge(src proto.Message)

func (*RoleFilter) XXX_Size

func (m *RoleFilter) XXX_Size() int

func (*RoleFilter) XXX_Unmarshal

func (m *RoleFilter) XXX_Unmarshal(b []byte) error

type RoleServiceClient

type RoleServiceClient interface {
	GetRole(ctx context.Context, in *RoleFilter, opts ...grpc.CallOption) (*Role, error)
}

RoleServiceClient is the client API for RoleService service.

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

func NewRoleServiceClient

func NewRoleServiceClient(cc *grpc.ClientConn) RoleServiceClient

type RoleServiceServer

type RoleServiceServer interface {
	GetRole(context.Context, *RoleFilter) (*Role, error)
}

RoleServiceServer is the server API for RoleService service.

type UnimplementedAuthServiceServer

type UnimplementedAuthServiceServer struct {
}

UnimplementedAuthServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedAuthServiceServer) Authenticate

func (*UnimplementedAuthServiceServer) Validate

type UnimplementedEmployeeServiceServer

type UnimplementedEmployeeServiceServer struct {
}

UnimplementedEmployeeServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedEmployeeServiceServer) DeleteEmployee

func (*UnimplementedEmployeeServiceServer) GetEmployee

func (*UnimplementedEmployeeServiceServer) NewEmployee

func (*UnimplementedEmployeeServiceServer) UpdateEmployee

type UnimplementedRoleServiceServer

type UnimplementedRoleServiceServer struct {
}

UnimplementedRoleServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedRoleServiceServer) GetRole

type UpdateEmployeeRequest

type UpdateEmployeeRequest struct {
	Id                   string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Email                string   `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
	Name                 string   `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	Password             string   `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"`
	Phone                string   `protobuf:"bytes,5,opt,name=phone,proto3" json:"phone,omitempty"`
	Roles                []*Role  `protobuf:"bytes,6,rep,name=roles,proto3" json:"roles,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*UpdateEmployeeRequest) Descriptor

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

func (*UpdateEmployeeRequest) GetEmail

func (m *UpdateEmployeeRequest) GetEmail() string

func (*UpdateEmployeeRequest) GetId

func (m *UpdateEmployeeRequest) GetId() string

func (*UpdateEmployeeRequest) GetName

func (m *UpdateEmployeeRequest) GetName() string

func (*UpdateEmployeeRequest) GetPassword

func (m *UpdateEmployeeRequest) GetPassword() string

func (*UpdateEmployeeRequest) GetPhone

func (m *UpdateEmployeeRequest) GetPhone() string

func (*UpdateEmployeeRequest) GetRoles

func (m *UpdateEmployeeRequest) GetRoles() []*Role

func (*UpdateEmployeeRequest) ProtoMessage

func (*UpdateEmployeeRequest) ProtoMessage()

func (*UpdateEmployeeRequest) Reset

func (m *UpdateEmployeeRequest) Reset()

func (*UpdateEmployeeRequest) String

func (m *UpdateEmployeeRequest) String() string

func (*UpdateEmployeeRequest) XXX_DiscardUnknown

func (m *UpdateEmployeeRequest) XXX_DiscardUnknown()

func (*UpdateEmployeeRequest) XXX_Marshal

func (m *UpdateEmployeeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UpdateEmployeeRequest) XXX_Merge

func (m *UpdateEmployeeRequest) XXX_Merge(src proto.Message)

func (*UpdateEmployeeRequest) XXX_Size

func (m *UpdateEmployeeRequest) XXX_Size() int

func (*UpdateEmployeeRequest) XXX_Unmarshal

func (m *UpdateEmployeeRequest) XXX_Unmarshal(b []byte) error

type ValidateRequest

type ValidateRequest struct {
	Token                string   `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ValidateRequest) Descriptor

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

func (*ValidateRequest) GetToken

func (m *ValidateRequest) GetToken() string

func (*ValidateRequest) ProtoMessage

func (*ValidateRequest) ProtoMessage()

func (*ValidateRequest) Reset

func (m *ValidateRequest) Reset()

func (*ValidateRequest) String

func (m *ValidateRequest) String() string

func (*ValidateRequest) XXX_DiscardUnknown

func (m *ValidateRequest) XXX_DiscardUnknown()

func (*ValidateRequest) XXX_Marshal

func (m *ValidateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ValidateRequest) XXX_Merge

func (m *ValidateRequest) XXX_Merge(src proto.Message)

func (*ValidateRequest) XXX_Size

func (m *ValidateRequest) XXX_Size() int

func (*ValidateRequest) XXX_Unmarshal

func (m *ValidateRequest) XXX_Unmarshal(b []byte) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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