diff --git a/docs/tutorial/substreams.yaml b/docs/tutorial/substreams.yaml index 8265d66..fb19435 100644 --- a/docs/tutorial/substreams.yaml +++ b/docs/tutorial/substreams.yaml @@ -44,3 +44,5 @@ sink: wire_protocol_access: true postgraphile_frontend: enabled: true + pgweb_frontend: + enabled: true diff --git a/pb/sf/substreams/sink/sql/v1/services.pb.go b/pb/sf/substreams/sink/sql/v1/services.pb.go index 3f87b02..c333683 100644 --- a/pb/sf/substreams/sink/sql/v1/services.pb.go +++ b/pb/sf/substreams/sink/sql/v1/services.pb.go @@ -32,7 +32,7 @@ type Service struct { WireProtocolAccess bool `protobuf:"varint,3,opt,name=wire_protocol_access,json=wireProtocolAccess,proto3" json:"wire_protocol_access,omitempty"` HasuraFrontend *HasuraFrontend `protobuf:"bytes,4,opt,name=hasura_frontend,json=hasuraFrontend,proto3" json:"hasura_frontend,omitempty"` PostgraphileFrontend *PostgraphileFrontend `protobuf:"bytes,5,opt,name=postgraphile_frontend,json=postgraphileFrontend,proto3" json:"postgraphile_frontend,omitempty"` - PgwebFronted *PGWebFronted `protobuf:"bytes,6,opt,name=pgweb_fronted,json=pgwebFronted,proto3" json:"pgweb_fronted,omitempty"` + PgwebFrontend *PGWebFrontend `protobuf:"bytes,6,opt,name=pgweb_frontend,json=pgwebFrontend,proto3" json:"pgweb_frontend,omitempty"` } func (x *Service) Reset() { @@ -102,9 +102,9 @@ func (x *Service) GetPostgraphileFrontend() *PostgraphileFrontend { return nil } -func (x *Service) GetPgwebFronted() *PGWebFronted { +func (x *Service) GetPgwebFrontend() *PGWebFrontend { if x != nil { - return x.PgwebFronted + return x.PgwebFrontend } return nil } @@ -250,7 +250,7 @@ func (x *PostgraphileFrontend) GetEnabled() bool { return false } -type PGWebFronted struct { +type PGWebFrontend struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -258,8 +258,8 @@ type PGWebFronted struct { Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` } -func (x *PGWebFronted) Reset() { - *x = PGWebFronted{} +func (x *PGWebFrontend) Reset() { + *x = PGWebFrontend{} if protoimpl.UnsafeEnabled { mi := &file_sf_substreams_sink_sql_v1_services_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -267,13 +267,13 @@ func (x *PGWebFronted) Reset() { } } -func (x *PGWebFronted) String() string { +func (x *PGWebFrontend) String() string { return protoimpl.X.MessageStringOf(x) } -func (*PGWebFronted) ProtoMessage() {} +func (*PGWebFrontend) ProtoMessage() {} -func (x *PGWebFronted) ProtoReflect() protoreflect.Message { +func (x *PGWebFrontend) ProtoReflect() protoreflect.Message { mi := &file_sf_substreams_sink_sql_v1_services_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -285,12 +285,12 @@ func (x *PGWebFronted) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use PGWebFronted.ProtoReflect.Descriptor instead. -func (*PGWebFronted) Descriptor() ([]byte, []int) { +// Deprecated: Use PGWebFrontend.ProtoReflect.Descriptor instead. +func (*PGWebFrontend) Descriptor() ([]byte, []int) { return file_sf_substreams_sink_sql_v1_services_proto_rawDescGZIP(), []int{4} } -func (x *PGWebFronted) GetEnabled() bool { +func (x *PGWebFrontend) GetEnabled() bool { if x != nil { return x.Enabled } @@ -306,7 +306,7 @@ var file_sf_substreams_sink_sql_v1_services_proto_rawDesc = []byte{ 0x75, 0x62, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x73, 0x2e, 0x73, 0x69, 0x6e, 0x6b, 0x2e, 0x73, 0x71, 0x6c, 0x2e, 0x76, 0x31, 0x1a, 0x1b, 0x73, 0x66, 0x2f, 0x73, 0x75, 0x62, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x73, 0x2f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x22, 0xbc, 0x03, 0x0a, 0x07, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x1e, + 0x74, 0x6f, 0x22, 0xbf, 0x03, 0x0a, 0x07, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x1e, 0x0a, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xc2, 0x89, 0x01, 0x02, 0x08, 0x01, 0x52, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x48, 0x0a, 0x0a, 0x64, 0x62, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, @@ -328,39 +328,40 @@ var file_sf_substreams_sink_sql_v1_services_proto_rawDesc = []byte{ 0x6e, 0x6b, 0x2e, 0x73, 0x71, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x61, 0x70, 0x68, 0x69, 0x6c, 0x65, 0x46, 0x72, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x64, 0x52, 0x14, 0x70, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x61, 0x70, 0x68, 0x69, 0x6c, 0x65, 0x46, 0x72, 0x6f, 0x6e, - 0x74, 0x65, 0x6e, 0x64, 0x12, 0x4c, 0x0a, 0x0d, 0x70, 0x67, 0x77, 0x65, 0x62, 0x5f, 0x66, 0x72, - 0x6f, 0x6e, 0x74, 0x65, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x73, 0x66, - 0x2e, 0x73, 0x75, 0x62, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x73, 0x2e, 0x73, 0x69, 0x6e, 0x6b, - 0x2e, 0x73, 0x71, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x47, 0x57, 0x65, 0x62, 0x46, 0x72, 0x6f, - 0x6e, 0x74, 0x65, 0x64, 0x52, 0x0c, 0x70, 0x67, 0x77, 0x65, 0x62, 0x46, 0x72, 0x6f, 0x6e, 0x74, - 0x65, 0x64, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x64, 0x62, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x22, 0x29, 0x0a, 0x09, 0x44, 0x42, 0x54, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x1c, - 0x0a, 0x05, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x42, 0x06, 0xc2, - 0x89, 0x01, 0x02, 0x10, 0x01, 0x52, 0x05, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x22, 0x2a, 0x0a, 0x0e, - 0x48, 0x61, 0x73, 0x75, 0x72, 0x61, 0x46, 0x72, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x64, 0x12, 0x18, + 0x74, 0x65, 0x6e, 0x64, 0x12, 0x4f, 0x0a, 0x0e, 0x70, 0x67, 0x77, 0x65, 0x62, 0x5f, 0x66, 0x72, + 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x73, + 0x66, 0x2e, 0x73, 0x75, 0x62, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x73, 0x2e, 0x73, 0x69, 0x6e, + 0x6b, 0x2e, 0x73, 0x71, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x47, 0x57, 0x65, 0x62, 0x46, 0x72, + 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x64, 0x52, 0x0d, 0x70, 0x67, 0x77, 0x65, 0x62, 0x46, 0x72, 0x6f, + 0x6e, 0x74, 0x65, 0x6e, 0x64, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x64, 0x62, 0x74, 0x5f, 0x63, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x22, 0x29, 0x0a, 0x09, 0x44, 0x42, 0x54, 0x43, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x12, 0x1c, 0x0a, 0x05, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, + 0x42, 0x06, 0xc2, 0x89, 0x01, 0x02, 0x10, 0x01, 0x52, 0x05, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x22, + 0x2a, 0x0a, 0x0e, 0x48, 0x61, 0x73, 0x75, 0x72, 0x61, 0x46, 0x72, 0x6f, 0x6e, 0x74, 0x65, 0x6e, + 0x64, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x22, 0x30, 0x0a, 0x14, 0x50, + 0x6f, 0x73, 0x74, 0x67, 0x72, 0x61, 0x70, 0x68, 0x69, 0x6c, 0x65, 0x46, 0x72, 0x6f, 0x6e, 0x74, + 0x65, 0x6e, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x22, 0x29, 0x0a, + 0x0d, 0x50, 0x47, 0x57, 0x65, 0x62, 0x46, 0x72, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, - 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x22, 0x30, 0x0a, 0x14, 0x50, 0x6f, 0x73, 0x74, - 0x67, 0x72, 0x61, 0x70, 0x68, 0x69, 0x6c, 0x65, 0x46, 0x72, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x64, - 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x22, 0x28, 0x0a, 0x0c, 0x50, 0x47, - 0x57, 0x65, 0x62, 0x46, 0x72, 0x6f, 0x6e, 0x74, 0x65, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, - 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, - 0x62, 0x6c, 0x65, 0x64, 0x42, 0xee, 0x01, 0x0a, 0x1d, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x66, 0x2e, - 0x73, 0x75, 0x62, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x73, 0x2e, 0x73, 0x69, 0x6e, 0x6b, 0x2e, - 0x73, 0x71, 0x6c, 0x2e, 0x76, 0x31, 0x42, 0x0d, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, - 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x35, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, - 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x66, 0x61, 0x73, - 0x74, 0x2f, 0x73, 0x75, 0x62, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x73, 0x2d, 0x73, 0x69, 0x6e, - 0x6b, 0x2d, 0x73, 0x71, 0x6c, 0x2f, 0x70, 0x62, 0x3b, 0x70, 0x62, 0x73, 0x71, 0x6c, 0xa2, 0x02, - 0x04, 0x53, 0x53, 0x53, 0x53, 0xaa, 0x02, 0x19, 0x53, 0x66, 0x2e, 0x53, 0x75, 0x62, 0x73, 0x74, - 0x72, 0x65, 0x61, 0x6d, 0x73, 0x2e, 0x53, 0x69, 0x6e, 0x6b, 0x2e, 0x53, 0x71, 0x6c, 0x2e, 0x56, - 0x31, 0xca, 0x02, 0x19, 0x53, 0x66, 0x5c, 0x53, 0x75, 0x62, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, - 0x73, 0x5c, 0x53, 0x69, 0x6e, 0x6b, 0x5c, 0x53, 0x71, 0x6c, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x25, - 0x53, 0x66, 0x5c, 0x53, 0x75, 0x62, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x73, 0x5c, 0x53, 0x69, - 0x6e, 0x6b, 0x5c, 0x53, 0x71, 0x6c, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, - 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1d, 0x53, 0x66, 0x3a, 0x3a, 0x53, 0x75, 0x62, 0x73, - 0x74, 0x72, 0x65, 0x61, 0x6d, 0x73, 0x3a, 0x3a, 0x53, 0x69, 0x6e, 0x6b, 0x3a, 0x3a, 0x53, 0x71, - 0x6c, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x42, 0xee, 0x01, 0x0a, 0x1d, 0x63, 0x6f, 0x6d, + 0x2e, 0x73, 0x66, 0x2e, 0x73, 0x75, 0x62, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x73, 0x2e, 0x73, + 0x69, 0x6e, 0x6b, 0x2e, 0x73, 0x71, 0x6c, 0x2e, 0x76, 0x31, 0x42, 0x0d, 0x53, 0x65, 0x72, 0x76, + 0x69, 0x63, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x35, 0x67, 0x69, 0x74, + 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, + 0x67, 0x66, 0x61, 0x73, 0x74, 0x2f, 0x73, 0x75, 0x62, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x73, + 0x2d, 0x73, 0x69, 0x6e, 0x6b, 0x2d, 0x73, 0x71, 0x6c, 0x2f, 0x70, 0x62, 0x3b, 0x70, 0x62, 0x73, + 0x71, 0x6c, 0xa2, 0x02, 0x04, 0x53, 0x53, 0x53, 0x53, 0xaa, 0x02, 0x19, 0x53, 0x66, 0x2e, 0x53, + 0x75, 0x62, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x73, 0x2e, 0x53, 0x69, 0x6e, 0x6b, 0x2e, 0x53, + 0x71, 0x6c, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x19, 0x53, 0x66, 0x5c, 0x53, 0x75, 0x62, 0x73, 0x74, + 0x72, 0x65, 0x61, 0x6d, 0x73, 0x5c, 0x53, 0x69, 0x6e, 0x6b, 0x5c, 0x53, 0x71, 0x6c, 0x5c, 0x56, + 0x31, 0xe2, 0x02, 0x25, 0x53, 0x66, 0x5c, 0x53, 0x75, 0x62, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, + 0x73, 0x5c, 0x53, 0x69, 0x6e, 0x6b, 0x5c, 0x53, 0x71, 0x6c, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, + 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1d, 0x53, 0x66, 0x3a, 0x3a, + 0x53, 0x75, 0x62, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x73, 0x3a, 0x3a, 0x53, 0x69, 0x6e, 0x6b, + 0x3a, 0x3a, 0x53, 0x71, 0x6c, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, } var ( @@ -381,13 +382,13 @@ var file_sf_substreams_sink_sql_v1_services_proto_goTypes = []interface{}{ (*DBTConfig)(nil), // 1: sf.substreams.sink.sql.v1.DBTConfig (*HasuraFrontend)(nil), // 2: sf.substreams.sink.sql.v1.HasuraFrontend (*PostgraphileFrontend)(nil), // 3: sf.substreams.sink.sql.v1.PostgraphileFrontend - (*PGWebFronted)(nil), // 4: sf.substreams.sink.sql.v1.PGWebFronted + (*PGWebFrontend)(nil), // 4: sf.substreams.sink.sql.v1.PGWebFrontend } var file_sf_substreams_sink_sql_v1_services_proto_depIdxs = []int32{ 1, // 0: sf.substreams.sink.sql.v1.Service.dbt_config:type_name -> sf.substreams.sink.sql.v1.DBTConfig 2, // 1: sf.substreams.sink.sql.v1.Service.hasura_frontend:type_name -> sf.substreams.sink.sql.v1.HasuraFrontend 3, // 2: sf.substreams.sink.sql.v1.Service.postgraphile_frontend:type_name -> sf.substreams.sink.sql.v1.PostgraphileFrontend - 4, // 3: sf.substreams.sink.sql.v1.Service.pgweb_fronted:type_name -> sf.substreams.sink.sql.v1.PGWebFronted + 4, // 3: sf.substreams.sink.sql.v1.Service.pgweb_frontend:type_name -> sf.substreams.sink.sql.v1.PGWebFrontend 4, // [4:4] is the sub-list for method output_type 4, // [4:4] is the sub-list for method input_type 4, // [4:4] is the sub-list for extension type_name @@ -450,7 +451,7 @@ func file_sf_substreams_sink_sql_v1_services_proto_init() { } } file_sf_substreams_sink_sql_v1_services_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PGWebFronted); i { + switch v := v.(*PGWebFrontend); i { case 0: return &v.state case 1: diff --git a/proto/sf/substreams/sink/sql/v1/services.proto b/proto/sf/substreams/sink/sql/v1/services.proto index 5499e5a..4ccb038 100644 --- a/proto/sf/substreams/sink/sql/v1/services.proto +++ b/proto/sf/substreams/sink/sql/v1/services.proto @@ -13,7 +13,7 @@ message Service { bool wire_protocol_access = 3; HasuraFrontend hasura_frontend = 4; PostgraphileFrontend postgraphile_frontend = 5; - PGWebFronted pgweb_fronted = 6; + PGWebFrontend pgweb_frontend = 6; } message DBTConfig { @@ -28,6 +28,6 @@ message PostgraphileFrontend { bool enabled = 1; } -message PGWebFronted { +message PGWebFrontend { bool enabled = 1; }