Documentation
¶
Index ¶
- func StartJitServer(log *zap.Logger, isTest bool, pwd string, dbOpt *config.DBOptions, ...)
- type ServiceService
- func (ss *ServiceService) CreateService(ctx context.Context, in *jitproto.CreateServiceRequest) (*jitproto.CreateServiceResponse, error)
- func (ss *ServiceService) FindByCarrierServiceCode(ctx context.Context, in *jitproto.FindByCarrierServiceCodeRequest) (*jitproto.FindByCarrierServiceCodeResponse, error)
- func (ss *ServiceService) GetService(ctx context.Context, inReq *jitproto.GetServiceRequest) (*jitproto.GetServiceResponse, error)
- func (ss *ServiceService) GetServiceByPk(ctx context.Context, inReq *jitproto.GetServiceByPkRequest) (*jitproto.GetServiceByPkResponse, error)
- func (ss *ServiceService) GetServices(ctx context.Context, in *jitproto.GetServicesRequest) (*jitproto.GetServicesResponse, error)
- type TimestampService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StartJitServer ¶
func StartJitServer(log *zap.Logger, isTest bool, pwd string, dbOpt *config.DBOptions, redisOpt *config.RedisOptions, mailerOpt *config.MailerOptions, grpcServerOpt *config.GrpcServerOptions, jwtOpt *config.JWTOptions, oauthOpt *config.OauthOptions, userOpt *config.UserOptions, uptraceOpt *config.UptraceOptions, dbService *common.DBService, redisService *common.RedisService, mailerService common.MailerIntf)
StartJitServer - Start Jit server
Types ¶
type ServiceService ¶
type ServiceService struct { DBService *common.DBService RedisService *common.RedisService UserServiceClient partyproto.UserServiceClient jitproto.UnimplementedServiceServiceServer // contains filtered or unexported fields }
ServiceService - For accessing Service services
func NewServiceService ¶
func NewServiceService(log *zap.Logger, dbOpt *common.DBService, redisOpt *common.RedisService, userServiceClient partyproto.UserServiceClient) *ServiceService
NewServiceService - Create Service service
func (*ServiceService) CreateService ¶
func (ss *ServiceService) CreateService(ctx context.Context, in *jitproto.CreateServiceRequest) (*jitproto.CreateServiceResponse, error)
CreateService - Create Service
func (*ServiceService) FindByCarrierServiceCode ¶
func (ss *ServiceService) FindByCarrierServiceCode(ctx context.Context, in *jitproto.FindByCarrierServiceCodeRequest) (*jitproto.FindByCarrierServiceCodeResponse, error)
FindByCarrierServiceCode -FindByCarrierServiceCode
func (*ServiceService) GetService ¶
func (ss *ServiceService) GetService(ctx context.Context, inReq *jitproto.GetServiceRequest) (*jitproto.GetServiceResponse, error)
GetService - Get Service
func (*ServiceService) GetServiceByPk ¶
func (ss *ServiceService) GetServiceByPk(ctx context.Context, inReq *jitproto.GetServiceByPkRequest) (*jitproto.GetServiceByPkResponse, error)
GetServiceByPk - Get Service By Primary key(Id)
func (*ServiceService) GetServices ¶
func (ss *ServiceService) GetServices(ctx context.Context, in *jitproto.GetServicesRequest) (*jitproto.GetServicesResponse, error)
GetServices - Get Services
type TimestampService ¶
type TimestampService struct { DBService *common.DBService RedisService *common.RedisService UserServiceClient partyproto.UserServiceClient jitproto.UnimplementedTimestampServiceServer // contains filtered or unexported fields }
TimestampService - For accessing Transport Document services
func NewTimestampService ¶
func NewTimestampService(log *zap.Logger, dbOpt *common.DBService, redisOpt *common.RedisService, userServiceClient partyproto.UserServiceClient) *TimestampService
NewTimestampService - Create Transport Document service
func (*TimestampService) CreateTimestamp ¶
func (ts *TimestampService) CreateTimestamp(ctx context.Context, in *jitproto.CreateTimestampRequest) (*jitproto.CreateTimestampResponse, error)
CreateTimestamp - Create Timestamp
func (*TimestampService) GetTimestamps ¶
func (ts *TimestampService) GetTimestamps(ctx context.Context, in *jitproto.GetTimestampsRequest) (*jitproto.GetTimestampsResponse, error)
GetTimestamps - Get Timestamps
Click to show internal directories.
Click to hide internal directories.