Documentation ¶
Overview ¶
Copyright © 2021-2022 Nikita Ivanovski info@slnt-opp.xyz
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2021-2022 Nikita Ivanovski info@slnt-opp.xyz
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2021-2022 Nikita Ivanovski info@slnt-opp.xyz
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- func MakeAccountMessage(acc graph.Account) *accountspb.Account
- func MergeMaps[K comparable](old map[K]interface{}, new map[K]interface{}) map[K]interface{}
- type AccountsServiceServer
- func (s *AccountsServiceServer) Create(ctx context.Context, request *accountspb.CreateRequest) (*accountspb.CreateResponse, error)
- func (s *AccountsServiceServer) Delete(ctx context.Context, request *accountspb.DeleteRequest) (*accountspb.DeleteResponse, error)
- func (s *AccountsServiceServer) EnsureRootExists(passwd string) error
- func (s *AccountsServiceServer) Get(ctx context.Context, request *accountspb.GetRequest) (*accountspb.Account, error)
- func (s *AccountsServiceServer) List(ctx context.Context, request *accountspb.ListRequest) (*accountspb.ListResponse, error)
- func (s *AccountsServiceServer) SetCredentials(ctx context.Context, request *accountspb.SetCredentialsRequest) (*accountspb.SetCredentialsResponse, error)
- func (s *AccountsServiceServer) Token(ctx context.Context, request *accountspb.TokenRequest) (*accountspb.TokenResponse, error)
- func (s *AccountsServiceServer) Update(ctx context.Context, request *accountspb.Account) (*accountspb.UpdateResponse, error)
- type NamespacesServiceServer
- func (s *NamespacesServiceServer) Create(ctx context.Context, request *namespacespb.CreateRequest) (*namespacespb.CreateResponse, error)
- func (s *NamespacesServiceServer) Delete(ctx context.Context, request *namespacespb.DeleteRequest) (*namespacespb.DeleteResponse, error)
- func (s *NamespacesServiceServer) Join(ctx context.Context, request *namespacespb.JoinRequest) (*namespacespb.JoinResponse, error)
- func (s *NamespacesServiceServer) Link(ctx context.Context, request *namespacespb.LinkRequest) (*namespacespb.LinkResponse, error)
- func (s *NamespacesServiceServer) List(ctx context.Context, request *namespacespb.ListRequest) (*namespacespb.ListResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeAccountMessage ¶
func MakeAccountMessage(acc graph.Account) *accountspb.Account
func MergeMaps ¶
func MergeMaps[K comparable](old map[K]interface{}, new map[K]interface{}) map[K]interface{}
Types ¶
type AccountsServiceServer ¶
type AccountsServiceServer struct { pb.UnimplementedAccountsServiceServer SIGNING_KEY []byte // contains filtered or unexported fields }
func NewAccountsServer ¶
func NewAccountsServer(log *zap.Logger, db driver.Database) *AccountsServiceServer
func (*AccountsServiceServer) Create ¶
func (s *AccountsServiceServer) Create(ctx context.Context, request *accountspb.CreateRequest) (*accountspb.CreateResponse, error)
func (*AccountsServiceServer) Delete ¶
func (s *AccountsServiceServer) Delete(ctx context.Context, request *accountspb.DeleteRequest) (*accountspb.DeleteResponse, error)
func (*AccountsServiceServer) EnsureRootExists ¶
func (s *AccountsServiceServer) EnsureRootExists(passwd string) error
func (*AccountsServiceServer) Get ¶
func (s *AccountsServiceServer) Get(ctx context.Context, request *accountspb.GetRequest) (*accountspb.Account, error)
func (*AccountsServiceServer) List ¶
func (s *AccountsServiceServer) List(ctx context.Context, request *accountspb.ListRequest) (*accountspb.ListResponse, error)
func (*AccountsServiceServer) SetCredentials ¶
func (s *AccountsServiceServer) SetCredentials(ctx context.Context, request *accountspb.SetCredentialsRequest) (*accountspb.SetCredentialsResponse, error)
func (*AccountsServiceServer) Token ¶
func (s *AccountsServiceServer) Token(ctx context.Context, request *accountspb.TokenRequest) (*accountspb.TokenResponse, error)
func (*AccountsServiceServer) Update ¶
func (s *AccountsServiceServer) Update(ctx context.Context, request *accountspb.Account) (*accountspb.UpdateResponse, error)
Update Account Supports updating Title and Data
Updating Data rules: 1. If Data is nil - it'll be skipped 2. If Data is not nil but has no keys - it'll be wiped 3. If value of one of the Data keys is nil - it'll be deleted from Data
type NamespacesServiceServer ¶
type NamespacesServiceServer struct { pb.UnimplementedNamespacesServiceServer // contains filtered or unexported fields }
func NewNamespacesServer ¶
func NewNamespacesServer(log *zap.Logger, db driver.Database) *NamespacesServiceServer
func (*NamespacesServiceServer) Create ¶
func (s *NamespacesServiceServer) Create(ctx context.Context, request *namespacespb.CreateRequest) (*namespacespb.CreateResponse, error)
func (*NamespacesServiceServer) Delete ¶
func (s *NamespacesServiceServer) Delete(ctx context.Context, request *namespacespb.DeleteRequest) (*namespacespb.DeleteResponse, error)
func (*NamespacesServiceServer) Join ¶
func (s *NamespacesServiceServer) Join(ctx context.Context, request *namespacespb.JoinRequest) (*namespacespb.JoinResponse, error)
func (*NamespacesServiceServer) Link ¶
func (s *NamespacesServiceServer) Link(ctx context.Context, request *namespacespb.LinkRequest) (*namespacespb.LinkResponse, error)
func (*NamespacesServiceServer) List ¶
func (s *NamespacesServiceServer) List(ctx context.Context, request *namespacespb.ListRequest) (*namespacespb.ListResponse, error)