Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Grpc server impl of training.proto - Skeleton code checkin
  • Loading branch information
anandrgitnirman committed May 11, 2022
1 parent 9eadb2c commit 1013417
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ const (
LogKey = "log"
MaxMessageSizeInMB = "max_message_size_in_mb"
MeteringEnabled = "metering_enabled"
ModelTrainingEndpoint = "model_training_endpoint"
OrganizationId = "organization_id"
ServiceId = "service_id"
PassthroughEnabledKey = "passthrough_enabled"
Expand Down
7 changes: 5 additions & 2 deletions training/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,19 @@ type ModelUserKey struct {
ServiceId string
GroupID string
ChannelId *big.Int
ModelId string
}

func (key *ModelUserKey) String() string {
return fmt.Sprintf("{ID:%v/%v/%v/%v}", key.OrganizationId,
key.ServiceId, key.GroupID, key.ChannelId)
return fmt.Sprintf("{ID:%v/%v/%v/%v/%v}", key.OrganizationId,
key.ServiceId, key.GroupID, key.ChannelId, key.ModelId)
}

type ModelUserData struct {
isPublic bool
AuthorizedAddresses []string
Status string
CreatedByAddress string
}

func serializeModelKey(key interface{}) (serialized string, err error) {
Expand Down

0 comments on commit 1013417

Please sign in to comment.