Versions in this module Expand all Collapse all v2 v2.4.0 Jul 11, 2025 Changes in this version type Box + func (b *Box) Schema() *Schema + func (b *Box) Session() *Session + type Permission string + const PermissionAlter + const PermissionCreate + const PermissionDrop + const PermissionExecute + const PermissionRead + const PermissionSession + const PermissionUsage + const PermissionWrite + type Privilege struct + Name string + Permissions []Permission + Type PrivilegeType + type PrivilegeType string + const PrivilegeFunction + const PrivilegeLuaCall + const PrivilegeLuaEval + const PrivilegeRole + const PrivilegeSQL + const PrivilegeSequence + const PrivilegeSpace + const PrivilegeTypeUser + const PrivilegeUniverse + type Schema struct + func (s *Schema) User() *SchemaUser + type SchemaUser struct + func (u *SchemaUser) Create(ctx context.Context, username string, options UserCreateOptions) error + func (u *SchemaUser) Drop(ctx context.Context, username string, options UserDropOptions) error + func (u *SchemaUser) Exists(ctx context.Context, username string) (bool, error) + func (u *SchemaUser) Grant(ctx context.Context, username string, privilege Privilege, ...) error + func (u *SchemaUser) Info(ctx context.Context, username string) ([]Privilege, error) + func (u *SchemaUser) Passwd(ctx context.Context, args ...string) error + func (u *SchemaUser) Password(ctx context.Context, password string) (string, error) + func (u *SchemaUser) Revoke(ctx context.Context, username string, privilege Privilege, ...) error + type Session struct + func (s *Session) Su(ctx context.Context, username string) error + type SessionSuRequest struct + func NewSessionSuRequest(username string) (SessionSuRequest, error) + type UserCreateOptions struct + IfNotExists bool + Password string + type UserCreateRequest struct + func NewUserCreateRequest(username string, options UserCreateOptions) UserCreateRequest + type UserCreateResponse struct + func (uer *UserCreateResponse) DecodeMsgpack(_ *msgpack.Decoder) error + type UserDropOptions struct + IfExists bool + type UserDropRequest struct + func NewUserDropRequest(username string, options UserDropOptions) UserDropRequest + type UserDropResponse struct + type UserExistsRequest struct + func NewUserExistsRequest(username string) UserExistsRequest + type UserExistsResponse struct + Exists bool + func (uer *UserExistsResponse) DecodeMsgpack(d *msgpack.Decoder) error + type UserGrantOptions struct + Grantor string + IfNotExists bool + type UserGrantRequest struct + func NewUserGrantRequest(username string, privilege Privilege, opts UserGrantOptions) UserGrantRequest + type UserGrantResponse struct + type UserInfoRequest struct + func NewUserInfoRequest(username string) UserInfoRequest + type UserInfoResponse struct + Privileges []Privilege + func (uer *UserInfoResponse) DecodeMsgpack(d *msgpack.Decoder) error + type UserPasswdRequest struct + func NewUserPasswdRequest(args ...string) (UserPasswdRequest, error) + type UserPasswdResponse struct + type UserPasswordRequest struct + func NewUserPasswordRequest(username string) UserPasswordRequest + type UserPasswordResponse struct + Hash string + func (upr *UserPasswordResponse) DecodeMsgpack(d *msgpack.Decoder) error + type UserRevokeOptions struct + IfExists bool + type UserRevokeRequest struct + func NewUserRevokeRequest(username string, privilege Privilege, opts UserRevokeOptions) UserRevokeRequest + type UserRevokeResponse struct v2.3.2 Apr 14, 2025 v2.3.1 Apr 3, 2025 v2.3.0 Mar 11, 2025 Changes in this version + type Downstream struct + Idle float64 + Lag float64 + Message string + Status string + SystemMessage string + VClock map[int]uint64 type Info + Replication map[int]Replication + type Replication struct + Downstream Downstream + ID int + LSN uint64 + UUID string + Upstream Upstream + type Upstream struct + Idle float64 + Lag float64 + Message string + Peer string + Status string + SystemMessage string v2.2.1 Dec 27, 2024 v2.2.0 Dec 16, 2024 Changes in this version + type Box struct + func New(conn tarantool.Doer) *Box + func (b *Box) Info() (Info, error) + type Info struct + ID *int + LSN uint64 + PID int + RO bool + Status string + UUID string + Version string + type InfoRequest struct + func NewInfoRequest() InfoRequest + func (i InfoRequest) Body(res tarantool.SchemaResolver, enc *msgpack.Encoder) error + func (req InfoRequest) Async() bool + func (req InfoRequest) Ctx() context.Context + func (req InfoRequest) Response(header tarantool.Header, body io.Reader) (tarantool.Response, error) + func (req InfoRequest) Type() iproto.Type + type InfoResponse struct + Info Info + func (ir *InfoResponse) DecodeMsgpack(d *msgpack.Decoder) error