1234567891011121314151617181920212223242526272829 |
- package ops
- import (
- "context"
- "fmt"
- "kpt-grpc-demo/config"
- filedPb "kpt-grpc-demo/proto/go/backend/ops"
- )
- type Entry struct {
- Config *config.AppConfig
- }
- func NewStore(cfg *config.AppConfig) (Options, error) {
- return &Entry{
- Config: cfg,
- }, nil
- }
- func (o *Entry) mustEmbedUnimplementedFieldServiceServer() {
- //TODO implement me
- panic("implement me")
- }
- func (o *Entry) CreateFields(ctx context.Context, opt *filedPb.CreatedFiledRequest) (*filedPb.CreatedFiledResponse, error) {
- //TODO implement me
- fmt.Println("CreateFields===> implement me")
- return &filedPb.CreatedFiledResponse{Id: opt.FiledName}, nil
- }
|