grpc

package
v0.0.0-...-c99e9fc Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterAPIServer

func RegisterAPIServer(s *grpc.Server, srv APIServer)

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

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) CreateRole

func (*UnimplementedAPIServer) CreateRoleUser

func (*UnimplementedAPIServer) DeleteEntity

func (*UnimplementedAPIServer) DeleteRole

func (*UnimplementedAPIServer) DeleteRoleUser

func (*UnimplementedAPIServer) FetchClaims

func (*UnimplementedAPIServer) FetchClaims(ctx context.Context, req *pbtypes.Empty) (*user.ClaimAuth, error)

func (*UnimplementedAPIServer) FetchEntity

func (*UnimplementedAPIServer) FetchUser

func (*UnimplementedAPIServer) FetchUser(ctx context.Context, req *dto.FetchUserReq) (*user.U, error)

func (*UnimplementedAPIServer) InviteUser

func (*UnimplementedAPIServer) ListEntity

func (*UnimplementedAPIServer) ListRole

func (*UnimplementedAPIServer) ListUser

func (*UnimplementedAPIServer) Ping

func (*UnimplementedAPIServer) UpdateEntity

func (*UnimplementedAPIServer) UpdateRole

func (*UnimplementedAPIServer) UpdateUser

func (*UnimplementedAPIServer) UpdateUser(ctx context.Context, req *dto.UpdateUserReq) (*user.U, error)

Jump to

Keyboard shortcuts

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