service

package
v0.0.0-...-7eeeacd Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2026 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth struct {
	appv1.UnimplementedAuthServiceServer
	// contains filtered or unexported fields
}

func NewAuth

func NewAuth(config appconfig.Config) *Auth

func (*Auth) Login

func (s *Auth) Login(ctx context.Context, req *appv1.LoginReq) (*appv1.LoginResp, error)

type Permission

type Permission struct {
	appv1.UnimplementedPermissionServiceServer
}

func NewPermission

func NewPermission() *Permission

func (*Permission) Create

func (*Permission) Delete

func (*Permission) Get

func (*Permission) List

func (*Permission) Update

type Role

type Role struct {
	appv1.UnimplementedRoleServiceServer
}

func NewRole

func NewRole() *Role

func (*Role) Create

func (s *Role) Create(ctx context.Context, req *appv1.CreateRoleReq) (*appv1.Role, error)

func (*Role) Delete

func (s *Role) Delete(ctx context.Context, req *appv1.DeleteRoleReq) (*servercommon.Empty, error)

func (*Role) Get

func (s *Role) Get(ctx context.Context, req *appv1.GetRoleReq) (*appv1.Role, error)

func (*Role) List

func (s *Role) List(ctx context.Context, req *appv1.ListRoleReq) (*appv1.ListRoleResp, error)

func (*Role) SetPermissions

func (s *Role) SetPermissions(ctx context.Context, req *appv1.SetRolePermissionsReq) (*servercommon.Empty, error)

func (*Role) Update

func (s *Role) Update(ctx context.Context, req *appv1.UpdateRoleReq) (*appv1.Role, error)

type User

type User struct {
	appv1.UnimplementedUserServiceServer
	// contains filtered or unexported fields
}

func NewUser

func NewUser(config appconfig.Config) *User

func (*User) Create

func (s *User) Create(ctx context.Context, req *appv1.CreateUserReq) (*appv1.User, error)

func (*User) Delete

func (s *User) Delete(ctx context.Context, req *appv1.DeleteUserReq) (*servercommon.Empty, error)

func (*User) Get

func (s *User) Get(ctx context.Context, req *appv1.GetUserReq) (*appv1.User, error)

func (*User) List

func (s *User) List(ctx context.Context, req *appv1.ListUserReq) (*appv1.ListUserResp, error)

func (*User) SetRoles

func (s *User) SetRoles(ctx context.Context, req *appv1.SetUserRolesReq) (*servercommon.Empty, error)

func (*User) Update

func (s *User) Update(ctx context.Context, req *appv1.UpdateUserReq) (*appv1.User, error)

Jump to

Keyboard shortcuts

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