2021-10-26 23:32:16 +03:00
|
|
|
// Code generated by protoc-gen-go-micro. DO NOT EDIT.
|
|
|
|
// protoc-gen-go-micro version: v3.5.3
|
2021-03-22 08:59:52 +03:00
|
|
|
// source: service.proto
|
2021-10-26 23:32:16 +03:00
|
|
|
|
2021-05-09 18:47:50 +03:00
|
|
|
package servicepb
|
2021-03-22 08:59:52 +03:00
|
|
|
|
|
|
|
import (
|
|
|
|
context "context"
|
2021-10-26 23:32:16 +03:00
|
|
|
proto "go.unistack.org/micro-config-service/v3/proto"
|
|
|
|
api "go.unistack.org/micro/v3/api"
|
|
|
|
client "go.unistack.org/micro/v3/client"
|
|
|
|
)
|
|
|
|
|
|
|
|
var (
|
|
|
|
ConfigName = "Config"
|
|
|
|
|
|
|
|
ConfigEndpoints = []api.Endpoint{}
|
2021-03-22 08:59:52 +03:00
|
|
|
)
|
|
|
|
|
2021-10-26 23:32:16 +03:00
|
|
|
func NewConfigEndpoints() []api.Endpoint {
|
|
|
|
return ConfigEndpoints
|
2021-03-22 08:59:52 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
type ConfigClient interface {
|
|
|
|
Load(ctx context.Context, req *proto.LoadRequest, opts ...client.CallOption) (*proto.LoadResponse, error)
|
|
|
|
Save(ctx context.Context, req *proto.SaveRequest, opts ...client.CallOption) (*proto.SaveResponse, error)
|
|
|
|
}
|
|
|
|
|
|
|
|
type ConfigServer interface {
|
|
|
|
Load(ctx context.Context, req *proto.LoadRequest, rsp *proto.LoadResponse) error
|
|
|
|
Save(ctx context.Context, req *proto.SaveRequest, rsp *proto.SaveResponse) error
|
|
|
|
}
|