Documentation
¶
Index ¶
- func RegisterAPIServer(s *grpc.Server, srv APIServer)
- type APIClient
- type APIServer
- type UnimplementedAPIServer
- func (*UnimplementedAPIServer) CreateEntity(ctx context.Context, req *dto.CreateEntityReq) (*user.Entity, error)
- func (*UnimplementedAPIServer) CreateRole(ctx context.Context, req *dto.CreateRoleReq) (*dto.RolePermission, error)
- func (*UnimplementedAPIServer) CreateRoleUser(ctx context.Context, req *dto.CreateRoleUserReq) (*dto.UserRoles, error)
- func (*UnimplementedAPIServer) DeleteEntity(ctx context.Context, req *dto.DeleteEntityReq) (*dto.DeleteEntityResp, error)
- func (*UnimplementedAPIServer) DeleteRole(ctx context.Context, req *dto.DeleteRoleReq) (*dto.RolePermission, error)
- func (*UnimplementedAPIServer) DeleteRoleUser(ctx context.Context, req *dto.DeleteRoleUserReq) (*dto.UserRoles, error)
- func (*UnimplementedAPIServer) FetchClaims(ctx context.Context, req *pbtypes.Empty) (*user.ClaimAuth, error)
- func (*UnimplementedAPIServer) FetchEntity(ctx context.Context, req *dto.FetchEntityReq) (*user.Entity, error)
- func (*UnimplementedAPIServer) FetchUser(ctx context.Context, req *dto.FetchUserReq) (*user.U, error)
- func (*UnimplementedAPIServer) InviteUser(ctx context.Context, req *dto.InviteUserReq) (*dto.UserRoles, error)
- func (*UnimplementedAPIServer) ListEntity(ctx context.Context, req *dto.ListEntityReq) (*dto.ListEntityResp, error)
- func (*UnimplementedAPIServer) ListRole(ctx context.Context, req *dto.ListRoleReq) (*dto.ListRoleResp, error)
- func (*UnimplementedAPIServer) ListUser(ctx context.Context, req *dto.ListUserReq) (*dto.ListUserResp, error)
- func (*UnimplementedAPIServer) Ping(ctx context.Context, req *pbtypes.Empty) (*pbtypes.Empty, error)
- func (*UnimplementedAPIServer) UpdateEntity(ctx context.Context, req *dto.UpdateEntityReq) (*user.Entity, error)
- func (*UnimplementedAPIServer) UpdateRole(ctx context.Context, req *dto.UpdateRoleReq) (*dto.RolePermission, error)
- func (*UnimplementedAPIServer) UpdateUser(ctx context.Context, req *dto.UpdateUserReq) (*user.U, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterAPIServer ¶
Types ¶
type APIClient ¶
type APIClient interface { // Ping Ping(ctx context.Context, in *pbtypes.Empty, opts ...grpc.CallOption) (*pbtypes.Empty, error) // User ListUser(ctx context.Context, in *dto.ListUserReq, opts ...grpc.CallOption) (*dto.ListUserResp, error) FetchUser(ctx context.Context, in *dto.FetchUserReq, opts ...grpc.CallOption) (*user.U, error) UpdateUser(ctx context.Context, in *dto.UpdateUserReq, opts ...grpc.CallOption) (*user.U, error) InviteUser(ctx context.Context, in *dto.InviteUserReq, opts ...grpc.CallOption) (*dto.UserRoles, error) // Claims FetchClaims(ctx context.Context, in *pbtypes.Empty, opts ...grpc.CallOption) (*user.ClaimAuth, error) // Entity ListEntity(ctx context.Context, in *dto.ListEntityReq, opts ...grpc.CallOption) (*dto.ListEntityResp, error) FetchEntity(ctx context.Context, in *dto.FetchEntityReq, opts ...grpc.CallOption) (*user.Entity, error) CreateEntity(ctx context.Context, in *dto.CreateEntityReq, opts ...grpc.CallOption) (*user.Entity, error) UpdateEntity(ctx context.Context, in *dto.UpdateEntityReq, opts ...grpc.CallOption) (*user.Entity, error) DeleteEntity(ctx context.Context, in *dto.DeleteEntityReq, opts ...grpc.CallOption) (*dto.DeleteEntityResp, error) // Roles ListRole(ctx context.Context, in *dto.ListRoleReq, opts ...grpc.CallOption) (*dto.ListRoleResp, error) CreateRole(ctx context.Context, in *dto.CreateRoleReq, opts ...grpc.CallOption) (*dto.RolePermission, error) UpdateRole(ctx context.Context, in *dto.UpdateRoleReq, opts ...grpc.CallOption) (*dto.RolePermission, error) DeleteRole(ctx context.Context, in *dto.DeleteRoleReq, opts ...grpc.CallOption) (*dto.RolePermission, error) // Roles user CreateRoleUser(ctx context.Context, in *dto.CreateRoleUserReq, opts ...grpc.CallOption) (*dto.UserRoles, error) DeleteRoleUser(ctx context.Context, in *dto.DeleteRoleUserReq, opts ...grpc.CallOption) (*dto.UserRoles, error) }
APIClient is the client API for API service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAPIClient ¶
func NewAPIClient(cc *grpc.ClientConn) APIClient
type APIServer ¶
type APIServer interface { // Ping Ping(context.Context, *pbtypes.Empty) (*pbtypes.Empty, error) // User ListUser(context.Context, *dto.ListUserReq) (*dto.ListUserResp, error) FetchUser(context.Context, *dto.FetchUserReq) (*user.U, error) UpdateUser(context.Context, *dto.UpdateUserReq) (*user.U, error) InviteUser(context.Context, *dto.InviteUserReq) (*dto.UserRoles, error) // Claims FetchClaims(context.Context, *pbtypes.Empty) (*user.ClaimAuth, error) // Entity ListEntity(context.Context, *dto.ListEntityReq) (*dto.ListEntityResp, error) FetchEntity(context.Context, *dto.FetchEntityReq) (*user.Entity, error) CreateEntity(context.Context, *dto.CreateEntityReq) (*user.Entity, error) UpdateEntity(context.Context, *dto.UpdateEntityReq) (*user.Entity, error) DeleteEntity(context.Context, *dto.DeleteEntityReq) (*dto.DeleteEntityResp, error) // Roles ListRole(context.Context, *dto.ListRoleReq) (*dto.ListRoleResp, error) CreateRole(context.Context, *dto.CreateRoleReq) (*dto.RolePermission, error) UpdateRole(context.Context, *dto.UpdateRoleReq) (*dto.RolePermission, error) DeleteRole(context.Context, *dto.DeleteRoleReq) (*dto.RolePermission, error) // Roles user CreateRoleUser(context.Context, *dto.CreateRoleUserReq) (*dto.UserRoles, error) DeleteRoleUser(context.Context, *dto.DeleteRoleUserReq) (*dto.UserRoles, error) }
APIServer is the server API for API service.
type UnimplementedAPIServer ¶
type UnimplementedAPIServer struct { }
UnimplementedAPIServer can be embedded to have forward compatible implementations.
func (*UnimplementedAPIServer) CreateEntity ¶
func (*UnimplementedAPIServer) CreateEntity(ctx context.Context, req *dto.CreateEntityReq) (*user.Entity, error)
func (*UnimplementedAPIServer) CreateRole ¶
func (*UnimplementedAPIServer) CreateRole(ctx context.Context, req *dto.CreateRoleReq) (*dto.RolePermission, error)
func (*UnimplementedAPIServer) CreateRoleUser ¶
func (*UnimplementedAPIServer) CreateRoleUser(ctx context.Context, req *dto.CreateRoleUserReq) (*dto.UserRoles, error)
func (*UnimplementedAPIServer) DeleteEntity ¶
func (*UnimplementedAPIServer) DeleteEntity(ctx context.Context, req *dto.DeleteEntityReq) (*dto.DeleteEntityResp, error)
func (*UnimplementedAPIServer) DeleteRole ¶
func (*UnimplementedAPIServer) DeleteRole(ctx context.Context, req *dto.DeleteRoleReq) (*dto.RolePermission, error)
func (*UnimplementedAPIServer) DeleteRoleUser ¶
func (*UnimplementedAPIServer) DeleteRoleUser(ctx context.Context, req *dto.DeleteRoleUserReq) (*dto.UserRoles, error)
func (*UnimplementedAPIServer) FetchClaims ¶
func (*UnimplementedAPIServer) FetchEntity ¶
func (*UnimplementedAPIServer) FetchEntity(ctx context.Context, req *dto.FetchEntityReq) (*user.Entity, error)
func (*UnimplementedAPIServer) FetchUser ¶
func (*UnimplementedAPIServer) FetchUser(ctx context.Context, req *dto.FetchUserReq) (*user.U, error)
func (*UnimplementedAPIServer) InviteUser ¶
func (*UnimplementedAPIServer) InviteUser(ctx context.Context, req *dto.InviteUserReq) (*dto.UserRoles, error)
func (*UnimplementedAPIServer) ListEntity ¶
func (*UnimplementedAPIServer) ListEntity(ctx context.Context, req *dto.ListEntityReq) (*dto.ListEntityResp, error)
func (*UnimplementedAPIServer) ListRole ¶
func (*UnimplementedAPIServer) ListRole(ctx context.Context, req *dto.ListRoleReq) (*dto.ListRoleResp, error)
func (*UnimplementedAPIServer) ListUser ¶
func (*UnimplementedAPIServer) ListUser(ctx context.Context, req *dto.ListUserReq) (*dto.ListUserResp, error)
func (*UnimplementedAPIServer) UpdateEntity ¶
func (*UnimplementedAPIServer) UpdateEntity(ctx context.Context, req *dto.UpdateEntityReq) (*user.Entity, error)
func (*UnimplementedAPIServer) UpdateRole ¶
func (*UnimplementedAPIServer) UpdateRole(ctx context.Context, req *dto.UpdateRoleReq) (*dto.RolePermission, error)
func (*UnimplementedAPIServer) UpdateUser ¶
func (*UnimplementedAPIServer) UpdateUser(ctx context.Context, req *dto.UpdateUserReq) (*user.U, error)
Click to show internal directories.
Click to hide internal directories.